From 4fdca7aded2d07941b741eca7231a5f95ba498d7 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 9 Jan 2026 11:25:30 +0200 Subject: Fix cgit permissions - use UID 101 (nginx user) The cgit image runs as nginx user (UID 101), not www-data (UID 33). - Update initContainer to chown cache to 101:1000 - Update cgit securityContext to runAsUser: 101 --- f3s/git-server/helm-chart/templates/deployment.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/f3s/git-server/helm-chart/templates/deployment.yaml b/f3s/git-server/helm-chart/templates/deployment.yaml index 6c424a0..fe999cb 100644 --- a/f3s/git-server/helm-chart/templates/deployment.yaml +++ b/f3s/git-server/helm-chart/templates/deployment.yaml @@ -26,7 +26,7 @@ spec: - -c - | mkdir -p /cache-init - chown -R 33:1000 /cache-init + chown -R 101:1000 /cache-init mkdir -p /ssh-init chown -R 0:0 /ssh-init volumeMounts: @@ -90,8 +90,8 @@ spec: - name: cgit-cache mountPath: /var/cache/cgit securityContext: - runAsUser: 33 - runAsGroup: 33 + runAsUser: 101 + runAsGroup: 101 allowPrivilegeEscalation: false capabilities: drop: ["ALL"] -- cgit v1.2.3