Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VaultSharp.V1.SecretsEngines.Database.Role object has no db_name property #344

Open
dwmyersjr opened this issue Feb 23, 2024 · 0 comments
Open

Comments

@dwmyersjr
Copy link

Describe the bug
When trying to use CreateRoleAsync to create a new MySQL role, the role is created, but db_name defaults to mysql.

VaultSharp Version
1.13.01 I had also tried with the earlier 1.12.2.1

Vault Version
Unknown

Does this work with Vault CLI?
Yes

Sample Code Snippet
VaultSharp.V1.SecretsEngines.Database.Role oRole = new VaultSharp.V1.SecretsEngines.Database.Role() {
DatabaseProviderType = VaultSharp.V1.SecretsEngines.Database.DatabaseProviderType.MySQL ,
DefaultTimeToLive = sDefaultTTL ,
MaximumTimeToLive = sMaxTTL ,
RevocationStatements = sRevocation ,
CreationStatements = sCreationStatement
};
Task oTask = oVault.V1.Secrets.Database.CreateRoleAsync( sRoleName , oRole);

Exception Details/Stack Trace/Error Message
No errors, but the resulting new role has db_name showing as mysql in the vault UI. While roles created through CLI have proper name of the connection.
Note that the VaultSharp.V1.SecretsEngines.Database.Role object passed has no db_name property definition.

Any additional info
The library is very nice to work with, though some documentation could use more detail/clarification.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant