|
|
|
@ -66,6 +66,7 @@ EOM
|
|
|
|
# UPDATE SOPS CONFIG
|
|
|
|
# UPDATE SOPS CONFIG
|
|
|
|
pushd "${keyfiles_dir}"
|
|
|
|
pushd "${keyfiles_dir}"
|
|
|
|
(fn_update_sops_config) > "${sops_config}"
|
|
|
|
(fn_update_sops_config) > "${sops_config}"
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
# VERIFY
|
|
|
|
# VERIFY
|
|
|
|
fn_verify_sops_config(){
|
|
|
|
fn_verify_sops_config(){
|
|
|
|
@ -81,6 +82,7 @@ fn_verify_sops_config(){
|
|
|
|
GPG_TTY=$(tty) sops -d "${sops_enc_file}"
|
|
|
|
GPG_TTY=$(tty) sops -d "${sops_enc_file}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if [[ "${secrets_file}" != "0" ]]; then
|
|
|
|
if [[ "${secrets_file}" != "0" ]]; then
|
|
|
|
|
|
|
|
pushd "${sops_config_dir}"
|
|
|
|
fn_verify_sops_config "${secrets_file}"
|
|
|
|
fn_verify_sops_config "${secrets_file}"
|
|
|
|
|
|
|
|
|
|
|
|
echo "# SUCESS: all users with keys in this dir should have functional keys"
|
|
|
|
echo "# SUCESS: all users with keys in this dir should have functional keys"
|
|
|
|
|