Skip to content

docs(rfc): propose the external network enforcer and native-network mode (RFC 0029) - #6117

Open
Gal-Zaidman wants to merge 1 commit into
ai-openshell:mainfrom
Gal-Zaidman:docs/external-enforcer-rfc/Gal-Zaidman
Open

Gal-Zaidman wants to merge 1 commit into
ai-openshell:mainfrom
Gal-Zaidman:docs/external-enforcer-rfc/Gal-Zaidman

Conversation

@Gal-Zaidman

@Gal-Zaidman Gal-Zaidman commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Propose RFC 0029, which lets an external policy enforcer enforce a Kubernetes sandbox's network policy and inject its provider credentials instead of the supervisor. Sandboxes it serves run in native-network mode, and the gateway keeps the agent from running until the enforcer has accepted the sandbox's configuration.

Related Issue

Closes #6024. The implementation follows in a separate PR, behind the experimental feature.

Changes

  • Define native-network mode, selected by the Kubernetes driver's external_enforcer table: the agent's traffic leaves on the network interface the enforcer owns, without the supervisor's egress proxy or policy DNS.
  • Connect the enforcer to the gateway on the SupervisorHost stream with its own role and token. It reads configuration and provider environment through the existing supervisor RPCs and reports what it enforces with ReportSandboxConfiguration.
  • Keep the supervisor and enforcer in step: hold a generation's agent until the enforcer accepts it, hold credential installs the enforcer hasn't accepted, and make a policy revision current only once both sides apply it.
  • List the deployment guarantees the mode depends on, and optional node shards for enforcers that each serve a subset of nodes.
  • Amend RFC 0012 to admit native-network mode as the one exception to egress mediation, and add an open question about a native-network conformance profile.
  • Lay out an implementation plan that ships the mode behind the experimental feature until it runs end to end, plus risks, alternatives, and prior art.

Release Notes

Testing

  • mise run markdown:lint passes, including Mermaid validation.
  • git diff --check passes.
  • Unit tests added/updated (not applicable: RFC only)
  • E2E tests added/updated (not applicable: RFC only)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

@Gal-Zaidman
Gal-Zaidman force-pushed the docs/external-enforcer-rfc/Gal-Zaidman branch from ee28621 to 5d5d245 Compare December 1, 2026 08:03
@Gal-Zaidman Gal-Zaidman changed the title docs(rfc): propose the external network enforcer and native-network mode docs(rfc): propose the external network enforcer and native-network mode (RFC 0029) Dec 1, 2026
RFC 0029 lets an external enforcer enforce a native-network sandbox's
network policy and inject its credentials. It connects to the gateway as
a supervisor host in an enforcer role, reads configuration and provider
environment through the supervisor RPCs, and acknowledges with
ReportSandboxConfiguration. The gateway holds a generation's agent until
the enforcer accepts it, holds credential rotations until the enforcer
has them, and makes a policy revision current once both sides apply it.

The Kubernetes driver selects the mode with an external_enforcer table,
and RFC 0012 admits it as the one exception to egress mediation.

Signed-off-by: Gal Zaidman <gzaidman@nvidia.com>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): propose the external network enforcer and native-network mode (RFC 0029)

1 participant