vault icon indicating copy to clipboard operation
vault copied to clipboard

SDK: framework.TypeKVPairs only handles one KV pair.

Open iloving opened this issue 2 months ago • 1 comments

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:

  1. Implement code that uses frakework.TypeKVPairs
  2. 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.

iloving avatar Oct 31 '25 22:10 iloving

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!

pawannn avatar Nov 02 '25 05:11 pawannn