comms(mas): fix admin secret job permissions

This commit is contained in:
Brad Stein 2026-01-01 18:12:21 -03:00
parent ae335fcff2
commit 0a7410302d

View File

@ -33,14 +33,14 @@ subjects:
apiVersion: batch/v1
kind: Job
metadata:
name: mas-admin-client-secret-ensure-5
name: mas-admin-client-secret-ensure-6
namespace: comms
spec:
backoffLimit: 0
backoffLimit: 2
template:
spec:
serviceAccountName: mas-admin-client-secret-writer
restartPolicy: Never
restartPolicy: OnFailure
volumes:
- name: work
emptyDir: {}
@ -53,6 +53,7 @@ spec:
set -euo pipefail
umask 077
dd if=/dev/urandom bs=32 count=1 2>/dev/null | od -An -tx1 | tr -d ' \n' > /work/client_secret
chmod 0644 /work/client_secret
volumeMounts:
- name: work
mountPath: /work