Skip to content

Support Database Credential Types other than Password #382

@TimoVink

Description

@TimoVink

Apologies if I missed something, but as far as I can tell VaultSharp only supports database secrets if the roles use the password credential_type.

The return type of IDatabaseSecretsEngine.GetCredentialsAsync is Secret<UsernamePasswordCredentials>, implicitly assuming the response from Vault will contain the username and password fields, but if, for example, you have configured the role with the rsa_private_key credential type, the response from Vault would (unsurprisingly) return a rsa_private_key field instead of password.

Link to the Vault API Docs that support this feature
https://developer.hashicorp.com/vault/docs/secrets/databases#credential-types
https://developer.hashicorp.com/vault/api-docs/secret/databases#credential_type

Further Context
Snowflake is deprecating the use of username/password authentication for service accounts. Forcing us to switch to other credential types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions