sops
SOPS (Secrets OPerationS): a simple and flexible tool for managing secrets. More information: https://github.com/getsops/sops.
- Encrypt a file:
sops -e >
- Decrypt a file to
stdout:
sops -d
- Update the declared keys in a
sopsfile:
sops updatekeys
- Rotate data keys for a
sopsfile:
sops -r
- Change the extension of the file once encrypted:
sops -d --input-type json
- Extract keys by naming them, and array elements by numbering them:
sops -d --extract '["an_array"][1]'
- Show the difference between two
sopsfiles:
diff <(sops -d ) <(sops -d )
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
