Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
security: enable readOnlyRootFilesystem for MIC and NMI (#1225)
Browse files Browse the repository at this point in the history
Signed-off-by: Ernest Wong <[email protected]>
  • Loading branch information
Ernest Wong authored Jan 5, 2022
1 parent 22d1edb commit 00f812d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ spec:
{{- if .Values.customUserAgent }}
- --custom-user-agent={{ .Values.customUserAgent }}
{{- end }}
{{- if not .Values.adminsecret }}
securityContext:
{{- if not .Values.adminsecret }}
runAsUser: 0
{{- end }}
readOnlyRootFilesystem: true
env:
- name: MIC_POD_NAMESPACE
valueFrom:
Expand Down
1 change: 1 addition & 0 deletions manifest_staging/deploy/infra/deployment-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ spec:
- "--logtostderr"
securityContext:
runAsUser: 0
readOnlyRootFilesystem: true
env:
- name: MIC_POD_NAMESPACE
valueFrom:
Expand Down
1 change: 1 addition & 0 deletions manifest_staging/deploy/infra/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ spec:
- "--logtostderr"
securityContext:
runAsUser: 0
readOnlyRootFilesystem: true
env:
- name: MIC_POD_NAMESPACE
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ spec:
- "--logtostderr"
securityContext:
runAsUser: 0
readOnlyRootFilesystem: true
env:
- name: MIC_POD_NAMESPACE
valueFrom:
Expand Down
1 change: 1 addition & 0 deletions manifest_staging/deploy/infra/noazurejson/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ spec:
- "--logtostderr"
securityContext:
runAsUser: 0
readOnlyRootFilesystem: true
env:
- name: MIC_POD_NAMESPACE
valueFrom:
Expand Down

0 comments on commit 00f812d

Please sign in to comment.