Skip to content

feat: Allow users to supply a mapping of hosts to varying audience and scope values. - #79

Merged
mrsabath merged 35 commits into
rossoctl:mainfrom
usize:issue_69
Feb 13, 2026
Merged

mrsabath merged 35 commits into
rossoctl:mainfrom
usize:issue_69

Conversation

@usize

@usize usize commented Jan 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

Because a given client may communicate with a number of services (targets) it is necessary for token exchange to be configured such that scopes and audiences are returned matching the target in question. The best way to achieve this is by mapping hosts (indicative of particular targets) to audiences and scopes.

Here we introduce two new primitives: TargetResolver and TargetConfig which achieve this.

In particular, we achieve it by supplying a YAML config file which may be loaded by the authbridge at startup.

In order to keep IDPs, like KeyCloak, in sync with this configured mapping we have supplied a script which locates any client ids, scopes and audience mappings missing from the supplied authbridge config, and offers to create them.

This is not a perfect solution, however, work on solving this problem at the IDP level is underway in KeyCloak via keycloak/keycloak#36870

RFC 8693 specifies an optional resource parameter which abstractly serves the purpose of signaling a relationship between a URI and audience.

However, for the time being, this config based approach will be the most durable across providers.

Fixes: #69

Type of Change

  • [ x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Test Configuration:

  • Kubernetes version:
Client Version: v1.32.2
Kustomize Version: v5.5.0
Server Version: v1.32.2
  • Toolhive webhook version:
  • OS: MacOS

kagenti-extensions/AuthBridge on  issue_69:main [?⇡] via 🐍 v3.12.8 on ☁️  (us-west-2) on ☁️  [email protected]
❯ ./venv/bin/python keycloak_sync.py --realm demo --config demos/multi-target/routes.yaml --agent-client "spiffe://localtest.me/ns/authbridge/sa/agent"
Loading routes from demos/multi-target/routes.yaml...
Found 3 targets to reconcile
Connecting to Keycloak at http://keycloak.localtest.me:8080...
[MISSING] Realm 'demo' not found
  Create realm 'demo'? [y/N]: y
  --> Created realm 'demo'
Agent client: spiffe://localtest.me/ns/authbridge/sa/agent
[MISSING] Agent client 'spiffe://localtest.me/ns/authbridge/sa/agent' not found in Keycloak
  Create agent client 'spiffe://localtest.me/ns/authbridge/sa/agent'? [y/N]: y
  --> Created agent client 'spiffe://localtest.me/ns/authbridge/sa/agent'
  --> Client secret: Wuo9fvH2mEa0DEarBkZcK5suTaS7JclT

[target-alpha]
  [MISSING] Client 'target-alpha' not found in Keycloak
    Create client 'target-alpha'? [y/N]: y
    --> Created client 'target-alpha'
  [MISSING] Scope 'target-alpha-aud' not found
    Create scope 'target-alpha-aud' with audience mapper? [y/N]: y
    --> Added audience mapper
    --> Created scope 'target-alpha-aud' with audience mapper
  --> Assigned scope 'target-alpha-aud' to agent
  [WARN] No hostname attribute set
    Set hostname to 'target-alpha-service.authbridge.svc.cluster.local'? [y/N]: y
    --> Set hostname attribute

[target-beta]
  [MISSING] Client 'target-beta' not found in Keycloak
    Create client 'target-beta'? [y/N]: y
    --> Created client 'target-beta'
  [MISSING] Scope 'target-beta-aud' not found
    Create scope 'target-beta-aud' with audience mapper? [y/N]: y
    --> Added audience mapper
    --> Created scope 'target-beta-aud' with audience mapper
  --> Assigned scope 'target-beta-aud' to agent
  [WARN] No hostname attribute set
    Set hostname to 'target-beta-service.authbridge.svc.cluster.local'? [y/N]: y
    --> Set hostname attribute

[target-gamma]
  [MISSING] Client 'target-gamma' not found in Keycloak
    Create client 'target-gamma'? [y/N]: y
    --> Created client 'target-gamma'
  [MISSING] Scope 'target-gamma-aud' not found
    Create scope 'target-gamma-aud' with audience mapper? [y/N]: y
    --> Added audience mapper
    --> Created scope 'target-gamma-aud' with audience mapper
  --> Assigned scope 'target-gamma-aud' to agent
  [WARN] No hostname attribute set
    Set hostname to 'target-gamma-service.authbridge.svc.cluster.local'? [y/N]: y
    --> Set hostname attribute

==================================================
Summary:
  3 targets checked
  Agent client created
  3 clients created
  3 scopes created
  3 scopes assigned to agent
  3 hostname attributes set

kagenti-extensions/AuthBridge on  issue_69:main [?⇡] via 🐍 v3.12.8 on ☁️  (us-west-2) on ☁️  [email protected] took 18s
❯ kubectl apply -f demos/multi-target/k8s
namespace/authbridge created
serviceaccount/agent created
secret/auth-proxy-config created
configmap/authbridge-config created
configmap/envoy-config created
configmap/authproxy-routes created
deployment.apps/caller created
deployment.apps/auth-target created
service/auth-target-service created
namespace/authbridge unchanged
serviceaccount/agent unchanged
secret/auth-proxy-config configured
configmap/authbridge-config configured
configmap/spiffe-helper-config created
configmap/envoy-config configured
configmap/authproxy-routes unchanged
deployment.apps/agent created
deployment.apps/auth-target unchanged
service/auth-target-service unchanged
namespace/authbridge unchanged
deployment.apps/target-alpha created
service/target-alpha-service created
deployment.apps/target-beta created
service/target-beta-service created
deployment.apps/target-gamma created
service/target-gamma-service created

kagenti-extensions/AuthBridge on  issue_69:main [?⇡] via 🐍 v3.12.8 on ☁️  (us-west-2) on ☁️  [email protected]
❯ ./demos/multi-target/run-demo-commands.sh
Original token audience:
null
=== Calling Target Alpha ===
authorized
=== Calling Target Beta ===
authorized
=== Calling Target Gamma ===
authorized

=== AuthBridge Token Exchange Logs ===
2026/01/27 16:57:23 [Routes] Loaded 6 route configurations
[2026-01-27 16:57:23.697][1][info][main] [source/server/server.cc:417]   envoy.internal_redirect_predicates: envoy.internal_redirect_predicates.allow_listed_routes, envoy.internal_redirect_predicates.previous_routes, envoy.internal_redirect_predicates.safe_cross_scheme
[2026-01-27 16:57:23.720][1][debug][config] [source/extensions/listener_managers/listener_manager/listener_manager_impl.cc:104]   config: {"@type":"type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager","stat_prefix":"outbound_http","route_config":{"name":"outbound_routes","virtual_hosts":[{"name":"catch_all","domains":["*"],"routes":[{"match":{"prefix":"/"},"route":{"cluster":"original_destination"}}]}]},"http_filters":[{"name":"envoy.filters.http.lua","typed_config":{"@type":"type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua","inline_code":"function envoy_on_request(request_handle)\n  local token_url = os.getenv(\"TOKEN_URL\")\n  local client_id = os.getenv(\"CLIENT_ID\")\n  local client_secret = os.getenv(\"CLIENT_SECRET\")\n\n  -- Add token exchange credentials from environment\n  if token_url ~= nil and token_url ~= \"\" then\n    request_handle:headers():add(\"x-token-url\", token_url)\n  end\n  if client_id ~= nil and client_id ~= \"\" then\n    request_handle:headers():add(\"x-client-id\", client_id)\n  end\n  if client_secret ~= nil and client_secret ~= \"\" then\n    request_handle:headers():add(\"x-client-secret\", client_secret)\n  end\nend\n"}},{"name":"envoy.filters.http.ext_proc","typed_config":{"@type":"type.googleapis.com/envoy.extensions.filters.http.ext_proc.v3.ExternalProcessor","grpc_service":{"envoy_grpc":{"cluster_name":"go_processor"}},"processing_mode":{"request_header_mode":"SEND","response_header_mode":"SEND"}}},{"name":"envoy.filters.http.router","typed_config":{"@type":"type.googleapis.com/envoy.extensions.filters.http.router.v3.Router"}}]}
2026/01/27 16:59:22 [Routes] Host "target-alpha-service" matched pattern "target-alpha-service"
2026/01/27 16:59:22 [Routes] Applying route config for host "target-alpha-service:8081"
2026/01/27 16:59:22 [Routes] Using route target_audience: target-alpha
2026/01/27 16:59:22 [Routes] Using route token_scopes: openid target-alpha-aud
2026/01/27 16:59:22 [Routes] Host "target-beta-service" matched pattern "target-beta-service"
2026/01/27 16:59:22 [Routes] Applying route config for host "target-beta-service:8081"
2026/01/27 16:59:22 [Routes] Using route target_audience: target-beta
2026/01/27 16:59:22 [Routes] Using route token_scopes: openid target-beta-aud
2026/01/27 16:59:22 [Routes] Host "target-gamma-service" matched pattern "target-gamma-service"
2026/01/27 16:59:22 [Routes] Applying route config for host "target-gamma-service:8081"
2026/01/27 16:59:22 [Routes] Using route target_audience: target-gamma
2026/01/27 16:59:22 [Routes] Using route token_scopes: openid target-gamma-aud

kagenti-extensions/AuthBridge on  issue_69:main [!?⇡] via 🐍 v3.12.8 on ☁️  (us-west-2) on ☁️  [email protected]
❯

Checklist

  • [ x] My code follows the style guidelines of this project
  • [x ] I have performed a self-review of my code
  • [x ] I have commented my code, particularly in hard-to-understand areas
  • [x ] I have made corresponding changes to the documentation
  • [x ] My changes generate no new warnings
  • [x ] I have added tests that prove my fix is effective or that my feature works
  • [x ] New and existing unit tests pass locally with my changes
  • [x ] Any dependent changes have been merged and published in downstream modules

@usize
usize requested review from huang195 and mrsabath January 27, 2026 04:45
@usize usize changed the title Allow users to supply a mapping of hosts to varying audience and scope values. feat: Allow users to supply a mapping of hosts to varying audience and scope values. Jan 27, 2026
@usize
usize marked this pull request as draft January 27, 2026 04:55
@huang195

Copy link
Copy Markdown
Member

@usize thanks for the PR. Will take a look. We need to coordinate this work with a blog that we're currently writing to make sure it doesn't break anything.

@usize

usize commented Jan 27, 2026

Copy link
Copy Markdown
Contributor Author

Understandable! I updated the test description in the PR description above to reflect a few small quality of life improvements to the setup of the multi-target demo and to include logs from authbridge showing the host matching executing.

I'll move this out of draft mode later today.

@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.

@usize I added some comments for this PR.

"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

"github.com/huang195/auth-proxy/go-processor/internal/resolver"

@huang195 huang195 Jan 28, 2026 •

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.

I would prefer this to become "github.com/kagenti/kagenti-extensions/AuthBridge/AuthProxy/go-processor/internal/resolver". This project was copied over from my personal repo, and there were some leftover things that weren't fixed. This means we need to modify go.mod to have module github.com/kagenti/kagenti-extensions/AuthBridge/AuthProxy

Comment thread AuthBridge/demos/multi-target/demo.md Outdated

Expected output:
```
[Routes] Host "target-alpha-service" matched pattern "target-alpha-service"

@huang195 huang195 Jan 28, 2026 •

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.

Do you mean [Resolver] instead of [Routes] here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Another leftover from an earlier implementation.

Comment thread AuthBridge/keycloak_sync.py Outdated
current = mapper.get("config", {}).get("included.custom.audience", "<none>")
print(f" [WARN] Mapper points to '{current}', expected '{audience}'")
if self._prompt(f" Update mapper to '{audience}'?"):
self._update_mapper_audience(scope["id"], mapper["id"], audience)

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.

the function _update_mapper_audience doesn't seem to be implemented concretely. why do we need this here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's a leftover from a prior implementation that I removed. Will get rid of it.

target_audience: "target-gamma"
token_scopes: "openid target-gamma-aud"

# Also match short service names (within cluster)

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.

is there any reason to define short name in addition to the FQDN declared above?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It doesn't have to be so. I think this was just a case of my code assistant getting overzealous with comments based on our discussion.

route:
cluster: original_destination
http_filters:
# Lua filter to inject token exchange credentials as headers

@huang195 huang195 Jan 28, 2026 •

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.

we recently removed the lua code to inject environment vars into request headers because both envoy and ext proc run in the same process namespace, so ext proc could get to the same environment vars.

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.

@usize this lua filter is still present here. this should be removed

@usize usize self-assigned this Feb 6, 2026
@usize
usize marked this pull request as ready for review February 7, 2026 00:01
@usize
usize requested a review from huang195 February 7, 2026 00:03

@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.

@usize Looks good. There are a few leftover problems that aren't fixed yet from the previous review. The recent changes might have introduced new problems. Let me know if anything is not clear.

route:
cluster: original_destination
http_filters:
# Lua filter to inject token exchange credentials as headers

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.

@usize this lua filter is still present here. this should be removed

route:
cluster: original_destination
http_filters:
# Lua filter to inject token exchange credentials as headers

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.

Same as above to remove the lua filter.

# Order matters - first match wins.

# Target Alpha
- host: "target-alpha-service.authbridge.svc.cluster.local"

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.

run-demo-commands.sh calls targets by short name:
curl -s -H "Authorization: Bearer $TOKEN" http://target-alpha-service:8081/test. If you're defining these without wildcard, would they still match?

In routes.yaml, you are using - host: "target-alpha-service*", which would work.

# Order matters - first match wins.

# Target Alpha
- host: "target-alpha-service.authbridge.svc.cluster.local"

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.

Same comment as above about FQDN.

Comment thread AuthBridge/demos/multi-target/demo.md Outdated
authorized

=== AuthBridge Token Exchange Logs ===
[Routes] Host "target-alpha-service" matched pattern "target-alpha-service*"

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.

Should be [Resolver]?

@usize

usize commented Feb 8, 2026

Copy link
Copy Markdown
Contributor Author

Sorry about the dangling issues. Thanks for catching them.

I the multi-target and single-target demos are both fixed up and working. And I cleaned up the cruft that was leftover from when I had Claude clean up the merge conflicts.

@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.

This looks good. Thanks @usize! We're tracking down some problems with sidecar + ztunnel in the kagenti cluster at the moment, so I'll let @mrsabath decide if we want to merge this PR now or later

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds route/host-based token exchange configuration so AuthBridge can exchange tokens with different audiences/scopes depending on the destination service, plus tooling and demos to support Keycloak reconciliation.

Changes:

  • Introduces a Go TargetResolver + YAML-backed StaticResolver to resolve per-host token exchange settings in the ext-proc.
  • Adds keycloak_sync.py to reconcile routes.yaml targets (clients/scopes/audience mappers) with Keycloak.
  • Expands demos/manifests/docs for single-target, multi-target, and webhook-based setups.

Reviewed changes

Copilot reviewed 20 out of 25 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
AuthBridge/requirements.txt Adds PyYAML dependency for YAML route parsing in tooling.
AuthBridge/keycloak_sync.py New script to reconcile routes config with Keycloak (clients/scopes/mappers).
AuthBridge/demos/single-target/setup_keycloak.py Fixes demo apply paths to new directory structure.
AuthBridge/demos/single-target/k8s/configmaps-webhook.yaml Adds webhook demo ConfigMaps (env + envoy + spiffe-helper).
AuthBridge/demos/single-target/k8s/authbridge-deployment.yaml Adds routes ConfigMap mount + env for route-based config (SPIFFE).
AuthBridge/demos/single-target/k8s/authbridge-deployment-no-spiffe.yaml Adds routes ConfigMap mount + env for route-based config (no SPIFFE).
AuthBridge/demos/single-target/k8s/auth-target-deployment-webhook.yaml Adds target deployment/service for webhook demo.
AuthBridge/demos/single-target/k8s/agent-deployment-webhook.yaml Adds agent deployment/service for webhook demo (SPIFFE enabled).
AuthBridge/demos/single-target/k8s/agent-deployment-webhook-no-spiffe.yaml Adds agent deployment/service for webhook demo (SPIFFE disabled).
AuthBridge/demos/single-target/demo.md Updates demo commands to correct manifest paths.
AuthBridge/demos/multi-target/teardown-demo.sh Adds teardown script for demo k8s resources + optional realm deletion.
AuthBridge/demos/multi-target/run-demo-commands.sh Adds script to run multi-target demo commands and inspect logs.
AuthBridge/demos/multi-target/routes.yaml Adds demo routes mapping hosts to audiences/scopes.
AuthBridge/demos/multi-target/k8s/targets.yaml Adds 3 target services (alpha/beta/gamma) validating different audiences.
AuthBridge/demos/multi-target/k8s/authbridge-deployment.yaml Adds full multi-target demo deployment with routes ConfigMap (SPIFFE).
AuthBridge/demos/multi-target/k8s/authbridge-deployment-no-spiffe.yaml Adds full multi-target demo deployment with routes ConfigMap (no SPIFFE).
AuthBridge/demos/multi-target/demo.md New multi-target demo guide and workflow.
AuthBridge/README.md Updates top-level docs to point to both demos + route-based config + sync tool.
AuthBridge/AuthProxy/go.sum Adds dependency checksums for new resolver deps.
AuthBridge/AuthProxy/go.mod Updates module path and adds resolver dependencies (glob + yaml).
AuthBridge/AuthProxy/go-processor/main.go Integrates resolver into outbound flow + loads routes config at startup.
AuthBridge/AuthProxy/go-processor/internal/resolver/static_test.go Adds unit tests for YAML-backed resolver behavior (glob/ordering/ports/IPv6).
AuthBridge/AuthProxy/go-processor/internal/resolver/static.go Implements StaticResolver with glob host matching + YAML parsing.
AuthBridge/AuthProxy/go-processor/internal/resolver/resolver.go Defines TargetResolver and TargetConfig primitives.
AuthBridge/AuthProxy/Makefile Adds unit-test target for Go resolver tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

if self._prompt(f" Add audience mapper for '{audience}'?"):
self._add_audience_mapper(scope["id"], scope_name, audience)
else:
print(f" [OK] Audience mapper correctly configured")

Copilot AI Feb 9, 2026

Copy link

Choose a reason for hiding this comment

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

_find_audience_mapper only checks that an oidc-audience-mapper exists, but it does not verify that it is configured for the expected audience. This can incorrectly report "Audience mapper correctly configured" when the mapper targets a different audience; consider validating mapper config (e.g., included.custom.audience) against the audience being reconciled and treating mismatches as needing update.

Suggested change
print(f" [OK] Audience mapper correctly configured")
# Verify that the existing mapper targets the expected audience
mapper_config = mapper.get("config", {}) or {}
mapper_audience = mapper_config.get("included.custom.audience")
if mapper_audience == audience:
print(f" [OK] Audience mapper correctly configured")
else:
print(
f" [WARN] Audience mapper for scope '{scope_name}' is configured "
f"for audience '{mapper_audience}', expected '{audience}'"
)
if self._prompt(f" Update audience mapper to '{audience}'?"):
self._add_audience_mapper(scope["id"], scope_name, audience)
else:
print(" --> Skipped")
self.result.scopes_skipped += 1

Copilot uses AI. Check for mistakes.
Comment thread AuthBridge/keycloak_sync.py Resolved
Comment on lines +392 to +400
if not route.get("target_audience"):
continue # Skip routes without audience (e.g., passthrough-only)

scopes = route.get("token_scopes", "").split()
targets.append(RouteTarget(
host=route.get("host", ""),
audience=route["target_audience"],
scopes=scopes,
passthrough=route.get("passthrough", False),

Copilot AI Feb 9, 2026

Copy link

Choose a reason for hiding this comment

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

load_routes() skips any route without target_audience, which means passthrough-only entries (host + passthrough: true) are ignored entirely. At the same time, RouteTarget/reconcile() has a passthrough branch, which becomes effectively dead code; consider either including passthrough-only routes (and keying display on host) or removing passthrough handling from this script to avoid confusion.

Suggested change
if not route.get("target_audience"):
continue # Skip routes without audience (e.g., passthrough-only)
scopes = route.get("token_scopes", "").split()
targets.append(RouteTarget(
host=route.get("host", ""),
audience=route["target_audience"],
scopes=scopes,
passthrough=route.get("passthrough", False),
audience = route.get("target_audience")
passthrough = route.get("passthrough", False)
# Include routes with an audience as normal, and also include
# passthrough-only routes (no audience but passthrough enabled).
if not audience and not passthrough:
continue # Skip routes that are neither targeted nor passthrough
scopes = route.get("token_scopes", "").split() if audience else []
targets.append(RouteTarget(
host=route.get("host", ""),
audience=audience or "",
scopes=scopes,
passthrough=passthrough,

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The right tac here is to look at removing passthrough altogether. I'll revisit it.

Comment thread AuthBridge/demos/multi-target/demo.md Resolved
Comment thread AuthBridge/keycloak_sync.py Outdated
secret = self.kc.get_client_secrets(uuid).get("value")
if secret:
print(f" --> Client secret: {secret}")
except Exception:

Copilot AI Feb 9, 2026

Copy link

Choose a reason for hiding this comment

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

'except' clause does nothing but pass and there is no explanatory comment.

Suggested change
except Exception:
except Exception:
# Best-effort retrieval: failure to fetch the client secret
# is non-fatal and should not block client creation.

Copilot uses AI. Check for mistakes.
for mapper in mappers:
if mapper.get("protocolMapper") == "oidc-audience-mapper":
return mapper
except Exception:

Copilot AI Feb 9, 2026

Copy link

Choose a reason for hiding this comment

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

'except' clause does nothing but pass and there is no explanatory comment.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should log the exception in the handler.

Comment thread AuthBridge/keycloak_sync.py Resolved
usize and others added 26 commits February 13, 2026 16:13
…the multi-target demo required it to be run prior to other manifests or it would fail.

Signed-off-by: usize <[email protected]>
…ployment issues due to missing keycloak realms.

Signed-off-by: usize <[email protected]>
These are superfluous and only add noise to the example.

Signed-off-by: usize <[email protected]>
- Remove Lua filter from envoy config (ext-proc shares process namespace)
- Change [Routes] to [Resolver] in demo.md expected output
- Use wildcard patterns for route matching (target-alpha-service*)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Signed-off-by: usize <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Morgan Foster <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Morgan Foster <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Morgan Foster <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Morgan Foster <[email protected]>
- Fix demo.md: glob patterns in examples and expected output used single
  `*` but actual routes.yaml uses `**` (double glob for multi-level match)
- Fix run-demo-commands.sh: move shebang to line 1 so the OS recognizes
  the script as bash when executed directly

Signed-off-by: Mariusz Sabath <[email protected]>
@mrsabath
mrsabath merged commit 0e57206 into rossoctl:main Feb 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Allow route based TARGET_AUDIENCE configuration

4 participants