Closed
Description
Describe the bug
When loading data from vault; keys are prefixed with data, and unexpected keys such as metadataversion exist.
To Reproduce
Follow example in https://github.com/knadh/koanf/blob/master/examples/read-vault/main.go using a vault kv2 secret path
Expected behavior
keys should not be prefixed with data, nor should meta data related keys be included.
Please provide the following information):
- OS: linux
- Koanf Version 2.0.1
- Vault provider version 0.1.1
Additional context
I believe that this is caused by
koanf/providers/vault/vault.go
Line 69 in c82882d
data := maps.Unflatten(secret.Data["data"], r.cfg.Delim)
.
Activity