SDK: framework.TypeKVPairs only handles one KV pair.
Describe the bug The type name and all the related documentation say that this is supposed to create a map from one or more KV pairs. It does not. It finds the first =, then everything on the left is the key and everything on the right is the value. I have have tried formatting the string in a variety of ways, to no avail.
To Reproduce Steps to reproduce the behavior:
- Implement code that uses frakework.TypeKVPairs
- Try to pass a string with multiple k/v entries
Expected behavior If I pass the string "A=a,B=b,C=c", then I should get a map of { "A":"a";"B":"b"; "C":"c" }.
Environment:
- Vault Server Version (retrieve with
vault status): 1.20 - Vault CLI Version (retrieve with
vault version): 1.20 - Server Operating System/Architecture: Linux/amd64
Vault server configuration file(s):
# Paste your Vault config here.
# Be sure to scrub any sensitive values
Additional context Add any other context about the problem here.
Hey! I have worked on this issue and raised a PR https://github.com/hashicorp/vault/pull/31624, Please check it in your free time. Thanks!