|
|
|
@ -56,6 +56,7 @@ If these steps work, sops is configured correctly - on your machine ;-)
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -ueo pipefail
|
|
|
|
set -ueo pipefail
|
|
|
|
# demo: create a file with a mock secret, src: https://bash-org-archive.com/?244321
|
|
|
|
# demo: create a file with a mock secret, src: https://bash-org-archive.com/?244321
|
|
|
|
|
|
|
|
# PREREQUISITE: valid sops config, i.e. .sops.yaml
|
|
|
|
yq -n '.demo.credentials.secret = "hunter2"' > secrets.yaml
|
|
|
|
yq -n '.demo.credentials.secret = "hunter2"' > secrets.yaml
|
|
|
|
# encrypt
|
|
|
|
# encrypt
|
|
|
|
sops -e -i secrets.yaml
|
|
|
|
sops -e -i secrets.yaml
|
|
|
|
|