Repository navigation
fix(security)!: owner-only records and tole binary refused under a session - #700
Merged
Merged
Conversation
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
ajianaz
force-pushed
the
security/owner-only-records
branch
from
November 14, 2026 01:44
80a4ced to
35e2936
Compare
This was referenced Nov 14, 2026
Closed
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
A session (root, child or cron agent run) can no longer run the tole binary through
run_commandorjob_start, and the owner-only subcommands refuse to write when running under a session.run_commandandjob_startrefuse an argv whose program is the tole binary (by name, by resolving to the running executable, behindenv/nohup/sh -c) and any argument namingTOLE_UNDER_SESSION.TOLE_UNDER_SESSION=1.tole cron create|resume|edit,plugin approve,skills approve,skills drafts promoteandconfig trustrefuse when that marker orTOLE_AGENT_DEPTH >= 1is set.write_file,edit_fileordelete_filewhen the workspace holds the tole data dir.BREAKING: see the CHANGELOG entries under Behavior change.
Why
A session could run
tole cron create,tole plugin approveortole config trustand have it saved as the owner's decision, bypassing the owner-only approval boundary.Testing
cargo fmt --check,cargo clippy --workspace --all-targets -- -D warningsandcargo test --workspacepass.cargo check,clippyandtestfortole-cliwith--no-default-features(with and withoutshell-tools) pass.owner_only_e2etests cover each refused subcommand under a session.Closes #684