You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feature: Consolidate AuthBridge config to a single source of truth #1768
AuthBridge config has 3 independent sources that all need to agree.
Here's the flow:
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
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.
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:
Add a Helm value like authbridge.outbound.plugin (defaulting to token-exchange for now) that both template files consume via {{ .Values.authbridge.outbound.plugin }}.
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).
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
Activity
davidhadas commentedon Jun 1, 2026
@huang195 @pdettori @mrsabath
pdettori commentedon Jun 3, 2026
@davidhadas good point - I'm all for consolidation in single source of truth
davidhadas commentedon Jun 4, 2026
Fix merged