|
|
|
|
@ -13,10 +13,6 @@ secrets_file="mock_secrets.yaml"
|
|
|
|
|
# prerequisite: for verification of sops config, idempotent create file with a mock secret, src: https://bash-org-archive.com/?244321
|
|
|
|
|
test -e "${secrets_file}" || (yq -n '.demo.credentials.secret = "hunter2"' > "${secrets_file}" && sops -e -i "${secrets_file}" )
|
|
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
# SAMPLE COMMANDS - manually uncomment to try out
|
|
|
|
|
set +x
|
|
|
|
|
|
|
|
|
|
# Special Case: Add caveat header
|
|
|
|
|
cat <<EOM > .sops.yaml.tmp
|
|
|
|
|
# PURPOSE: BLUEPRINT for .sops.yaml config
|
|
|
|
|
|