From 4de3a27bfa922010d17c166609271e5b39c849de Mon Sep 17 00:00:00 2001 From: Mikhail Katychev Date: Tue, 24 Dec 2019 17:04:03 +0000 Subject: [PATCH] sops: add page (#3667) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * sops: add page * added period * modified file example * to infinitive and beyond * Update pages/common/sops.md Co-Authored-By: Zlatan Vasović * Update pages/common/sops.md Co-Authored-By: Zlatan Vasović Co-authored-by: Zlatan Vasović --- pages/common/sops.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pages/common/sops.md diff --git a/pages/common/sops.md b/pages/common/sops.md new file mode 100644 index 0000000000..a3646e2308 --- /dev/null +++ b/pages/common/sops.md @@ -0,0 +1,29 @@ +# sops + +> SOPS: Secrets OPerationS. +> Simple and flexible tool for managing secrets. +> More information: . + +- Encrypt a file: + +`sops -e {{path/to/myfile.json}} > {{path/to/myfile.enc.json}}` + +- Decrypt a file to the standard output: + +`sops -d {{path/to/myfile.enc.json}}` + +- Rotate data keys for a sops file: + +`sops -r {{path/to/myfile.enc.yaml}}` + +- Change the extension of the file once encrypted: + +`sops -d --input-type json {{path/to/myfile.enc.json}}` + +- Extract keys by naming them, and array elements by numbering them: + +`sops -d --extract '["an_array"][1]' {{path/to/myfile.enc.json}}` + +- Show the difference between two sops files: + +`diff <(sops -d {{path/to/secret1.enc.yaml}}) <(sops -d {{path/to/secret2.enc.yaml}})`