Skip to content

docs(authbridge): document sidecar injection modes and label model #1775

Description

@mrsabath

Problem

The Kagenti documentation does not have a unified, current page that explains:

  1. Sidecar injection modes — what containers a user should expect to see in an agent pod, and which Kagenti mode produces which container set.
  2. The label model that controls injection — kagenti.io/type, kagenti.io/inject, kagenti.io/spire, and the per-sidecar opt-outs (kagenti.io/envoy-proxy-inject, kagenti.io/spiffe-helper-inject, kagenti.io/client-registration-inject).
  3. How to switch modes — and what the resulting container layout will be.

Today this information is partial and scattered:

  • docs/authbridge/deployment-guide.md — covers proxy-sidecar / envoy-sidecar / waypoint modes but uses the older kagenti.io/authbridge-mode annotation and does not mention the SPIRE opt-out label or per-sidecar opt-outs.
  • docs/authbridge/roadmap.md, docs/components.md, docs/design-proposals/consolidated-compositional-agent-platform-design.md — fragments of the model, design-doc tone, not user-facing.
  • charts/kagenti/values.yaml — image tags only.

Why this matters

Users following the weather-agent demo (kagenti-extensions PR #439 review surfaced this) see 3/3 Running with containers agent envoy-proxy spiffe-helper — the demo doc currently claims 2/2 with agent envoy-proxy. There is no canonical page they can go to and figure out what's controlling that, or how to switch.

What we need

A single user-facing page (refresh of docs/authbridge/deployment-guide.md, or a sibling) that covers:

  • A "verify which mode you're in" command (kubectl get pod ... -o jsonpath='{.items[0].spec.containers[*].name}').
  • A table mapping mode + label combination → expected container list.
  • The current label vocabulary (kagenti.io/inject, kagenti.io/spire, per-sidecar opt-out labels) with examples.
  • A short pointer to cluster-admin feature gates (globalEnabled, injectTools, per-sidecar gates) for completeness, with a link to the webhook source of truth.
  • A concrete "how to switch modes" section reflecting the current AgentRuntime CR + ConfigMap precedence chain.

Out of scope (for the doc)

  • Designing new modes.
  • Deprecating kagenti.io/authbridge-mode (still honored — the doc should just reflect that).

Related

  • kagenti-extensions PR epic: Namespace-Based Token Usage Quotas for AI Agents #439 — fixed a stale team1 namespace reference; reviewer + my own verification surfaced that the container count shown in authbridge/demos/weather-agent/demo-ui.md is also stale (says 2/2, real install today shows 3/3 with SPIRE on).
  • Source of truth for the label model: kagenti-webhook/internal/webhook/injector/{pod_mutator.go,constants.go} in kagenti/kagenti-extensions.

Activity

  1. added
    documentation
    on Jun 1, 2026
  2. added a commit that references this issue on Jul 7, 2026
    fd1627e
  3. added this to the Release v0.7.0 milestone on Jul 13, 2026
  4. added 2 commits that reference this issue on Jul 15, 2026
    e810370
    baf5b0e
  5. moved this from In progress to Done in Rossoctl Issue Prioritizationon Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentation

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions