Skip to content
Merged
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
10 changes: 10 additions & 0 deletions src/backend/services/fakeidp/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,23 @@ spec:
labels:
{{- include "insight-fakeidp.selectorLabels" . | nindent 8 }}
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
containers:
- name: fakeidp
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop: ["ALL"]
env:
- name: FAKEIDP_ISSUER
value: {{ tpl (required "fakeidp.issuer is required (the in-cluster fakeidp URL)" .Values.issuer) . | quote }}
Expand Down
12 changes: 12 additions & 0 deletions src/backend/services/keycloak/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ spec:
{{- include "insight-keycloak.selectorLabels" . | nindent 8 }}
spec:
enableServiceLinks: false
securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
containers:
- name: keycloak
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down Expand Up @@ -44,6 +49,13 @@ spec:
ports:
- name: http
containerPort: {{ .Values.service.port }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
# No readOnlyRootFilesystem: `start-dev` re-augments Quarkus into
# /opt/keycloak/lib/quarkus on every boot, and an emptyDir there hides
# quarkus-application.dat from the image. See #2084.
volumeMounts:
- name: realm
mountPath: /opt/keycloak/data/import
Expand Down