Skip to content

docs: add AuthProxy inbound verification details to manual demo - #120

Merged
maia-iyer merged 1 commit into
rossoctl:mainfrom
mrsabath:authproxy-inbound-demo
Feb 20, 2026
Merged

maia-iyer merged 1 commit into
rossoctl:mainfrom
mrsabath:authproxy-inbound-demo

Conversation

@mrsabath

Copy link
Copy Markdown
Member

Summary

  • Adds an Inbound Verification (AuthProxy) section to the Key Security Properties, explaining how the ext_proc validates JWT signature (via JWKS), issuer, and audience on every inbound request
  • Adds Step 8b2: Inbound Rejection - Wrong Issuer test that obtains a valid Keycloak token from the master realm and demonstrates that AuthProxy rejects it due to issuer mismatch (cross-realm attack prevention)
  • Enhances Step 8e to verify both inbound validation logs and outbound token exchange logs
  • References the AuthProxy README throughout the document (security properties table, comparison table, architecture diagram, and Next Steps)

Dependencies

This PR is stacked on top of #117 and should be merged after it.

Test plan

  • Run Step 8a (no token) - expect 401
  • Run Step 8b (invalid token) - expect 401 with signature error
  • Run Step 8b2 (master realm token) - expect 401 with issuer mismatch error
  • Run Step 8c (valid token) - expect agent card JSON
  • Run Step 8e - verify both inbound and outbound log lines appear

Copilot AI review requested due to automatic review settings February 17, 2026 23:34

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

This pull request adds comprehensive documentation for the GitHub Issue Agent + AuthBridge demo with a focus on inbound JWT validation. It builds on top of PR #117 by documenting how AuthProxy validates incoming requests (JWT signature, issuer, and audience checks) and adding a test case for cross-realm token rejection. The PR also includes critical bug fixes for the webhook rollout script and spiffe-helper container security context.

Changes:

  • Added detailed documentation of AuthProxy's inbound validation (signature, issuer, audience) with Step 8b2 test for wrong issuer rejection
  • Fixed webhook-rollout.sh path and moved directory check inside the AUTHBRIDGE_DEMO conditional
  • Added SecurityContext to spiffe-helper container to match client-registration UID/GID for shared volume file permissions

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
kagenti-webhook/scripts/webhook-rollout.sh Fixed AUTHBRIDGE_K8S_DIR path to point to demos/single-target/k8s and moved directory check inside conditional
kagenti-webhook/internal/webhook/injector/container_builder.go Added SecurityContext to spiffe-helper to run as UID/GID 1000 for shared volume compatibility
AuthBridge/demos/github-issue/setup_keycloak.py New Keycloak setup script with realm, clients, scopes, and demo users configuration
AuthBridge/demos/github-issue/k8s/github-tool-deployment.yaml GitHub MCP tool deployment without AuthBridge injection
AuthBridge/demos/github-issue/k8s/git-issue-agent-deployment.yaml Agent deployment with AuthBridge sidecar injection labels
AuthBridge/demos/github-issue/k8s/configmaps.yaml ConfigMaps for AuthBridge sidecars (environments, authbridge-config, spiffe-helper-config, envoy-config)
AuthBridge/demos/github-issue/demo.md Index page with deployment method comparison and architecture overview
AuthBridge/demos/github-issue/demo-manual.md Comprehensive manual deployment guide with inbound validation documentation and Step 8b2 test
AuthBridge/README.md Updated demos section to reference the new GitHub Issue Agent demo

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

using `kubectl` commands exclusively. All resources — agent, tool, ConfigMaps, and
secrets — are deployed via Kubernetes manifests.

For a UI-driven deployment using the Kagenti dashboard, see [demo-ui.md](demo-ui.md).

Copilot AI Feb 17, 2026

Copy link

Choose a reason for hiding this comment

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

The referenced file demo-ui.md does not exist in the repository. The link on line 7 (and also on lines 873 and 881) points to a non-existent file. Since demo.md indicates this is "coming soon" with the UI Deployment marked as such in the table, either remove these references to the non-existent demo-ui.md file, or clarify in the text that it's not yet available (e.g., "For a UI-driven deployment using the Kagenti dashboard (coming soon), see demo-ui.md").

Suggested change
For a UI-driven deployment using the Kagenti dashboard, see [demo-ui.md](demo-ui.md).
A UI-driven deployment using the Kagenti dashboard is coming soon and will be documented in a separate guide.

Copilot uses AI. Check for mistakes.
## Related

- [Multi-Target Demo](../multi-target/demo.md) — route-based token exchange to multiple tools
- [Access Policies Proposal](../../PROPOSAL-access-policies.md) — role-based delegation control

Copilot AI Feb 17, 2026

Copy link

Choose a reason for hiding this comment

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

The referenced file PROPOSAL-access-policies.md does not exist in the AuthBridge directory. This broken link will result in a 404 error if users try to navigate to it. Either create the file, update the path to the correct location, or remove the reference if the proposal hasn't been written yet.

Suggested change
- [Access Policies Proposal](../../PROPOSAL-access-policies.md) — role-based delegation control
- Access Policies Proposal (coming soon) — role-based delegation control

Copilot uses AI. Check for mistakes.
Comment on lines +886 to +887
- **Access Policies**: See the [access policies proposal](../../PROPOSAL-access-policies.md)
for role-based delegation control

Copilot AI Feb 17, 2026

Copy link

Choose a reason for hiding this comment

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

The referenced file PROPOSAL-access-policies.md does not exist in the AuthBridge directory. This broken link will result in a 404 error if users try to navigate to it. Either create the file, update the path to the correct location, or remove the reference if the proposal hasn't been written yet.

