Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 734 Bytes

sops-cheat-sheet.md

File metadata and controls

35 lines (29 loc) · 734 Bytes

Secret OPerationS cheat sheet

install

apt install golang
echo 'GOPATH=~/go' >> ~/.bashrc
source ~/.bashrc
mkdir $GOPATH

go get -u go.mozilla.org/sops/cmd/sops
pip install sops
ext install signageos.signageos-vscode-sops

encrypt decrypt

sops -e -i myfile.json
sops -d myfile.json
sops -e myfile.json > myfile.json.enc
sops -d --input-type json myfile.json.enc
sops --encrypt --in-place --encrypted-regex 'password|pin' --pgp `gpg --fingerprint "vitalii@localhost.local" | grep pub -A 1 | grep -v pub | sed s/\ //g` myfile.yaml
sops --decrypt myfile.yaml