mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
sops: add page (#3667)
* sops: add page * added period * modified file example * to infinitive and beyond * Update pages/common/sops.md Co-Authored-By: Zlatan Vasović <zlatanvasovic@gmail.com> * Update pages/common/sops.md Co-Authored-By: Zlatan Vasović <zlatanvasovic@gmail.com> Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
This commit is contained in:
parent
153cd86ff0
commit
4de3a27bfa
1 changed files with 29 additions and 0 deletions
29
pages/common/sops.md
Normal file
29
pages/common/sops.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
# sops
|
||||
|
||||
> SOPS: Secrets OPerationS.
|
||||
> Simple and flexible tool for managing secrets.
|
||||
> More information: <https://github.com/mozilla/sops>.
|
||||
|
||||
- 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}})`
|
Loading…
Add table
Reference in a new issue