Skip to content

Commit 6a4a2ff

Browse files
committed
make the ssh key writable so we can change permissions at runtime
1 parent 2911e0f commit 6a4a2ff

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

templates/deployments.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ spec:
10211021
{{- include "st2-config-volume-mounts" . | nindent 8 }}
10221022
- name: st2-ssh-key-vol
10231023
mountPath: /home/stanley/.ssh/
1024-
readOnly: true
1024+
#readOnly: true
10251025
{{- if .Values.st2.datastore_crypto_key }}
10261026
- name: st2-encryption-key-vol
10271027
mountPath: /etc/st2/keys
@@ -1064,7 +1064,9 @@ spec:
10641064
- key: private_key
10651065
path: stanley_rsa
10661066
# 0400 file permission
1067-
mode: 256
1067+
#mode: 256
1068+
# 0600 file permission
1069+
mode: 384
10681070
{{- if .Values.st2.packs.images }}
10691071
{{- include "packs-volumes" . | indent 8 }}
10701072
{{- end }}
@@ -1270,7 +1272,7 @@ spec:
12701272
mountPath: /root/.st2/
12711273
- name: st2-ssh-key-vol
12721274
mountPath: /home/stanley/.ssh/
1273-
readOnly: true
1275+
#readOnly: true
12741276
{{- if .Values.st2.datastore_crypto_key }}
12751277
- name: st2-encryption-key-vol
12761278
mountPath: /etc/st2/keys
@@ -1333,7 +1335,9 @@ spec:
13331335
- key: private_key
13341336
path: stanley_rsa
13351337
# 0400 file permission
1336-
mode: 256
1338+
#mode: 256
1339+
# 0600 file permission
1340+
mode: 384
13371341
{{- if .Values.st2.packs.images }}
13381342
{{- include "packs-volumes" . | indent 8 }}
13391343
{{- end }}

0 commit comments

Comments
 (0)