Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to

## [Unreleased]

### Added

- 🔒(helm) Set default security context

## [4.2.0] - 2025-12-17

### Added
Expand Down
15 changes: 13 additions & 2 deletions src/helm/impress/templates/backend_cronjob_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,20 @@ items:
{{- if $envVars}}
{{- $envVars | indent 22 }}
{{- end }}
{{- with $.Values.backend.securityContext }}
{{- if .Values.backend.securityContext }}
{{- with .Values.backend.securityContext }}
securityContext:
{{- toYaml . | nindent 22 }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- else }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
{{- end }}
{{- with $.Values.backend.resources }}
resources:
Expand Down
10 changes: 10 additions & 0 deletions src/helm/impress/templates/backend_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,20 @@ spec:
{{- if $envVars}}
{{- $envVars | indent 12 }}
{{- end }}
{{- if .Values.backend.securityContext }}
{{- with .Values.backend.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- else }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
ports:
- name: http
containerPort: {{ .Values.backend.service.targetPort }}
Expand Down
10 changes: 10 additions & 0 deletions src/helm/impress/templates/backend_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,20 @@ spec:
{{- if $envVars}}
{{- $envVars | indent 12 }}
{{- end }}
{{- if .Values.backend.securityContext }}
{{- with .Values.backend.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- else }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
{{- with .Values.backend.resources }}
resources:
{{- toYaml . | nindent 12 }}
Expand Down
10 changes: 10 additions & 0 deletions src/helm/impress/templates/backend_job_createsuperuser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,20 @@ spec:
{{- if $envVars}}
{{- $envVars | indent 12 }}
{{- end }}
{{- if .Values.backend.securityContext }}
{{- with .Values.backend.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- else }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
{{- with .Values.backend.resources }}
resources:
{{- toYaml . | nindent 12 }}
Expand Down
10 changes: 10 additions & 0 deletions src/helm/impress/templates/backend_job_migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,20 @@ spec:
{{- if $envVars}}
{{- $envVars | indent 12 }}
{{- end }}
{{- if .Values.backend.securityContext }}
{{- with .Values.backend.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- else }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
{{- with .Values.backend.resources }}
resources:
{{- toYaml . | nindent 12 }}
Expand Down
10 changes: 10 additions & 0 deletions src/helm/impress/templates/celery_worker_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,20 @@ spec:
{{- if $envVars}}
{{- $envVars | indent 12 }}
{{- end }}
{{- if .Values.backend.securityContext }}
{{- with .Values.backend.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- else }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
ports:
- name: http
containerPort: {{ .Values.backend.service.targetPort }}
Expand Down
10 changes: 10 additions & 0 deletions src/helm/impress/templates/frontend_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,20 @@ spec:
{{- if $envVars}}
{{- $envVars | indent 12 }}
{{- end }}
{{- if .Values.frontend.securityContext }}
{{- with .Values.frontend.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- else }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
ports:
- name: http
containerPort: {{ .Values.frontend.service.targetPort }}
Expand Down
11 changes: 11 additions & 0 deletions src/helm/impress/templates/yprovider_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,21 @@ spec:
{{- if $envVars}}
{{- $envVars | indent 12 }}
{{- end }}
{{- if .Values.yProvider.securityContext }}
{{- with .Values.yProvider.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- else }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
{{- end }}
ports:
- name: http
containerPort: {{ .Values.yProvider.service.targetPort }}
Expand Down
Loading