Repository navigation
fix(exec): allowlisted scripts can't be steered into leaking secret keys - #174
Merged
Merged
Conversation
In allowlist mode on the gateway host: - every allowlist-satisfied command runs as its analyzed argv, single-quoted (buildSafeBinsShellCommand with quoteAll), so "$SECRET", ~, globs and braces reach the script as text, never as values; - the model's env parameter is dropped, so it can't point a script's key at another host; - tools.exec.scriptEnv (all | report | declared): "declared" passes only PATH/HOME/locale-type names, the outreach identity, and the keys the script's skill declares (requires.env, primaryEnv, env). Plan: openclaw-dashboard docs/plans/active/exec-secret-keys.md (openclaw#666). Default behavior outside allowlist mode is unchanged; production agents have no allowlists. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cryptolir
added a commit
that referenced
this pull request
Sep 30, 2026
#175) Co-authored-by: Liran Peretz <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
cryptolir
pushed a commit
that referenced
this pull request
Oct 10, 2026
…scriptEnv; fleet snapshot - AGENTS.md (CLAUDE.md is a symlink to it) and the gateway release runbook told sessions to roll prod with `deploy.sh <tag> all`, which rolls every Agent on a server, pilots and stopped ones included (#179 review). Prod rolls are the owner's per-Agent dashboard Upgrade (dashboard openclaw#690). - Core API key list now points to dashboard TERMINOLOGY.md (it had 4 of 7). - configuration-reference: tools.exec.scriptEnv (#174) was undocumented. - INFRASTRUCTURE.md: dev row and §6 fleet from today's docker ps (was June). Co-Authored-By: Claude Opus 5.5 <[email protected]>
cryptolir
added a commit
that referenced
this pull request
Oct 10, 2026
…eet snapshot (2026-10-10) (#181) * docs(status): refresh to 2026-10-10 — open work only, follow-ups, fleet and deploy rules The claimed-branches table had 21 rows, many still "open" or "in review"; all but dashboard openclaw#639 had merged. Merged rows leave the table, their loose ends move to a short follow-up list (checked against the hosts today). The duplicate May-era branch table and Currently In Progress list go. Deploy Rules now name the dashboard Upgrade for prod rolls, not deploy.sh. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: prod Agents roll by the dashboard Upgrade; document tools.exec.scriptEnv; fleet snapshot - AGENTS.md (CLAUDE.md is a symlink to it) and the gateway release runbook told sessions to roll prod with `deploy.sh <tag> all`, which rolls every Agent on a server, pilots and stopped ones included (#179 review). Prod rolls are the owner's per-Agent dashboard Upgrade (dashboard openclaw#690). - Core API key list now points to dashboard TERMINOLOGY.md (it had 4 of 7). - configuration-reference: tools.exec.scriptEnv (#174) was undocumented. - INFRASTRUCTURE.md: dev row and §6 fleet from today's docker ps (was June). Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(status): dashboard openclaw#639 merged today; drop its row Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Liran Peretz <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan: cryptolir/openclaw-dashboard
docs/plans/active/exec-secret-keys.md(openclaw#666, approved by the owner 2026-09-30, internal review folded).The hole (allowlist mode, gateway host): an allowlisted command ran through
sh -cwith the gateway's whole environment, and$VARpassed the analysis. Sogmail.py send --body "$GMAIL_APP_PASSWORD"mailed a key. The model'senvwas also merged in, which let it pointhubspot.pyat another host.The fix:
buildSafeBinsShellCommandwith a newquoteAll; a command that can't be rendered is refused.envis dropped when the enforced security isallowlist, with a warning in the result.tools.exec.scriptEnv:all(default, today's behavior),report(logs key names only), ordeclared.declaredpasses only the always-passed names, the outreach identity and the script's skill keys (requires.env,primaryEnv, and a new optionalmetadata.openclaw.env).Tests:
pi-tools.exec-secret-keys.e2e.test.tsuses a real allowlisted probe script: 5/5 pass, and 4 of them fail with the fix removed.tsgo: no errors insrc/. oxfmt and oxlint are clean on the changed files.Scope: only agents with
security=allowlistand an allowlist, which today are the 8 DevAgents agents. Production agents have no allowlist, so nothing changes there.🤖 Generated with Claude Code