feature/sso-hardening #9

Merged
bstein merged 685 commits from feature/sso-hardening into main 2026-01-13 20:23:26 +00:00
Showing only changes of commit 8d1284412f - Show all commits

View File

@ -8,7 +8,7 @@ metadata:
apiVersion: batch/v1
kind: Job
metadata:
name: mas-secrets-ensure-10
name: mas-secrets-ensure-11
namespace: sso
spec:
backoffLimit: 0
@ -92,7 +92,8 @@ spec:
current=""
if kubectl -n comms get secret mas-secrets-runtime >/dev/null 2>&1; then
current="$(kubectl -n comms get secret mas-secrets-runtime -o jsonpath='{.data.encryption}' | base64 -d 2>/dev/null || true)"
if printf '%s' "${current}" | grep -Eq '^[0-9a-fA-F]{64}$'; then
current_len="$(printf '%s' "${current}" | wc -c | tr -d ' ')"
if [ "${current_len}" = "64" ] && printf '%s' "${current}" | grep -Eq '^[0-9a-fA-F]{64}$'; then
exit 0
fi
fi