Repository navigation
fix(security): report canonical agents.entries paths in audit and diagnostics - #113603
Merged
Merged
Conversation
…gnostics Audit findings, dangerous-flag labels, exec-approval provenance, filesystem policy drift, and the skill-workshop tool diagnostic printed agents.list.* paths users cannot paste into openclaw.json: dotted agents.list.<id> is valid in no shape, and index-keyed agents.list.<n> only names the internal validation projection. All display surfaces now emit agents.entries.<id>; the summary agent-id extractor regex follows the new labels. Roster-aware builders keep an indexed fallback only for id-less malformed legacy rows, and validation/doctor/legacy-migration paths intentionally keep the legacy form because they point into the user's actual file. Follow-up deferred from #113160.
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 26, 2026
…gnostics (openclaw#113603) Audit findings, dangerous-flag labels, exec-approval provenance, filesystem policy drift, and the skill-workshop tool diagnostic printed agents.list.* paths users cannot paste into openclaw.json: dotted agents.list.<id> is valid in no shape, and index-keyed agents.list.<n> only names the internal validation projection. All display surfaces now emit agents.entries.<id>; the summary agent-id extractor regex follows the new labels. Roster-aware builders keep an indexed fallback only for id-less malformed legacy rows, and validation/doctor/legacy-migration paths intentionally keep the legacy form because they point into the user's actual file. Follow-up deferred from openclaw#113160.
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.
What Problem This Solves
Security audit findings, dangerous-config-flag labels, exec-approval provenance strings, filesystem-policy drift labels, and the skill-workshop tool diagnostic all reported per-agent config paths in
agents.list.*form. Users cannot paste those intoopenclaw.json: the canonical user-editable shape is the keyed mapagents.entries.<id>…, whileagents.listis an internal validation projection (an array the config schema rejects as input). Worse, most of these labels were dotted-id fictions likeagents.list.ops.tools.exec— valid in no shape, past or present.Follow-up deferred from #113160, which swept the simple
agents.list[]hint literals; these paths are traversal-built.Why This Change Was Made
src/security(audit findings, trust-model context labels, model-ref sources, plugin-trust contexts, sandbox-docker paths, exec safe-bins hits, minimal-profile overrides), plusexec-approvals-effectiveprovenance and the skill-workshop diagnostic, now emitsagents.entries.<id>….audit-extra.summary.tsparses agent ids back out of those labels; its extraction regex moves with them (a silent-breakage coupling the sweep surfaced).dangerous-config-flags-core, workshop diagnostic) keep an indexedagents.list.<n>fallback only for id-less malformed legacy rows, so a remediation can never point atagents.entries.undefined.src/config/validation.tsand doctor/legacy-migration code (validation errors must point into the user's actual file, and a legacy list-shaped file really containsagents.list), the internal.listprojection property, secrets provenance collectors for legacy sources, and theagents.listgateway RPC id. A fullrg 'agents\.list\.'sweep disposition was reviewed hit-by-hit.User Impact
openclaw security audit, dangerous-flag reports, exec-approval explanations, and skill-workshop diagnostics now name config paths that can be pasted directly intoopenclaw.json(e.g.agents.entries.ops.tools.exec.safeBinsinstead ofagents.list.ops.tools.exec.safeBins).Evidence
node scripts/run-vitest.mjs src/security— 131 files, 887 tests green (includes new canonical-path regression tests per surface plus explicit legacy-shape cases: list-sourced entries with ids report canonical paths; an id-less legacy row keeps its indexed path).src/skills/workshop/tool-policy-diagnostic.test.ts10/10,src/infra/exec-approvals-policy.test.ts69/69,src/commands/sandbox-explain.test.ts12/12.tsgocore + core-test lanes clean; oxfmt/git diff --checkclean;dangerous-config-flags-current-snapshot.test.tsunchanged and green.agents.entries.undefinedfor id-less legacy rows in the workshop diagnostic — was accepted and fixed with the indexed fallback).