From c035b294398bba4ebd9cdf8edfa560428dde54fb Mon Sep 17 00:00:00 2001 From: sHa Date: Tue, 17 Nov 2026 10:21:27 +0200 Subject: [PATCH] openclaw: make the state dir private at start The gateway checks each ancestor of its temp dir. fsGroup gives .openclaw the mode 2770 at each mount, so chmod 700 on the tmp dir alone is not enough. Run chmod 700 on .openclaw too. Bump the chart to 0.2.21. --- openclaw/Chart.yaml | 2 +- openclaw/templates/deployment.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openclaw/Chart.yaml b/openclaw/Chart.yaml index 72f17ee..f877548 100644 --- a/openclaw/Chart.yaml +++ b/openclaw/Chart.yaml @@ -7,7 +7,7 @@ description: >- is tracked directly off openclaw/openclaw releases via the annotation below and scripts/update-charts.sh. type: application -version: 0.2.20 +version: 0.2.21 appVersion: "2026.11.4" annotations: version-source: github-release:openclaw/openclaw diff --git a/openclaw/templates/deployment.yaml b/openclaw/templates/deployment.yaml index 7a52070..88b1a33 100644 --- a/openclaw/templates/deployment.yaml +++ b/openclaw/templates/deployment.yaml @@ -67,9 +67,9 @@ spec: mkdir -p /data/.openclaw/workspace # The gateway refuses a temp dir that is group or world writable. # fsGroup sets group access on the PVC at each mount, so make - # the fallback temp dir private after the mount. + # the state dir and its temp dir private after the mount. mkdir -p /data/.openclaw/tmp - chmod 700 /data/.openclaw/tmp + chmod 700 /data/.openclaw /data/.openclaw/tmp [ -f /data/.openclaw/openclaw.json ] || cp /seed/openclaw.json /data/.openclaw/openclaw.json [ -f /data/.openclaw/workspace/AGENTS.md ] || cp /seed/AGENTS.md /data/.openclaw/workspace/AGENTS.md {{- with .Values.containerSecurityContext }}