Run Mosquitto with its non-root image user
Validate, publish and promote mosquitto / validate (push) Successful in 13s
Validate, publish and promote mosquitto / publish (push) Successful in 24s

This commit is contained in:
feedc0de committed 2026-10-18 19:40:13 +02:00
1 parent bdf7cf022c
commit 0aa09dd91f
2 files changed
+7

No files matched your search

+5
View File
@@ -19,6 +19,11 @@ spec:
labels: {app: mosquitto}
spec:
automountServiceAccountToken: false
securityContext:
runAsNonRoot: true
runAsUser: 1883
runAsGroup: 1883
seccompProfile: {type: RuntimeDefault}
containers:
- name: mosquitto
image: {{ printf "%s:%s" .Values.image.repository .Values.image.tag | quote }}
+2
View File
@@ -8,3 +8,5 @@ trap 'rm -f "$rendered"' EXIT
helm template mosquitto "$chart" > "$rendered"
grep -q '^kind: Deployment$' "$rendered"
grep -q '^kind: Service$' "$rendered"
grep -q 'runAsNonRoot: true' "$rendered"
grep -q 'runAsUser: 1883' "$rendered"