Skip to content

feature: Consolidate AuthBridge config to a single source of truth #1768

Closed

Description

@davidhadas

Feature Description

AuthBridge config has 3 independent sources that all need to agree.

Here's the flow:

  1. Helm templates (initial deploy for pre-declared namespaces like team1/team2):
    - authbridge-template-configmaps.yaml — creates authbridge-runtime-config ConfigMap in kagenti-system as a template
    - agent-namespaces.yaml — creates the actual ConfigMaps in team1/team2 at install time
  2. Backend Python (agents.py:_build_authbridge_runtime_yaml()) — generates ConfigMaps dynamically when agents are created via the UI/API. This function hardcodes token-exchange at line 2073.
  3. Operator reconciliation — reads the template ConfigMap and applies it to namespaces, which can overwrite runtime patches.

The real fix is consolidating the outbound plugin config into Helm values so there's a single source of truth.

Proposed Solution

Recommended approach:

  1. Add a Helm value like authbridge.outbound.plugin (defaulting to token-exchange for now) that both template files consume via {{ .Values.authbridge.outbound.plugin }}.
  2. Make the backend read from config — instead of hardcoding the plugin in _build_authbridge_runtime_yaml(), read it from settings (which can be populated from env vars set by the Helm chart).
  3. Switch via values — then toggling to token-broker becomes a single --set authbridge.outbound.plugin=token-broker plus the plugin-specific config block.

This way:

  • Helm templates use {{ .Values }} — no awk patching needed
  • Backend reads the same setting from an env var injected by the chart
  • Operator reconciliation stays consistent because it uses the Helm-managed template ConfigMap

Want to contribute?

  • I would like to work on this issue.

Additional Context

No response

Activity

  1. self-assigned this
    on Jun 1, 2026
  2. davidhadas commented on Jun 1, 2026

    @davidhadas
    ContributorAuthor
  3. pdettori commented on Jun 3, 2026

    @pdettori
    Member

    @davidhadas good point - I'm all for consolidation in single source of truth

  4. davidhadas commented on Jun 4, 2026

    @davidhadas
    ContributorAuthor

    Fix merged

  5. added this to the Release v0.8.0 milestone on Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions