Skip to content

Commit

Permalink
fix: set readOnlyRootFilesystem to true for redis and ha-proxy (argop…
Browse files Browse the repository at this point in the history
…roj#13316)

Signed-off-by: Alexandre Desjardins <alexandre.bd@tutanota.com>
  • Loading branch information
jemag authored and xiaowu.zhu committed Aug 9, 2023
1 parent 96b3c18 commit 1ed4c3c
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/base/redis/argocd-redis-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
ports:
- containerPort: 6379
securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
Expand Down
1 change: 1 addition & 0 deletions manifests/core-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16872,6 +16872,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
securityContext:
runAsNonRoot: true
runAsUser: 999
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
- op: add
path: /spec/template/spec/initContainers/0/securityContext
value:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
Expand All @@ -10,6 +11,7 @@
- op: add
path: /spec/template/spec/containers/0/securityContext
value:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
- op: add
path: /spec/template/spec/initContainers/0/securityContext
value:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
Expand All @@ -10,6 +11,7 @@
- op: add
path: /spec/template/spec/containers/0/securityContext
value:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
Expand All @@ -19,6 +21,7 @@
- op: add
path: /spec/template/spec/containers/1/securityContext
value:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
Expand All @@ -28,6 +31,7 @@
- op: add
path: /spec/template/spec/containers/2/securityContext
value:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
Expand Down
6 changes: 6 additions & 0 deletions manifests/ha/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18292,6 +18292,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
Expand All @@ -18312,6 +18313,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
Expand Down Expand Up @@ -19221,6 +19223,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
Expand Down Expand Up @@ -19269,6 +19272,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
Expand Down Expand Up @@ -19296,6 +19300,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
Expand Down Expand Up @@ -19324,6 +19329,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
Expand Down
6 changes: 6 additions & 0 deletions manifests/ha/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
Expand All @@ -1925,6 +1926,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
Expand Down Expand Up @@ -2834,6 +2836,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
Expand Down Expand Up @@ -2882,6 +2885,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
Expand Down Expand Up @@ -2909,6 +2913,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
Expand Down Expand Up @@ -2937,6 +2942,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
Expand Down
1 change: 1 addition & 0 deletions manifests/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17385,6 +17385,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
securityContext:
runAsNonRoot: true
runAsUser: 999
Expand Down
1 change: 1 addition & 0 deletions manifests/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,7 @@ spec:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
securityContext:
runAsNonRoot: true
runAsUser: 999
Expand Down

0 comments on commit 1ed4c3c

Please sign in to comment.