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