Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Asset-manager chart to be PSS restricted compliant. #1861

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions charts/asset-manager/templates/_freshclam_podspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
securityContext:
seccompProfile:
type: RuntimeDefault
runAsNonRoot: true
runAsUser: 1001
runAsGroup: 1001
containers:
Expand All @@ -31,6 +32,8 @@ spec:
mountPath: {{ .Values.clamMountConfigPath }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
readOnlyRootFilesystem: true
volumes:
- name: clam-virus-db
Expand Down
6 changes: 6 additions & 0 deletions charts/asset-manager/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ spec:
automountServiceAccountToken: false
enableServiceLinks: false
securityContext:
seccompProfile:
type: RuntimeDefault
fsGroup: &old-ec2-deploy-uid 2899
runAsUser: 1001
runAsGroup: 1001
Expand Down Expand Up @@ -119,6 +121,8 @@ spec:
{{- end }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
readOnlyRootFilesystem: true
# Asset Manager shares an NFS volume with its EC2 counterpart.
runAsUser: *old-ec2-deploy-uid
Expand Down Expand Up @@ -159,6 +163,8 @@ spec:
{{- end }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
readOnlyRootFilesystem: true
lifecycle:
preStop:
Expand Down
6 changes: 6 additions & 0 deletions charts/asset-manager/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ spec:
automountServiceAccountToken: false
enableServiceLinks: false
securityContext:
seccompProfile:
type: RuntimeDefault
fsGroup: &old-ec2-deploy-uid 2899
runAsUser: 1001
runAsGroup: 1001
Expand Down Expand Up @@ -102,6 +104,8 @@ spec:
{{- end }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
readOnlyRootFilesystem: true
# Asset Manager shares an NFS volume with its EC2 counterpart.
runAsUser: *old-ec2-deploy-uid
Expand All @@ -126,4 +130,6 @@ spec:
mountPath: {{ .Values.clamMountConfigPath }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
readOnlyRootFilesystem: true