sops

SOPS: Secrets OPerationS.

TLDR

Encrypt a file

>_ sops -e [path/to/myfile.json] > [path/to/myfile.enc.json]
copy

Decrypt a file to the standard output

>_ sops -d [path/to/myfile.enc.json]
copy

Rotate data keys for a sops file

>_ sops -r [path/to/myfile.enc.yaml]
copy

Change the extension of the file once encrypted

>_ sops -d --input-type json [path/to/myfile.enc.json]
copy

Extract keys by naming them, and array elements by numbering them

>_ sops -d --extract '["an_array"][1]' [path/to/myfile.enc.json]
copy

Show the difference between two sops files

>_ diff <(sops -d [path/to/secret1.enc.yaml]) <(sops -d [path/to/secret2.enc.yaml])
copy

Copied to clipboard
free 100$ digital ocean credit