Skip to content

Commit

Permalink
fix: Use a shared volume for the CQAPI_LOCAL_AES_KEY_FILE (#529)
Browse files Browse the repository at this point in the history
This is to fix the incoming `cloud` container upgrade where the container now runs as a non-root user

Refs: #527
  • Loading branch information
mnorbury authored Jan 3, 2025
1 parent cbecb3a commit e743add
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/platform/templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ spec:
secretKeyRef:
name: {{ include "platform.fullName" . }}-secrets
key: clickhouseDSN
- name: CQAPI_LOCAL_AES_KEY_FILE
value: "/shared/encrypted_aes_key.bin"
- name: CQAPI_LOCAL_JWT_PRIVATE_KEY
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -80,10 +82,14 @@ spec:
{{- with .Values.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
- name: shared
mountPath: /shared
volumes:
{{- with .Values.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
- name: shared
emptyDir: {}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit e743add

Please sign in to comment.