Repository navigation
feat(hermes): sandbox macOS local terminal away from secret files (RIG-11734) - #245
Open
rigel-mintaka wants to merge 1 commit into
Open
rigel-mintaka wants to merge 1 commit into
rigel-mintaka wants to merge 1 commit into
Conversation
…G-11734) Known limits: tmux, launchd and other unsandboxed IPC services can execute outside the sandbox. vault_secret shell spawns are not sandboxed. Hard-link denial requires a macOS live check. Co-authored-by: Matt Wilkinson <matt@rigel.build>
Contributor
Author
Review rounds 1-3 (RIG-11734)
The macOS live check is owed after deploy; the list is on RIG-11734. |
Contributor
Author
|
All-clear at 1313771 |
rigel-mintaka
marked this pull request as ready for review
November 23, 2026 04:23
This branch had an error being deployed
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 does this do
On macOS, local terminal commands now run under
sandbox-exec, with a profile that hides Hermes's secret files from the command..env,.op.env,auth.json,auth.lockand.rr-token, in resolved and unresolved forms.mcp-tokens/,vault/,browser-profile/andwebapp/.config.yamlis write-denied, and HERMES_HOME and its parent folders are blocked from rename.terminal.sandbox_macos_secrets: true.sandbox-execlogs one warning and runs without the sandbox.Why do we need it
The ruling on RIG-11734 picked sandbox-exec over parsing more bash. Hiding the files at the OS level ends the bypass class, such as HOME moves (RIG-11692 and RIG-11774 on macOS).
Summary
tools/environments/local.pybuilds the profile;process_registry.pyandcode_kernel.pywrap their spawns with it..env,.op.envand the auth store load as absent on EPERM inside the sandbox.Verification
lnandln -sof a secret, and ancestor renames all fail with EPERM.hermes config show,status,cron list,gitand file creation in$HOMEstill work.e388bc67is clean.Risks
vault_secretruns unsandboxed, behind the approval hook.auth.jsonis denied in the root home (R3-L1).Rollback: set
terminal.sandbox_macos_secrets: false, or revert.Spec impact
Spec-impact: none.
Checks skipped:
nebula has no pre-push hook config; GitHub Actions ci.yaml runs its checksRefs RIG-11734
Co-authored-by: Matt Wilkinson matt@rigel.build