Skip to content

(kv) secret's value can be of any type, but safe forces string #238

Description

@maxenced

As per https://github.com/Qarik-Group/safe/blob/9fdb79acfbb807ff43db090fc3d5b945723043fc/vault/secret.go#L21 , it seems a secret can only has string value. However, as described here : https://developer.hashicorp.com/vault/docs/secrets/kv/kv-v2

Key names must always be strings. If you write non-string values directly via the CLI, they will be converted into strings. > However, you can preserve non-string values by writing the key/value pairs to Vault from a JSON file or using the HTTP API.

Right now, safe import fails if you give anything but a string, with, for ex :
!! json: cannot unmarshal bool into Go value of type string

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions