rajanadar / VaultSharp

A comprehensive cross-platform .NET Library for HashiCorp's Vault, a secret management tool
http://rajanadar.github.io/VaultSharp
Apache License 2.0
493 stars 134 forks source link

Create and Read Database Config starting with postgresql #362

Closed rajanadar closed 1 month ago

rajanadar commented 1 month ago

Discussed in https://github.com/rajanadar/VaultSharp/discussions/361

Originally posted by **treyhendon** September 13, 2024 Is it possible to create and read the `database/config` api? Specifically, I'm trying to recreate Step 2 in this Postgres Database Setup example: https://developer.hashicorp.com/vault/docs/secrets/databases/postgresql#setup ``` vault write database/config/my-postgresql-database \ plugin_name="postgresql-database-plugin" \ allowed_roles="my-role" \ connection_url="postgresql://{{username}}:{{password}}@localhost:5432/database-name" \ username="vaultuser" \ password="vaultpass" \ password_authentication="scram-sha-256" ```
rajanadar commented 1 month ago

fyi @treyhendon

treyhendon commented 1 month ago

Thank you!