Repository navigation
fix: default local onboarding tools profile to coding - #39012
Conversation
PR SummaryMedium Risk Overview Tests covering onboarding config generation and non-interactive gateway onboarding expectations are updated, and the change is reflected in the changelog and onboarding/configuration documentation. Written by Cursor Bugbot for commit 57399a3. This will update automatically on new commits. Configure here. |
🔒 Aisle Security AnalysisWe found 1 potential security issue(s) in this PR:
1. 🟡 Insecure default tool profile enables filesystem and exec tools for new configs
DescriptionThe onboarding defaults were changed to set This is a least-privilege regression because the coding profile enables high-impact tools (per
In deployments where onboarding-generated configs are later used with gateway-connected channels that can receive untrusted content (e.g., Telegram/Discord/webhooks/email ingestion), this materially increases exposure to prompt-injection leading to:
Vulnerable change: export const ONBOARDING_DEFAULT_TOOLS_PROFILE: ToolProfileId = "coding";While there are other guardrails elsewhere (e.g., some owner-only tools, exec approval controls for host execution, optional sandboxing), changing the default profile makes these powerful capabilities available without an explicit opt-in step. RecommendationRestore least-privilege defaults, or make the default conditional on the deployment context. Options:
export const ONBOARDING_DEFAULT_TOOLS_PROFILE: ToolProfileId = "messaging";
Also document the security implications prominently: “ Analyzed PR: #39012 at commit Last updated on: 2026-03-07T17:09:48Z |
Greptile SummaryThis PR fixes a regression introduced after 2026.3.2 where fresh local onboarding silently configured agents with
Confidence Score: 5/5
Last reviewed commit: 57399a3 |
…150596) The diff includes an unchanged four-test file split to meet the line limit; production shrinks by 54 lines. ## What Problem This Solves New local setups use Coding, which excludes messaging. The existing `openclaw` setup helper is also missing from the tool catalog. ## Why This Change Was Made The owner approved Full for unprofiled local onboarding, including reruns, and the helper's group allow/deny membership. This intentionally revises #39012. The onboarding default has one writer. Security and Agents now save Full consistently; the UI uses the canonical tool catalog instead of a duplicate list. ## User Impact New setups get broad tool selection. “Available tools” is distinct from “Execution permissions”; Full does not mean Full Access. ## Evidence Real isolated onboarding: `coding` before → `full` after. [Commands and browser proof](https://gist.github.com/obviyus/3ba9dd83878ff416c0c462468926e79a). | Before | After | | --- | --- | |  |  | |  |  | ## Compatibility No migration or new settings. Existing explicit profiles and independent execution rules stay intact during normal upgrade. Re-onboarding an unprofiled config selects Full. Helper membership extends automation/OpenClaw group allows **and denies**; owner and sandbox checks remain. [Compatibility proof](#150596 (comment)): published 2026.9.3 updater → candidate `d80239aace2d`, healthy Gateway, 12 Doctor scenarios twice, and 202 migration tests pass. The conflict-only rebase preserves those profile/helper changes. Existing Doctor repairs can rewrite conflicting profile/allow settings; tested helper policy access survives. ## Consumers CLI, wizard, setup repair, Gateway catalog, and Tools UI share existing owners. Full also selects available optional plugin tools. ## Invalidation Existing config reload and catalog refresh remain unchanged. ## Tests 412 core/plugin tests and 152 UI tests pass on the earlier proof merge; 54 affected UI tests pass after the conflict-only rebase. Type-aware changed lint, core types, script/root types, format, architecture, unused-export, UI size, and docs checks pass. CI corrections move the two optional-plugin cases into a focused test and update the full settings save/reload test. All 134 cases pass locally, including the repaired E2E, and the new file-growth check passes. Production behavior is unchanged. The prior CI run also hit Slack test/type failures from #150608, reproduced on its main and absent on its parent. Main now fixes those separately in `8f463a22`; this PR carries no Slack edits. Co-authored-by: Ayaan Zaidi <[email protected]>
…penclaw#150596) The diff includes an unchanged four-test file split to meet the line limit; production shrinks by 54 lines. ## What Problem This Solves New local setups use Coding, which excludes messaging. The existing `openclaw` setup helper is also missing from the tool catalog. ## Why This Change Was Made The owner approved Full for unprofiled local onboarding, including reruns, and the helper's group allow/deny membership. This intentionally revises openclaw#39012. The onboarding default has one writer. Security and Agents now save Full consistently; the UI uses the canonical tool catalog instead of a duplicate list. ## User Impact New setups get broad tool selection. “Available tools” is distinct from “Execution permissions”; Full does not mean Full Access. ## Evidence Real isolated onboarding: `coding` before → `full` after. [Commands and browser proof](https://gist.github.com/obviyus/3ba9dd83878ff416c0c462468926e79a). | Before | After | | --- | --- | |  |  | |  |  | ## Compatibility No migration or new settings. Existing explicit profiles and independent execution rules stay intact during normal upgrade. Re-onboarding an unprofiled config selects Full. Helper membership extends automation/OpenClaw group allows **and denies**; owner and sandbox checks remain. [Compatibility proof](openclaw#150596 (comment)): published 2026.9.3 updater → candidate `d80239aace2d`, healthy Gateway, 12 Doctor scenarios twice, and 202 migration tests pass. The conflict-only rebase preserves those profile/helper changes. Existing Doctor repairs can rewrite conflicting profile/allow settings; tested helper policy access survives. ## Consumers CLI, wizard, setup repair, Gateway catalog, and Tools UI share existing owners. Full also selects available optional plugin tools. ## Invalidation Existing config reload and catalog refresh remain unchanged. ## Tests 412 core/plugin tests and 152 UI tests pass on the earlier proof merge; 54 affected UI tests pass after the conflict-only rebase. Type-aware changed lint, core types, script/root types, format, architecture, unused-export, UI size, and docs checks pass. CI corrections move the two optional-plugin cases into a focused test and update the full settings save/reload test. All 134 cases pass locally, including the repaired E2E, and the new file-growth check passes. Production behavior is unchanged. The prior CI run also hit Slack test/type failures from openclaw#150608, reproduced on its main and absent on its parent. Main now fixes those separately in `96195a16`; this PR carries no Slack edits. Co-authored-by: Ayaan Zaidi <[email protected]>
Summary
tools.profilefrommessagingtocodingtools.profilevalues unchangedWhy
This is the root-cause fix for the post-2026.3.2 regression where fresh/local onboarding could leave agents effectively chat-only (
message/sessions) with noread/write/exectools.messagingis a base allowlist that excludesgroup:fsandgroup:runtime, so onboarding was generating a config that stripped the tools local setups expect.Validation
pnpm vitest run src/commands/onboard-config.test.ts src/commands/onboard-non-interactive.gateway.test.tspnpm checkpnpm buildpnpm testRelated
Thanks @cgdusek.