Repository navigation
Description
Summary
Integrate AuthBridge with the OpenShell sandbox runtime so that an agent
running inside an OpenShell session has all of its outbound traffic (inference
calls and tool/MCP calls) mediated by AuthBridge. OpenShell provides the
sandboxed execution environment; AuthBridge provides the zero-trust egress
enforcement and policy layer on top of it.
Background
OpenShell runs the agent in a sandbox with a long-lived PID 1. When the sandbox
is configured with NetworkMode=Allow, there is no per-sandbox netns or
built-in egress proxy — meaning the network path is open and AuthBridge can
own egress for the sandbox (rather than fighting OpenShell's own networking).
This makes NetworkMode=Allow the natural integration lever: pair the OpenShell
sandbox with an AuthBridge egress enforcement point so that everything leaving
the agent flows through AuthBridge.
AuthBridge already:
- Enforces egress (iptables redirect/filter + securityContext lockdown) rather
than relying on bypassableHTTP_PROXYenv vars. - Proxy-injects short-lived OBO tokens so the agent never holds long-lived
downstream credentials.
Use cases
1. Restrict the agent to only approved internal MCP tools / servers
Use AuthBridge's egress enforcement to apply an allowlist of MCP servers and
tool endpoints the sandboxed agent is permitted to reach. Connections to any
MCP server / tool not on the approved list are blocked at the network boundary,
not merely discouraged via configuration the agent could ignore or override.
- Allowlist by host / SPIFFE identity / service.
- Default-deny egress from the OpenShell sandbox.
- Inbound OBO token injection for the approved internal targets.
2. Guardrails on the agent for inference and tool calls
Route both inference traffic (LLM provider calls) and tool/MCP calls
through AuthBridge so policy and guardrails can be applied uniformly:
- Inspect / authorize inference requests and tool invocations before they leave
the sandbox. - Apply per-call policy (which models, which tools, which arguments) and audit
every call. - Attach trusted workload identity to each call so downstream services can
authorize the agent, not just the human.
Scope / open questions
- Confirm the deployment shape: AuthBridge as a sidecar alongside the
OpenShell sandbox vs. an egress gateway the sandbox routes to. - Validate egress capture under
NetworkMode=Allow(iptables redirect works
given the sandbox's securityContext: non-root + seccomp + no_new_privs, no
cap-drop). - DNS handling for the sandbox (resolver reachability under egress rules).
- Define the MCP-server allowlist config surface (where it lives, how the
operator/UI manages it per agent). - Guardrail policy hook for inference + tool calls (inline enforcement vs.
audit-only first). - E2E demo: sandboxed agent restricted to an approved internal MCP server,
with a denied-call negative test.
Related
- AuthBridge token-exchange / IDP-agnostic plugin work (feat(authbridge): make token-exchange plugin interface IDP-agnostic #481, feat(authbridge): add Okta token-exchange plugin #483, feat(authbridge): add Microsoft Entra ID token-exchange plugin #482)
- OpenShell sandbox runtime integration
Assisted-By: Claude Code
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
github-actions commentedon Aug 15, 2026
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. If this issue is still relevant, please comment or remove the stale label.
github-actions commentedon Aug 29, 2026
This issue was closed because it has been stale for 14 days with no activity. Feel free to reopen if this is still relevant.