Calibre-Web-Automated chart: naming scheme, security hardening (conventions batch 3)

All audit findings for the calibre-web-automated chart (#32) in one major
bump, 3.1.1+upv4.0.6 -> 4.0.0+upv4.0.6:

- Rename StatefulSet, Service, OnePasswordItem secret and Ingress from the
  inverted <chart>-<release>-cwa-<kind> scheme to
  <release>-<chart>-<kind>; spec.serviceName and all references follow.
  Both PVCs deliberately keep their historical names (documented naming
  exception; renaming would orphan the data).
- TLS secret renamed to the standard tls-<release>-<chart>-ingress.
- Ingress on the repo standard: ingress.className (default nginx),
  ingress.annotations merged with the chart-managed annotations,
  ingress.clusterIssuer now required (was silently defaulted to
  "letsencrypt-issuer").
- Security hardening, values-configurable via securityContext.pod /
  securityContext.container: allowPrivilegeEscalation false, all
  capabilities dropped except the minimal set the s6-overlay init needs
  (CHOWN, DAC_OVERRIDE, FOWNER, KILL, SETGID, SETUID). Documented
  deviations: the image must start as root (s6 drops to PUID 1000) and
  readOnlyRootFilesystem stays false (read-only mode disables PUID/PGID
  remapping upstream and breaks the ImageMagick policy setup).
- Additive env value rendered through tpl (value / secretKeyRef /
  configMapKeyRef forms).
- CI fixtures: secret renamed to the new scheme, clusterIssuer added to
  test-values.

Part of #32.
This commit is contained in:
jklein committed 2026-08-22 18:46:07 +02:00
1 parent ceb48dfee9
commit f6de7ffa80
10 files changed
+103 -27

No files matched your search

@@ -1,6 +1,9 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
# Deliberate naming exception (see README): this PVC keeps its historical
# <chart>-<release>-cwa-consume-pvc name — renaming a PVC would provision
# a new, empty volume and orphan the existing data.
name: {{ .Chart.Name }}-{{ .Release.Name }}-cwa-consume-pvc
spec:
accessModes:
@@ -8,4 +11,4 @@ spec:
resources:
requests:
storage: 1Gi
storageClassName: {{ .Values.cwa.storageClass }}
storageClassName: {{ .Values.cwa.storageClass }}