From 7f817e2c0a98cfcac7b7d1782873b746bd27b30e Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Sat, 30 May 2026 14:11:58 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB(devx)=20rever?= =?UTF-8?q?t=20securityContext=20on=20dev=20Tilt=20stack?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The securityContext and podSecurityContext were harming hot reloading on the dev stack. The file permission system prevented source updates because the user running the image was not root. --- src/helm/env.d/common.yaml.gotmpl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/helm/env.d/common.yaml.gotmpl b/src/helm/env.d/common.yaml.gotmpl index 1a427b7f..94945304 100644 --- a/src/helm/env.d/common.yaml.gotmpl +++ b/src/helm/env.d/common.yaml.gotmpl @@ -1,17 +1,15 @@ .podSecurityContext: &podSecurityContext - runAsUser: 1000 - runAsGroup: 1000 - fsGroup: 1000 - fsGroupChangePolicy: "OnRootMismatch" - runAsNonRoot: true + runAsUser: 0 + runAsGroup: 0 + fsGroup: 0 + runAsNonRoot: false seccompProfile: type: RuntimeDefault .securityContext: &securityContext - allowPrivilegeEscalation: false + allowPrivilegeEscalation: true capabilities: - drop: - - ALL + drop: [] frontend: podSecurityContext: *podSecurityContext