Repository navigation
fix(config): stop a repo's ripr.toml from choosing a program ripr runs - #4438
Conversation
`[perl].executable` from a repository's ripr.toml was spawned by `ripr check`, probed by `ripr doctor`, and spawned by `ripr lsp` on didOpen/didSave, even with Perl not enabled. Because the managed argv starts with `ripr-facts`, `executable = "sh"` plus a committed `ripr-facts` script ran repository code in any editor or shell that opened the clone. The key is now honored only when the invoking user sets RIPR_ALLOW_REPO_PERL_EXECUTABLE=1. Otherwise ripr says it ignored the key and uses the exporter on PATH. Same threat model as the #2183 isolated doctor tool probe (CWE-829). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KbkbzVmEK3yrbNpw2SY5Ee
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedNext included review available in 24 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (10)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KbkbzVmEK3yrbNpw2SY5Ee
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 705157f956
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Review follow-up on #4438: doctor's no-exporter line and next step recommended [perl].executable without RIPR_ALLOW_REPO_PERL_EXECUTABLE=1, and docs/CONFIGURATION.md still described the key as unconditional. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KbkbzVmEK3yrbNpw2SY5Ee
|
Exact-head review record for
Generated by Claude Code |
…t-6646nm # Conflicts: # CHANGELOG.md
|
Exact-head review refresh for 06f7a44 (merge of main 2b85224 into 68ec2af).
Generated by Claude Code |
…t order (#3921) Codex on #4504: [perl].executable still runs with RIPR_ALLOW_REPO_PERL_EXECUTABLE=1, so the security row names the opt-in. #4414/#4440 and #4437/#4484 were grouped out of order; every row is now one commit, and the 39 rows match git log --first-parent 112a834..66fd34f. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AYyUnjaq9zD4WsBujWEUpk
…#4504) Adds a §0.6 table of every first-parent swarm merge from 112a834 through 66fd34f: 39 commits, each with its user-visible change and the notes section it belongs in. It flags the #4438 security fix and its opt-in, the exit-code changes, the workflow changes users must regenerate, the glibc floor and the classification changes. It also records that `exposed` at info is not a change from 0.10.0. Merged under Steven's standing swarm merge policy. The exact head a62341a is green, has an exact-head COMMENT review with no blockers, has its findings answered and has no conflict. The Gemini and CodeRabbit reviews are missing (out of quota and rate-limited). Policy: cmsg_01PNTtQgh6otzUAgrEbiwJapLDNSeHy8MdztUC5UgRC71w, cmsg_01PNTtQgh6otzUAgrEbiwJapJ9t7fvZRC8p2kQ3xWU9c3m, cmsg_01PNTtQgh6otzUAgrEbiwJapXkeTSSUZZxybErtNj3dtgQ. Refs #3921. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AYyUnjaq9zD4WsBujWEUpk
Requested by Steven · project thread
Summary
ripr.tomlcould set[perl] producer = "perl-ripr-facts"andexecutable = "sh"and commit a script namedripr-facts.ripr check,ripr doctor(the first command people run) andripr lspon didOpen/didSave then ran that script, even with Perl not enabled. Reproduced on swarm main 4cdad1a with the release binary forcheckand forlsp --stdio(marker file written). The managed argv starts withripr-facts, so even a bare executable name was enough.[perl].executablefromripr.tomlis honored only when the invoking user setsRIPR_ALLOW_REPO_PERL_EXECUTABLE=1. Otherwisecheckand the LSP warn on stderr that the key was ignored and use the exporter on PATH;doctorprintsexecutable: ignoring [perl].executable ... (not run)and probes only PATH candidates.PerlConfig::executable()(config/model.rs), which both spawn sites (app/check.rsmanaged producer,cli/commands/doctor.rsprobe) already read. Same threat model as the feat(doctor): probe verify-route runtimes for detected languages (#2071) #2183 isolated doctor tool probe (CWE-829). The VS Code extension already refuses to start the server in an untrusted workspace; Neovim/Helix/Zed-style clients and plain shells had no such gate.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Governing issue or accepted claim: found by the 0.11 issue hunt (Steven's "any other issues we can find and fix" ask); no existing issue or PR (searched open/closed issues and open PRs for perl producer/executable).
Acceptance delta (one sentence): a repository config alone cannot make ripr execute a program.
Candidate Relationships
Candidate branch:
claude/0-11-issue-hunt-6646nm. No stack parent, no replacement.Scope
Non-goals: Perl managed-mode redesign,
[perl].cache_dirvalidation, rustup/cargo's ownrust-toolchain.toml/.cargo/config.tomlbehavior (cargo metadata --no-deps --offlinewas checked and does not run a configured rustc wrapper).Support-tier Impact
ripr check --helpenvironment section,ripr.toml.exampleandripr inittemplate comment.Policy Impact
Proof
The end-to-end test (unix) commits the hostile
ripr.toml+ripr-factsscript, runscheckanddoctorwith the opt-in0and asserts no marker plus the refusal wording, then runscheckwith1and asserts the marker exists, so the gate is the only thing that changed.Claim Boundary
May claim: repository config cannot choose a program for
ripr check,ripr doctororripr lspto run. Must not claim: running ripr in an untrusted checkout is safe in general (cargo/rustup read repo-local toolchain config;agent verify-execute --authorizeruns project tests by design).Rollback
Revert the commit; no schema or artifact change.
Spec-Test-Code Traceability
crates/ripr/tests/cli_smoke.rs::repo_config_perl_executable_runs_only_with_user_opt_in,config::tests::perl_executable_from_repo_config_needs_user_opt_incrates/ripr/src/config/model.rs,app/check.rs,cli/commands/doctor.rs,cli/help/core.rsStatic Language Check
CI Economics
n/a
Engineering Check
panic,unwrap,expect,todo, orunimplemented.Gates
cargo fmt --checkcargo xtask precommit(policy checks + on-diff Clippy)Review note: exact-head review pending; CodeRabbit/Gemini/Devin are unavailable for this project's PRs (recorded as review missing, not clean).
🤖 Generated with Claude Code
https://claude.ai/code/session_01KbkbzVmEK3yrbNpw2SY5Ee
Generated by Claude Code