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
2 changes: 1 addition & 1 deletion charts/patchmon/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: patchmon
description: PatchMon v2 – Linux patch management platform with optional Gateway API, Postgres, Valkey, and Guacd
type: application
version: 0.3.2
version: 0.3.4
appVersion: "2.0.2"

maintainers:
Expand Down
4 changes: 4 additions & 0 deletions charts/patchmon/templates/postgres-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,14 @@ spec:
mountPath: /var/lib/postgresql/data
- name: dshm
mountPath: /dev/shm
- name: run
mountPath: /var/run/postgresql
volumes:
- name: dshm
emptyDir:
medium: Memory
- name: run
emptyDir: {}
{{- with .Values.postgres.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 2 additions & 2 deletions charts/patchmon/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ stringData:
POSTGRES_PASSWORD: {{ default (randAlphaNum 32) $oldPg | quote }}
{{- end }}
JWT_SECRET: {{ default (randAlphaNum 64) (default $oldJwt .Values.patchmon.jwt.secret) | quote }}
SESSION_SECRET: {{ default (randAlphaNum 64) $oldSession | quote }}
AI_ENCRYPTION_KEY: {{ default (randAlphaNum 64) $oldAiKey | quote }}
SESSION_SECRET: {{ default (randAlphaNum 64) (default $oldSession .Values.patchmon.session.secret) | quote }}
AI_ENCRYPTION_KEY: {{ default (randAlphaNum 64) (default $oldAiKey .Values.patchmon.encryption.aiKey) | quote }}
{{- if .Values.valkey.auth.enabled }}
REDIS_PASSWORD: {{ default (randAlphaNum 32) $oldRedis | quote }}
{{- end }}
Expand Down
12 changes: 12 additions & 0 deletions charts/patchmon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,18 @@ patchmon:
secret: ""
expiresIn: "1h"

session:
# If empty, a random value is generated and persisted in the Secret via lookup.
# Note: the lookup fallback only works with `helm upgrade`/`install` against a live
# cluster — GitOps controllers that render via `helm template` (e.g. ArgoCD) always
# see an empty lookup result, so leaving this blank there means a new random value
# (and pod restart via the checksum/secret annotation) on every render.
secret: ""

encryption:
# Same lookup caveat as patchmon.session.secret above.
aiKey: ""

auth:
maxLoginAttempts: 5
lockoutDurationMinutes: 15
Expand Down