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.
This commit is contained in:
sha committed 2026-11-17 10:21:27 +02:00
1 parent 988cdba5dc
commit c035b29439
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ description: >-
is tracked directly off openclaw/openclaw releases via the annotation below is tracked directly off openclaw/openclaw releases via the annotation below
and scripts/update-charts.sh. and scripts/update-charts.sh.
type: application type: application
version: 0.2.20 version: 0.2.21
appVersion: "2026.11.4" appVersion: "2026.11.4"
annotations: annotations:
version-source: github-release:openclaw/openclaw version-source: github-release:openclaw/openclaw
+2 -2
View File
@@ -67,9 +67,9 @@ spec:
mkdir -p /data/.openclaw/workspace mkdir -p /data/.openclaw/workspace
# The gateway refuses a temp dir that is group or world writable. # The gateway refuses a temp dir that is group or world writable.
# fsGroup sets group access on the PVC at each mount, so make # 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 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/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 [ -f /data/.openclaw/workspace/AGENTS.md ] || cp /seed/AGENTS.md /data/.openclaw/workspace/AGENTS.md
{{- with .Values.containerSecurityContext }} {{- with .Values.containerSecurityContext }}