Repository navigation
Description
Executive summary. The original AuthBridge default (envoy-sidecar) stacks Envoy, an iptables init container, and supporting sidecars into every agent pod — heavy on memory, dependent on privileged mode, and a large debugging surface that limits adoption. This epic makes the lightweight, Klaviger-inspired proxy-sidecar mode the default: a single unprivileged container using HTTP_PROXY routing that still delivers token exchange and per-tool access control, with Envoy retained as an opt-in advanced mode. The core flip shipped in May 2026; the outcome is a leaner, unprivileged-by-default AuthBridge that runs in security-restricted environments, with remaining work tracked under sibling epics.
Problem
The current AuthBridge default deployment (envoy-sidecar mode) requires multiple containers per agent pod — Envoy, iptables init container, and supporting sidecars — adding significant memory overhead and requiring privileged mode for iptables manipulation. This complexity increases the debugging surface and limits adoption in environments with strict security policies (e.g., no privileged containers).
The token exchange and per-tool access control are the valuable parts. The proxy-sidecar mode (Klaviger-inspired) already delivers them with a single unprivileged container using standard HTTP_PROXY routing — but it is not yet the default.
Scope
This epic focuses on two modes only:
| Mode | Role |
|---|---|
| proxy-sidecar (Klaviger-inspired) | New default — single lightweight container, HTTP_PROXY routing, no privileged mode |
| envoy-sidecar | Retained as opt-in advanced mode for transparent iptables-based interception |
Waypoint mode (Istio ambient ext_authz) is out of scope for this epic. It remains available in the binary but is not actively developed or promoted here.
Solution Direction
Short term: Make AuthBridge proxy-sidecar mode the default. HTTP_PROXY/HTTPS_PROXY env var injection replaces iptables interception. Single container, no Envoy, no privileged mode.
Long term: Evaluate Praxis as the underlying proxy runtime (tracked in #1187).
Status: Core epic delivered as of 2026-05 — proxy-sidecar is the default
The bulk of this epic shipped in kagenti-operator PR #361 (merged 2026-05-15), which flipped the default mode to proxy-sidecar, replaced the pod annotation with a CR/ConfigMap-driven resolution chain, and consolidated the image set. Phase A (image unification) landed in kagenti-extensions#409. Remaining work is tracked under separate epics (#1426, #1458) and a small set of follow-up issues listed below.
Progress Tracker
Foundation: Unified AuthBridge Binary (DONE)
| Item | Status | Reference |
|---|---|---|
| Composition layer and mode presets | MERGED | kagenti-extensions#311 |
| Four listeners, one binary | MERGED | kagenti-extensions#312 |
| CI/build for unified binary | MERGED | kagenti-extensions#313 |
| Combined sidecar mode | MERGED | kagenti-extensions#254 |
| Image size reduction | MERGED | kagenti-extensions#324 |
| Split unified binary into mode-specific binaries | MERGED | kagenti-extensions#407, #411 |
| Unified combined sidecar images, drop client-registration | MERGED | kagenti-extensions#409 |
| Modular token exchange library design | CLOSED | kagenti-extensions#279 |
Phase 1: Single Sidecar + HTTP_PROXY Routing (DONE)
One proxy sidecar, HTTP_PROXY env var injection, K8s service account tokens, host-based tool access control. No iptables, no Envoy, no privileged mode.
| Item | Status | Reference |
|---|---|---|
| Mode-aware entrypoint (skip Envoy for proxy-sidecar) | CLOSED | kagenti-extensions#317 |
| Webhook: mode-aware image selection and proxy-sidecar injection | MERGED | kagenti-operator#295 |
| Webhook: per-agent ConfigMap generation at injection time | MERGED | kagenti-operator#297 |
| Webhook: collision-free port assignment for proxy-sidecar | MERGED | kagenti-operator#296 |
| Webhook: ConfigMap-driven mode + flip default to proxy-sidecar (HTTP_PROXY env injection) | MERGED | kagenti-operator#361 |
| HTTPS CONNECT raw TCP passthrough in forward proxy | MERGED | kagenti-extensions#430 |
| mTLS between proxy-sidecar listeners via SPIRE X.509 SVIDs | MERGED | kagenti-extensions#424 |
| Token exchange on TLS connections | OPEN | kagenti-extensions#184 |
Phase 2: Token Exchange for Delegation Chains
Keycloak-based token exchange for delegation chains with pre-configured clients. SPIFFE as opt-in for multi-cluster.
| Item | Status | Reference |
|---|---|---|
| Token refresh and rotation | CLOSED | kagenti-extensions#267 |
| Credential isolation (agents never see tokens) | OPEN | kagenti-extensions#336 |
| Eliminate admin creds from pods | Tracked in | #1426 |
Phase 3: Plugin-Based Extensibility
Tracked in #1458 (Plugin Pipeline epic). Foundation merged in kagenti-extensions#342 and kagenti-extensions#358.
Envoy as Advanced Mode (retained, not default)
| Item | Status | Reference |
|---|---|---|
| Go-native iptables without Envoy | OPEN | kagenti-extensions#330 |
| Combined mode cred injection bug | CLOSED | kagenti-extensions#280 |
| Eliminate spiffe-helper sidecar (replaced with in-process go-spiffe SDK) | CLOSED | kagenti-extensions#332, PR #432 |
| envoy-sidecar mTLS demo | MERGED | kagenti-extensions#440 |
| Webhook: Wire envoy-sidecar mTLS through pod mutator | MERGED | kagenti-operator#381 |
Phase C: Chart values + UI mode selector (follow-up)
Tracked separately — not gating this epic. The default-mode flip in the operator already takes effect without UI changes; the UI dropdown is a quality-of-life follow-up.
Documentation
| Item | Status | Reference |
|---|---|---|
| Sidecar injection labels and feature gates (0.6 line) | OPEN PR | #1782 — retargeted to release-0.6 |
| Sidecar injection guide rewrite for 0.7 (main) | OPEN | #1794 |
| Original docs gap | OPEN | #1775 |
Success Criteria
- Default AuthBridge deployment uses proxy-sidecar mode (1 container, no Envoy, no privileged mode) — kagenti-operator#361
- Webhook injects HTTP_PROXY/HTTPS_PROXY env vars instead of iptables init container — kagenti-operator#295, #361
- Host-based tool access control works in proxy mode — delivered via the forward-proxy listener and pipeline plugins (kagenti-extensions#359, #430)
- Token exchange (RFC 8693) works end-to-end in proxy mode — covered by the unified binary's token-broker import (kagenti-extensions#460) and weather-demo verification (kagenti-extensions#337, #420)
- Envoy/iptables mode retained as opt-in for transparent interception — kagenti-operator#381, kagenti-extensions#440
Remaining Open Work (not gating this epic)
- kagenti-extensions#184 — Token exchange on TLS connections
- kagenti-extensions#336 — Placeholder-based credential isolation
- kagenti-extensions#330 — Go-native iptables (envoy-sidecar advanced mode)
- Phase C — chart values + UI dropdown for mode selector
- #1782 — Sidecar injection docs (0.6 line, retargeted to
release-0.6) - #1794 — Sidecar injection docs rewrite for 0.7 (main)
References
- AuthBridge Binary README — Unified binary architecture, mode configuration, proxy-sidecar port reassignment mechanism
Metadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
esnible commentedon May 4, 2026
Related: document env vars the platform uses to configure agents and tools: #1436
Some Agents might respect HTTP_PROXY env vars, others might not. How does an administrator deploying agents and/or pods indicate if Envoy + ipTables is needed, or HTTP_PROXY?
mrsabath commentedon Jun 2, 2026
Status update — core epic delivered
The default-mode flip and the webhook/image consolidation that this epic was about have all merged. Recording verified state of every linked item so the body matches reality:
Newly closed since this epic was opened:
The "NEW" Phase 1 items are all delivered via:
proxy-sidecar, ConfigMap/CR-driven mode resolution chain, replaces pod annotation, collapses image set to two combined images +proxy-initStill open (NOT gating; tracked as follow-ups):
kagenti/kagenti)Leaving this epic open for now to track Phase C (UI/chart) and the three remaining
kagenti-extensionsfollow-ups. All five Success Criteria are met for the default-mode shift itself.mrsabath commentedon Jun 12, 2026
📊 Status sync — 2026-06-12 (automated rollup, please verify before acting)
This epic is substantively delivered — the default-mode flip to proxy-sidecar merged (kagenti-operator#361, 2026-05-15) and all 5 success criteria are checked. ~26 of ~30 linked items closed/merged.
Stale entries:
Remaining open items (#184, #336, #330, #1794, #1775, Phase C UI) are all explicitly flagged non-gating.
→ Given the core work shipped and only non-gating follow-ups remain, this epic may be a candidate to close (or split the non-gating remainder into a follow-up).
mrsabath commentedon Jun 12, 2026
✅ Epic complete — closing.
The core deliverable of this epic shipped: proxy-sidecar is the default AuthBridge mode — a single unprivileged container using HTTP_PROXY routing, replacing the Envoy + iptables stack. The default-mode flip merged in kagenti-operator#361 (2026-05-15), with image unification in kagenti-extensions#409 and the full foundation/Phase-1 work merged across kagenti-extensions and kagenti-operator. All 5 success criteria are checked.
Remaining non-gating follow-ups have been moved to #1187 (Modular AuthBridge — Praxis evaluation), so they continue to track under an active epic:
Docs work continues under #1469 (#1794), and the admin-credential / plugin-pipeline workstreams remain tracked in their own epics (#1426, #1458).
Closing as completed.