sops icon indicating copy to clipboard operation
sops copied to clipboard

Decrypt requires `.yml` extension?

Open calebTree opened this issue 2 years ago • 1 comments

I noticed decrypt fails if the file I intend to decrypt has an extension other than .yml i.e. test.yml.enc.

Error unmarshalling input json: invalid character <whatever first char in file> looking for beginning of value

calebTree avatar Aug 18 '22 12:08 calebTree

sops falls back to assuming the file is JSON encoded when no extension is present, which it is not in your case. You can tell sops that the file is a YAML file by supplying --input-type yaml.

felixfontein avatar Aug 18 '22 16:08 felixfontein