sso: strip mas secret newlines
This commit is contained in:
parent
c1e74c1001
commit
04817691c6
@ -8,7 +8,7 @@ metadata:
|
|||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
name: mas-secrets-ensure-9
|
name: mas-secrets-ensure-10
|
||||||
namespace: sso
|
namespace: sso
|
||||||
spec:
|
spec:
|
||||||
backoffLimit: 0
|
backoffLimit: 0
|
||||||
@ -64,8 +64,8 @@ spec:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
printf '%s' "$CLIENT_SECRET" > /work/keycloak_client_secret
|
printf '%s' "$CLIENT_SECRET" > /work/keycloak_client_secret
|
||||||
openssl rand -hex 32 > /work/encryption
|
openssl rand -hex 32 | tr -d '\n' > /work/encryption
|
||||||
openssl rand -hex 32 > /work/matrix_shared_secret
|
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
|
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:4096 -out /work/rsa_key >/dev/null 2>&1
|
||||||
chmod 0644 /work/*
|
chmod 0644 /work/*
|
||||||
env:
|
env:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user