-
Notifications
You must be signed in to change notification settings - Fork 20
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
Feature/895 - helm chart security fixes for OasisPlatform #938
Changes from 5 commits
5527d92
6144f14
c4752af
3f67d40
534c45d
66542ac
95825cb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,8 @@ spec: | |
containers: | ||
- name: {{ .Values.keycloak.name }} | ||
image: {{ .Values.images.keycloak.image }}:{{ .Values.images.keycloak.version }} | ||
securityContext: | ||
readOnlyRootFilesystem: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keycloak fails with a readOnly Filesystem:
See keycloak/keycloak#11286 for workaround |
||
args: [ | ||
"start-dev", | ||
"--import-realm", | ||
|
@@ -174,6 +176,7 @@ spec: | |
|
||
volumes: | ||
- name: realm-config | ||
#readOnly: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. was this tested as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
configMap: | ||
name: {{ $realmSecretName }} | ||
{{- if (.Values.azure).secretProvider }} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -202,6 +202,8 @@ spec: | |
{{- include "h.initTcpAvailabilityCheckBySecret" (list . .Values.databases.oasis_db.name .Values.databases.celery_db.name .Values.databases.channel_layer.name) | nindent 8}} | ||
containers: | ||
- image: {{ .Values.images.oasis.platform.image }}:{{ .Values.images.oasis.platform.version }} | ||
securityContext: | ||
readOnlyRootFilesystem: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. celery beat fails because it needs access to a temp dir:
Try mounting a RW volume to allow writing tmp files (see keycloak link) |
||
imagePullPolicy: {{ .Values.images.oasis.platform.imagePullPolicy }} | ||
name: celery-beat | ||
command: ["celery", "-A", "src.server.oasisapi.celery_app", "beat", "--loglevel=DEBUG"] | ||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -50,12 +50,15 @@ spec: | |||||||||||||||||||||||||||||||||||||||||||||
annotations: | ||||||||||||||||||||||||||||||||||||||||||||||
checksum/{{ .Values.oasisServer.name }}: {{ toJson .Values.oasisWebsocket | sha256sum }} | ||||||||||||||||||||||||||||||||||||||||||||||
spec: | ||||||||||||||||||||||||||||||||||||||||||||||
#automountServiceAccountToken: false | ||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PR is missing this request from the ticket
I think this line should read as true (explicitly allowed for just this pod) while the default at the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OasisPlatform/kubernetes/charts/oasis-platform/templates/oasis.yaml Lines 252 to 273 in 534c45d
|
||||||||||||||||||||||||||||||||||||||||||||||
{{- include "h.affinity" . | nindent 6 }} | ||||||||||||||||||||||||||||||||||||||||||||||
serviceAccountName: {{ $workerControllerServiceAccountName }} | ||||||||||||||||||||||||||||||||||||||||||||||
initContainers: | ||||||||||||||||||||||||||||||||||||||||||||||
{{- include "h.initTcpAvailabilityCheckBySecret" (list . .Values.oasisWebsocket.name) | nindent 8}} | ||||||||||||||||||||||||||||||||||||||||||||||
containers: | ||||||||||||||||||||||||||||||||||||||||||||||
- image: {{ .Values.images.oasis.worker_controller.image }}:{{ .Values.images.oasis.worker_controller.version }} | ||||||||||||||||||||||||||||||||||||||||||||||
securityContext: | ||||||||||||||||||||||||||||||||||||||||||||||
readOnlyRootFilesystem: true | ||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Error: INSTALLATION FAILED: YAML parse error on oasis/templates/oasis_worker_controller.yaml: error converting YAML to JSON: yaml: line 63: did not find expected '-' indicator Indention error There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||||||||||||||||||||||||||||||||||||||||||||||
imagePullPolicy: {{ .Values.images.oasis.worker_controller.imagePullPolicy }} | ||||||||||||||||||||||||||||||||||||||||||||||
name: main | ||||||||||||||||||||||||||||||||||||||||||||||
env: | ||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set this back to the default of
0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done