comms(mas): fix admin secret job permissions
This commit is contained in:
parent
ae335fcff2
commit
0a7410302d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user