mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-11-26 19:30:47 +00:00
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:
1 parent
988cdba5dc
commit
c035b29439
2 files changed
+3
-3
No files matched your search
@@ -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 }}
|
||||
|
||||
Reference in new issue
Block a user