Suggested change
- **Access Policies**: See the [access policies proposal](../../PROPOSAL-access-policies.md)
for role-based delegation control
- **Access Policies**: Access policies proposal (coming soon) for role-based delegation control

Copilot uses AI. Check for mistakes.

## Next Steps

- **UI Deployment**: See [demo-ui.md](demo-ui.md) for deploying via the Kagenti dashboard

Copilot AI Feb 17, 2026

Copy link

Choose a reason for hiding this comment

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

The referenced file demo-ui.md does not exist in the repository. This broken link will result in a 404 error. Since demo.md indicates "UI Deployment (coming soon)", consider removing these references until the file is created, or add a note that the file is not yet available.

Copilot uses AI. Check for mistakes.
| File | Description |
|------|-------------|
| `demos/github-issue/demo-manual.md` | This guide |
| `demos/github-issue/demo-ui.md` | UI-driven deployment guide |

Copilot AI Feb 17, 2026

Copy link

Choose a reason for hiding this comment

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

The referenced file demo-ui.md does not exist in the repository. This broken link will result in a 404 error. Since the file is marked as "coming soon" in the comparison table, consider removing this reference from the Files Reference table until the file is created.

Suggested change
| `demos/github-issue/demo-ui.md` | UI-driven deployment guide |

Copilot uses AI. Check for mistakes.
@mrsabath
mrsabath force-pushed the authproxy-inbound-demo branch 2 times, most recently from 09a893b to 7b99448 Compare February 20, 2026 18:35
Enhance the GitHub Issue Agent demo to explicitly document
AuthProxy inbound JWT validation feature:

- Add Inbound Verification (AuthProxy) section explaining
  the three checks: signature (JWKS), issuer, and audience
- Add Step 8b2 testing wrong-issuer rejection using a
  master realm token (cross-realm attack prevention)
- Enhance Step 8e to verify both inbound validation and
  outbound token exchange logs
- Reference AuthProxy README throughout the document

Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
@mrsabath
mrsabath force-pushed the authproxy-inbound-demo branch from 7b99448 to 084487f Compare February 20, 2026 19:12

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

LGTM!

@maia-iyer
maia-iyer merged commit 489a78f into rossoctl:main Feb 20, 2026
3 checks passed
anatolykoyfman pushed a commit that referenced this pull request Aug 26, 2026
…ds (#120)

Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Oleg Blinder <oblinder@gmail.com>
Signed-off-by: Anatoly Koyfman <anatoly@il.ibm.com>
anatolykoyfman pushed a commit that referenced this pull request Aug 26, 2026
Realign the pass-through PDP Policy Library unit tests to the new ALLOW/DENY
policy-model shape. aiac.pdp.policy.library.api imports AgentPolicyModel /
PolicyModel straight from the canonical aiac.policy.model.models, so the delta
is test-only:

- Replace the stale _AGENT_POLICY_DICT fixture (old target_scopes /
  inbound_rules / outbound_rules fields, silently dropped by extra="ignore")
  with a new-shape model built from real Role/Scope objects: 8 entity×effect
  rule lists, split target_allow_scopes / target_deny_scopes, effect-agnostic
  identity maps, and a DENY tuple.
- Add TestModelShape asserting PolicyRule carries role/scope/effect (default
  ALLOW), AgentPolicyModel exposes the split maps + 8 rule lists and no longer
  carries the pre-ALLOW/DENY target_scopes / inbound_rules / outbound_rules.
- Add TestRoundTrip covering a lossless AgentPolicyModel / PolicyModel round
  trip including a DENY tuple (effect=DENY survives, deny-only role still
  resolvable via the effect-agnostic map).
- Preserve HTTP-client coverage unchanged (verb/path/body, RuntimeError on
  non-2xx, URL fallback, no ?realm=) — transport stays a pass-through
  model_dump() per #120.

Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Oleg Blinder <oblinder@gmail.com>
Signed-off-by: Anatoly Koyfman <anatoly@il.ibm.com>
anatolykoyfman pushed a commit that referenced this pull request Aug 26, 2026
…ds (#120)

Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Oleg Blinder <oblinder@gmail.com>
Signed-off-by: Anatoly Koyfman <anatoly@il.ibm.com>
anatolykoyfman pushed a commit that referenced this pull request Aug 26, 2026
Realign the pass-through PDP Policy Library unit tests to the new ALLOW/DENY
policy-model shape. aiac.pdp.policy.library.api imports AgentPolicyModel /
PolicyModel straight from the canonical aiac.policy.model.models, so the delta
is test-only:

- Replace the stale _AGENT_POLICY_DICT fixture (old target_scopes /
  inbound_rules / outbound_rules fields, silently dropped by extra="ignore")
  with a new-shape model built from real Role/Scope objects: 8 entity×effect
  rule lists, split target_allow_scopes / target_deny_scopes, effect-agnostic
  identity maps, and a DENY tuple.
- Add TestModelShape asserting PolicyRule carries role/scope/effect (default
  ALLOW), AgentPolicyModel exposes the split maps + 8 rule lists and no longer
  carries the pre-ALLOW/DENY target_scopes / inbound_rules / outbound_rules.
- Add TestRoundTrip covering a lossless AgentPolicyModel / PolicyModel round
  trip including a DENY tuple (effect=DENY survives, deny-only role still
  resolvable via the effect-agnostic map).
- Preserve HTTP-client coverage unchanged (verb/path/body, RuntimeError on
  non-2xx, URL fallback, no ?realm=) — transport stays a pass-through
  model_dump() per #120.

Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Oleg Blinder <oblinder@gmail.com>
Signed-off-by: Anatoly Koyfman <anatoly@il.ibm.com>
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.

3 participants