You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It is not possible to read the last KV secret if it is soft deleted or destroyed.
The returned json data is null and deserialization fails.
VaultSharp Version
1.13.01
Vault Version
1.12.7
Does this work with Vault CLI?
Yes
Sample Code Snippet
var secret = await vault.V1.Secrets.KeyValue.V2.ReadSecretAsync<MySecret>(secretPath, mountPoint: "mymount")
This is currently not possible in C# across all .net versions.
Nullable constraints (where T : class?) is only available from language version 8.0.
For the moment, please try with a nullable type on your side (maybe MyObject?) or dictionary as a short term solution.
Once VaultSharp goes to 8.0 language version as the minimum, this can be added.
Describe the bug
It is not possible to read the last KV secret if it is soft deleted or destroyed.
The returned json data is null and deserialization fails.
VaultSharp Version
1.13.01
Vault Version
1.12.7
Does this work with Vault CLI?
Yes
Sample Code Snippet
Exception Details/Stack Trace/Error Message
Any additional info
secret.Data.Data
should be marked and handled as NullableThe text was updated successfully, but these errors were encountered: