Skip to content

Integrate AuthBridge with OpenShell sandbox runtime (egress enforcement + guardrails) #503

Closed as not planned

Description

@huang195

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 bypassable HTTP_PROXY env 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


Assisted-By: Claude Code

Activity

  1. added
    enhancement
    Identity
    on Jun 15, 2026
  2. self-assigned this
    on Jun 15, 2026
  3. github-actions commented on Aug 15, 2026

    @github-actions
    Contributor

    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.

  4. github-actions commented on Aug 29, 2026

    @github-actions
    Contributor

    This issue was closed because it has been stale for 14 days with no activity. Feel free to reopen if this is still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Identityenhancementstale

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions