sso: strip mas secret newlines

This commit is contained in:
Brad Stein 2026-01-08 03:38:51 -03:00
parent c1e74c1001
commit 04817691c6

View File

@ -8,7 +8,7 @@ metadata:
apiVersion: batch/v1
kind: Job
metadata:
name: mas-secrets-ensure-9
name: mas-secrets-ensure-10
namespace: sso
spec:
backoffLimit: 0
@ -64,8 +64,8 @@ spec:
fi
printf '%s' "$CLIENT_SECRET" > /work/keycloak_client_secret
openssl rand -hex 32 > /work/encryption
openssl rand -hex 32 > /work/matrix_shared_secret
openssl rand -hex 32 | tr -d '\n' > /work/encryption
openssl rand -hex 32 | tr -d '\n' > /work/matrix_shared_secret
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:4096 -out /work/rsa_key >/dev/null 2>&1
chmod 0644 /work/*
env: