Repository navigation
fix: the cron isolated agent in openclaw unconditiona (#383) - #63878
drobison00 merged 1 commit into
Conversation
Greptile SummaryThis PR fixes a security issue where Confidence Score: 5/5Safe to merge — targeted single-line security fix with a regression test that locks in the correct non-owner behavior. The change is a one-line privilege reduction (senderIsOwner: true → false) with no collateral impact on other paths. The test harness correctly routes through runEmbeddedPiAgent and verifies the new value. Changelog placement follows repo conventions. No P0/P1 findings. No files require special attention.
|
7beee4d to
d0401b8
Compare
d0401b8 to
2ae8eb3
Compare
Summary
senderIsOwner: trueintorunEmbeddedPiAgent(), so scheduled turns inherited owner-only tool access by default.senderIsOwner: false, and the closest regression test now locks in the non-owner behavior.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause / Regression History (if applicable)
createCronPromptExecutor()hardcodedsenderIsOwner: truefor every isolated cron agent run instead of treating cron content as untrusted by default.git blame, prior PR, issue, or refactor if known): issue [Bug]: Can't install "pnpm ui:install" #383 traced the behavior tosrc/cron/isolated-agent/run-executor.tsand the adjacentrun.owner-auth.test.tsexpectation.Regression Test Plan (if applicable)
src/cron/isolated-agent/run.owner-auth.test.tssenderIsOwner: falseintorunEmbeddedPiAgent().User-visible / Behavior Changes
Security Impact (required)
Yes/No): NoYes/No): NoYes/No): NoYes/No): YesYes/No): YesYes, explain risk + mitigation: cron turns now run with less privilege, which removes owner-only tool access from this path instead of expanding it.Repro + Verification
Environment
Steps
runEmbeddedPiAgent()call arguments.senderIsOwnerstaysfalse.Expected
Actual
senderIsOwner: false.Evidence
Human Verification (required)
pnpm buildpost-turn validation is expected to cover that.Review Conversations
Compatibility / Migration
Yes/No): NoYes/No): NoYes/No): NoFailure Recovery (if this breaks)
senderIsOwnerchange insrc/cron/isolated-agent/run-executor.ts.src/cron/isolated-agent/run-executor.ts,src/cron/isolated-agent/run.owner-auth.test.ts,CHANGELOG.mdRisks and Mitigations