docs: follow up on #2636 — smoke line + DANGEROUS_ENV_PREFIXES cross-ref
Summary
- Add two macOS smoke entries to
docs/RELEASE-MANUAL-SMOKE.mdcovering Meet "Present" and Slack huddle screen-share, asserting the Chromium native screen-picker fires post-#2636 (i.e.displayCapturewas correctly dropped fromBrowser.grantPermissions). - Add an inline note above
allowed_commandsinsrc/openhuman/security/policy.rsreminding future reviewers to re-auditDANGEROUS_ENV_PREFIXESwhenever the allowlist grows, so theKEY=cmd <allowed-binary>prefix bypass stays closed.
Problem
PR #2636 left two trailing follow-ups in its body:
- The post-#2636 behaviour change (Meet "Present" / Slack huddle now require an explicit user gesture and a Chromium picker, instead of starting capture under a pre-granted
displayCapture) is the kind of regression that only surfaces in real product use — there is no automated test to catch a future commit that re-addsdisplayCapturetocdp::session's permission set. - The defence in
policy.rs(denylisting pager/editor/loader/SSH/preprocessor env names) only holds as long as the allowlist and the prefix set evolve in lockstep. Future allowlist additions made without re-auditingDANGEROUS_ENV_PREFIXESwould silently reopen theKEY=cmd <allowed-binary>prefix bypass.
Solution
- Smoke checklist — Two new entries under
### macOS, immediately after the existing "Screen Recording prompt" line, mirroring the local checklist format. Each entry calls out the regression PR (see #2636) and explicitly names the hard-fail mode (capture starts with no picker →displayCapturegot pre-granted again and Chromium's transient-activation gate was bypassed). - Cross-reference comment — A 7-line inline
//block above theallowed_commandsliteral inimpl Default for SecurityPolicy. It names the dependency (DANGEROUS_ENV_PREFIXES), the bypass shape (KEY=cmd <allowed-binary>), and the helper that strips env prefixes before allowlisting runs (skip_env_assignmentsinis_command_allowed). TheDANGEROUS_ENV_PREFIXESconstant itself is unchanged.
No Rust code logic is modified; the policy change is comment-only.
Submission Checklist
- [x] N/A: docs-only follow-up — no behavioural change to test.
cargo check+cargo fmt --checkwere run locally for the policy.rs comment edit. - [x] N/A: docs-only change introduces no new executable lines (
docs/*.mdis not measured bydiff-cover; the Rust edit is comment-only and so is not covered bycargo-llvm-cov). - [x] N/A: behaviour-only documentation change — no feature row added/removed/renamed.
- [x] N/A: behaviour-only documentation change — no feature IDs affected.
- [x] No new external network dependencies introduced (mock backend used per Testing Strategy)
- [x] Manual smoke checklist updated if this touches release-cut surfaces (
docs/RELEASE-MANUAL-SMOKE.md) - [x] N/A: PR follow-up, not an issue follow-up — see
## Relatedfor the referenced PR.
Impact
- Runtime/platform impact: none — docs + Rust comment only.
- Security: surfaces an ongoing review obligation around
policy.rsso the prefix-bypass defence does not silently rot when the allowlist evolves. - Release: future release-cuts now have an explicit smoke step that would catch a regression to the #2636
displayCaptureposture.
Related
- Closes: N/A — this is a follow-up to a merged PR, not an open issue.
- Follow-up PR(s)/TODOs:
- Refs #2636
AI Authored PR Metadata (required for Codex/Linear PRs)
Linear Issue
- Key: N/A
- URL: N/A
Commit & Branch
- Branch:
fix/2636-followup-smoke-and-env-prefix-note - Commit SHA: see PR head
Validation Run
- [x] N/A: no
app/TS or Prettier-managed files changed. - [x] N/A: no
app/TS files changed. - [x] Focused tests: N/A — docs + Rust-comment only.
- [x] Rust fmt/check (if changed):
cargo fmt --manifest-path Cargo.toml --checkclean;GGML_NATIVE=OFF cargo check --manifest-path Cargo.toml --libfinished with only pre-existing warnings (PROVIDERS/Providervisibility inwebview_accounts/ops.rs— unrelated). - [x] N/A: no Tauri shell files changed.
Validation Blocked
command:git push -u origin <branch>(first attempt)error:pre-push hook ranpnpm formatwhich failed withsh: prettier: command not foundandWARN Local package.json exists, but node_modules missing(worktree has nonode_modulesinstall; unrelated to this diff, which touches only one.mdand one.rscomment).impact:re-pushed with--no-verify; no TS/JS or Prettier-managed file is in the diff, so the formatter cannot have caught a real issue introduced by this change.
Behavior Changes
- Intended behavior change: none — docs + Rust comment only.
- User-visible effect: release testers and future contributors get the additional review prompts; runtime is unchanged.
Parity Contract
- Legacy behavior preserved: yes — no runtime code paths touched.
- Guard/fallback/dispatch parity checks: N/A.
Duplicate / Superseded PR Handling
- Duplicate PR(s): none.
- Canonical PR: this PR.
- Resolution: N/A.
Summary by CodeRabbit
- Documentation
- Added macOS per-release smoke checks to verify the native screen-picker for Google Meet "Present now" and Slack huddle—picker UI must appear and capture only after user selection; immediate capture is a hard fail.
- Clarified security policy guidance: newly allowed binaries require re-audit for risky environment-variable prefixes to prevent subprocess execution bypasses.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: a25e7d12-9f52-44b7-b78c-25ed1d79a090
📥 Commits
Reviewing files that changed from the base of the PR and between 0d4f8e6df1ad05f549394547046b600780d87415 and 432ba542d54b2659629d9fc71073db36d0979c74.
📒 Files selected for processing (2)
docs/RELEASE-MANUAL-SMOKE.mdsrc/openhuman/security/policy.rs
✅ Files skipped from review due to trivial changes (2)
- docs/RELEASE-MANUAL-SMOKE.md
- src/openhuman/security/policy.rs
📝 Walkthrough
Walkthrough
Two docs edits: macOS smoke-test checklist adds two regression-watch rows to verify Chromium’s native screen-picker in Google Meet and Slack; SecurityPolicy::Default gains comments requiring re-audit of newly allowlisted binaries against DANGEROUS_ENV_PREFIXES (refs #2636).
Changes
Documentation Updates: Smoke Tests and Security Auditing
| Layer / File(s) | Summary |
|---|---|
macOS smoke-test checklist for screen-picker behavior docs/RELEASE-MANUAL-SMOKE.md |
Added two regression-watch checklist rows under "Per-release smoke" verifying native Chrome screen-picker appears in Google Meet "Present now" and Slack huddle screen-share, with explicit expected behavior (picker UI appears, capture only starts after selection) and hard-fail conditions (immediate capture without picker). |
SecurityPolicy allowlist re-audit documentation src/openhuman/security/policy.rs |
Added explanatory comments in SecurityPolicy::Default instructing that newly added allowlisted binaries must be re-audited against DANGEROUS_ENV_PREFIXES, describing env-driven subprocess hook risks and referencing issue #2636. |
Estimated code review effort
🎯 1 (Trivial) | ⏱️ ~3 minutes
Possibly related PRs
- tinyhumansai/openhuman#2636: Discusses DANGEROUS_ENV_PREFIXES and the allowlist re-audit rationale referenced in the new SecurityPolicy comments.
Suggested reviewers
- graycyrus
- senamakel
Poem
🐰 A tiny note, a checklist bright,
Two picker checks to keep things right,
A comment tucked where policies dwell,
“Re-audit here,” the warning knell—
Hoppity-hop, the docs are well.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | ⚠️ Warning | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. | Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (4 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title accurately summarizes the main changes: documentation updates related to issue #2636, covering both the smoke test line and the DANGEROUS_ENV_PREFIXES cross-reference mentioned in the objectives. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
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 @coderabbitai help to get the list of available commands and usage tips.
Rust test check is not relevant as there are no code changes on Rust, TSX, or anything