Repository navigation
Closed
3 / 33 of 3 issues completedClosed
3 / 33 of 3 issues completed
Copy link
Description
Summary
Migrate all Kagenti platform components from the Keycloak master realm (UI/backend) and demo realm (AuthBridge demos) to a single dedicated kagenti realm.
Motivation
The Kagenti UI authenticates users via Keycloak's master realm, while AuthBridge demos use a separate demo realm. This realm mismatch causes UI chat with AuthBridge-protected agents to fail with 401 Unauthorized because the go-processor validates inbound JWTs against the demo realm JWKS, but the UI token is issued by the master realm.
Unifying onto a single kagenti realm resolves this and simplifies the overall authentication architecture.
Related: kagenti-extensions#147
Phases
Phase 1: UI + Backend Realm Migration (kagenti repo)
- Migrate UI, backend, and Helm templates from
mastertokagentirealm - Add guarded realm bootstrap logic (create realm + default admin user on install)
- Add email/name fields and
realm-adminrole to bootstrapped user (Keycloak 26.x compatibility) - Create and assign
adminrealm role for backend RBAC mapping (fixes "Required role: kagenti-operator") - PR: kagenti#764
Phase 1b: Fix AuthBridge Inject Label for Tools (kagenti repo)
- Propagate
kagenti.io/injectlabel to pod template labels in tool deployments (webhook reads pod template labels, not deployment metadata) - PR: kagenti#768
Phase 2: Migrate AuthBridge Demos to kagenti Realm (kagenti-extensions repo)
- Update ConfigMaps, deployment YAMLs, setup_keycloak.py, and demo-manual.md to use
kagentirealm instead ofdemo - PR: kagenti-extensions#148
Phase 2b: Migrate demo-ui.md to kagenti Realm (kagenti-extensions repo)
- Update all realm references in demo-ui.md from
demotokagenti - Replace Step 8 known-limitation workaround with direct UI chat instructions (realm mismatch resolved)
- PR: kagenti-extensions#149 (depends on bug: Connection between agent and weather tool does not work when the agent and tool are in different namespaces. #148)
Phase 3: Fix Go-Processor Outbound Token Acquisition (kagenti-extensions repo)
- Add
client_credentialsgrant fallback when token exchange fails or no auth header is present - The go-processor previously only supported RFC 8693 token exchange for outbound requests, which requires a valid subject_token. When agents don't forward inbound tokens, outbound requests reached tools without authentication.
- PR: kagenti-extensions#152
Phase 4: Migrate CI Pipelines (future)
- Update CI workflows that reference
masterrealm to usekagenti - Deferred to a follow-up effort
Blocking Issues
| Issue | Repo | Description |
|---|---|---|
| kagenti-extensions#153 | kagenti-extensions | Webhook does not mount svid-output volume in envoy-proxy container — go-processor cannot access SPIFFE JWT SVID |
| agent-examples#129 | agent-examples | Agent's built-in authlib JWT validation crashes on Keycloak JWKS (RSA-OAEP key) — remove redundant auth when AuthBridge is present |
Acceptance Criteria
- Fresh install: UI login works against
kagentirealm - Keycloak admin console accessible without permission errors
- AuthBridge demos work end-to-end with
kagentirealm - UI chat with AuthBridge-protected agents returns valid responses (after go-processor fix)
- All changes are idempotent (re-running bootstrap/setup scripts creates no duplicates)
Sub-issues
Collapse Sub-issuesSub-issues
Loading 3 sub-issues
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix: propagate AuthBridge inject label to tool pod templates
fix: update github-tool .env.authbridge from demo to kagenti realm
mrsabath commentedon Mar 9, 2026
Epic Status: All Phases Complete ✓
All phases of the realm migration are now complete. Summary:
Phases
Blocking Issues
Cleanup
Remaining
Phase 4 (CI pipeline migration) is deferred. All other acceptance criteria are met. Closing this epic.