sops-nix icon indicating copy to clipboard operation
sops-nix copied to clipboard

Cryptic error message if one of the secrets values is an integer and not a string

Open kutu-dev opened this issue 2 months ago • 0 comments

Having a YAML file like:

userPassword: 1234

Will fail with the error:

/nix/store/vxv8vsvf4vghkncqdnwgjhknzddxqy6q-sops-install-secrets-0.0.1/bin/sops-install-secrets: secret userPassword in /nix/store/29756kkx2w1z2m21abbwgvi1ad8b2lnb-data.enc.yaml is not valid: the value of key '' is not a string

Instead of printing the key name userPassword it just reports an empty key making things more confusing.

kutu-dev avatar Oct 25 '25 14:10 kutu-dev