Skip to content

fix: templatize authbridge-config realm and fix envoy-config defaults - #851

Merged
mrsabath merged 1 commit into
rossoctl:mainfrom
mrsabath:fix/authbridge-configmaps
Mar 6, 2026
Merged

mrsabath merged 1 commit into
rossoctl:mainfrom
mrsabath:fix/authbridge-configmaps

Conversation

@mrsabath

@mrsabath mrsabath commented Mar 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Templatize authbridge-config ConfigMap to use keycloak.realm and keycloak.namespace from values.yaml instead of hardcoded demo realm
  • Increase envoy-config timeouts from 30s to 300s (route + ext_proc) to prevent upstream request timeout during LLM inference
  • Replace request_headers_to_add with Lua filter for inbound direction header — the router filter runs after ext_proc, so route-level headers are not visible to the ext_proc processor

Context

PR #764 migrated keycloak.realm from master to kagenti in values.yaml, but the authbridge-config ConfigMap in agent-namespaces.yaml still hardcoded realms/demo. This caused AuthBridge demos to require overriding authbridge-config with the correct realm. The envoy-config also had two issues: 30s timeouts too short for LLM inference, and a broken inbound direction header mechanism.

Files changed

File Changes
charts/kagenti/templates/agent-namespaces.yaml Templatize authbridge-config TOKEN_URL/ISSUER, add 300s timeouts, replace request_headers_to_add with Lua filter

Part of: #767

Test plan

  • Fresh install: verify authbridge-config has kagenti realm in TOKEN_URL and ISSUER
  • Deploy agent with AuthBridge: verify no upstream request timeout with LLM inference
  • Verify inbound JWT validation works (Lua filter injects direction header correctly)

The authbridge-config ConfigMap hardcoded "demo" realm in TOKEN_URL
and ISSUER, even though values.yaml was migrated to "kagenti" in
PR #764. Templatize both fields using keycloak.realm and
keycloak.namespace values, consistent with how slack-researcher
auth-config already references the realm.

Also fix two issues in the envoy-config ConfigMap:
- Increase timeouts from 30s to 300s (route + ext_proc) to prevent
  "upstream request timeout" during LLM inference
- Replace request_headers_to_add with a Lua filter for the inbound
  direction header — the router filter runs after ext_proc, so
  route-level headers are not visible to the ext_proc processor

Signed-off-by: Mariusz Sabath <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]>
@mrsabath

mrsabath commented Mar 6, 2026

Copy link
Copy Markdown
Member Author

/run-e2e

@mrsabath
mrsabath requested a review from huang195 March 6, 2026 03:25
@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Mar 6, 2026
@github-actions

github-actions Bot commented Mar 6, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @mrsabath
Commit: 006b424f8593f24dc407d5d7f073248adcbea2bf
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

github-actions Bot commented Mar 6, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Passed

Commit: 006b424f8593f24dc407d5d7f073248adcbea2bf
Result: All tests passed
Workflow Run: View logs

The safe-to-test label indicates this commit has been approved for E2E testing.


If you push new commits, the label will be removed and you'll need to comment /run-e2e again.

@huang195 huang195 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@pdettori pdettori left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@mrsabath
mrsabath merged commit 4008d13 into rossoctl:main Mar 6, 2026
15 checks passed
@mrsabath
mrsabath deleted the fix/authbridge-configmaps branch March 6, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for Review! safe-to-test Maintainer reviewed - safe to run E2E tests

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants