Skip to content

SDK: framework.TypeKVPairs only handles one KV pair. #31621

@iloving

Description

@iloving

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions