Repository navigation
docs: add AuthProxy inbound verification details to manual demo - #120
Conversation
There was a problem hiding this comment.
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). |
There was a problem hiding this comment.
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").
| 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. |
| ## 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 |
There was a problem hiding this comment.
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.
| - [Access Policies Proposal](../../PROPOSAL-access-policies.md) — role-based delegation control | |
| - Access Policies Proposal (coming soon) — role-based delegation control |
| - **Access Policies**: See the [access policies proposal](../../PROPOSAL-access-policies.md) | ||
| for role-based delegation control |
There was a problem hiding this comment.
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.
| - **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 |
|
|
||
| ## Next Steps | ||
|
|
||
| - **UI Deployment**: See [demo-ui.md](demo-ui.md) for deploying via the Kagenti dashboard |
There was a problem hiding this comment.
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.
| | File | Description | | ||
| |------|-------------| | ||
| | `demos/github-issue/demo-manual.md` | This guide | | ||
| | `demos/github-issue/demo-ui.md` | UI-driven deployment guide | |
There was a problem hiding this comment.
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.
| | `demos/github-issue/demo-ui.md` | UI-driven deployment guide | |
09a893b to
7b99448
Compare
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>
7b99448 to
084487f
Compare
…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>
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>
…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>
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>
Summary
Dependencies
This PR is stacked on top of #117 and should be merged after it.
Test plan