VaultSharp icon indicating copy to clipboard operation
VaultSharp copied to clipboard

Discrepancies in GetSecretBackendsAsync

Open hoerup opened this issue 2 years ago • 1 comments

Describe the bug The values in SecretsEngine.Type returned by .V1.System.GetSecretBackendsAsync() doesnt correspond with the static members in SecretsEngineType.cs

for a KVv1 mountpoint vault will return "generic" - which doesn't exist in SecretsEngineType or SecretsEngineMountPoints for a KVv2 mountpoint vault returns "kv" but SecretsEngineMountPoints thinks that is a V1

VaultSharp Version 1.12.2

Vault Version 1.11

hoerup avatar Feb 03 '23 13:02 hoerup

for a KVv2 mountpoint vault returns "kv" but SecretsEngineMountPoints thinks that is a V1

it's not correct. "kv" it is only label. The name of the mount point is not linked to the version in any way. You can override default mount points when you initialize your vault client

EKovalenok avatar Feb 07 '23 03:02 EKovalenok