mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-10-19 01:27:31 +00:00
chore(helm): enhance security context and volume handling
- [x] Add explicit security context with fsGroup and runAsUser to frontend deployment - [x] Add initContainer to copy nginx static files and config to writable volumes - [x] Add security context to initContainer with capability restrictions - [x] Add runAsUser to frontend container security context - [x] Add emptyDir volumes for nginx HTML and conf directories - [x] Replace template includes with explicit volumeMounts in scanner deployment - [x] Conditionally mount trivy cache volume in scanner deployment - [x] Replace template includes with explicit volumeMounts in server deployment
This commit is contained in:
@@ -42,9 +42,14 @@ spec:
|
||||
chown -R 1000:1000 /var/cache/gohoarder /var/lib/gohoarder /tmp/gohoarder
|
||||
chmod 750 /var/cache/gohoarder /var/lib/gohoarder
|
||||
volumeMounts:
|
||||
{{- include "gohoarder.storageVolume" . | nindent 8 }}
|
||||
{{- include "gohoarder.metadataVolume" . | nindent 8 }}
|
||||
{{- include "gohoarder.trivyCacheVolume" . | nindent 8 }}
|
||||
- name: storage
|
||||
mountPath: /var/cache/gohoarder
|
||||
- name: metadata
|
||||
mountPath: /var/lib/gohoarder/metadata
|
||||
{{- if .Values.security.scanners.trivy.enabled }}
|
||||
- name: trivy-cache
|
||||
mountPath: {{ .Values.security.scanners.trivy.cacheDb }}
|
||||
{{- end }}
|
||||
- name: tmp
|
||||
mountPath: /tmp/gohoarder
|
||||
securityContext:
|
||||
|
||||
Reference in New Issue
Block a user