Repository navigation
docs: Add GitHub Issue Agent + AuthBridge demo (manual deployment) - #117
Conversation
Signed-off-by: Mariusz Sabath <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]>
Split the demo documentation into separate guides by deployment method. This PR adds the manual (kubectl-only) deployment guide and converts the original demo.md into an index page that will link to both variants. - demo-manual.md: complete step-by-step guide using kubectl and YAML manifests for deploying the agent, tool, and all infrastructure - demo.md: index page with architecture overview and deployment method comparison table - README.md: updated demo references Signed-off-by: Mariusz Sabath <[email protected]>
There was a problem hiding this comment.
Pull request overview
This PR adds a comprehensive end-to-end demonstration of the GitHub Issue Agent integrated with AuthBridge for transparent OAuth token management. The demo showcases automated identity registration, inbound JWT validation, and outbound token exchange without requiring changes to agent code. It provides detailed manual deployment instructions using kubectl and YAML manifests, with a future UI-based deployment guide planned.
Changes:
- Added complete GitHub Issue Agent + AuthBridge demo with manual deployment workflow
- Created automated Keycloak configuration script for realm, client, scope, and user setup
- Provided Kubernetes manifests for agent deployment with AuthBridge sidecar injection and GitHub MCP tool deployment
- Structured documentation with index page and deployment-specific guide to accommodate future UI deployment method
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
AuthBridge/demos/github-issue/demo.md |
Index page with architecture overview and deployment method comparison |
AuthBridge/demos/github-issue/demo-manual.md |
Step-by-step manual deployment guide with testing procedures |
AuthBridge/demos/github-issue/setup_keycloak.py |
Python script to automate Keycloak realm, client, scope, and user configuration |
AuthBridge/demos/github-issue/k8s/configmaps.yaml |
ConfigMaps for AuthBridge sidecars (Envoy, SPIFFE, environments) |
AuthBridge/demos/github-issue/k8s/git-issue-agent-deployment.yaml |
Agent deployment with webhook injection labels |
AuthBridge/demos/github-issue/k8s/github-tool-deployment.yaml |
GitHub MCP tool deployment without AuthBridge injection |
AuthBridge/README.md |
Updated with reference to new GitHub Issue demo |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The client ID registered with Keycloak is the full SPIFFE ID when SPIRE is enabled (the default), not the short namespace/service-account format. Fix the Keycloak API queries and expected output to use the correct spiffe://localtest.me/ns/team1/sa/git-issue-agent format. Signed-off-by: Mariusz Sabath <[email protected]>
…lout.sh Signed-off-by: Mariusz Sabath <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]>
The spiffe-helper writes jwt_svid.token with 0600 permissions (owner-only). The client-registration container (UID 1000) could not read the file because spiffe-helper ran as root by default. Setting runAsUser/runAsGroup to 1000 ensures both containers share the same UID on the svid-output volume. Signed-off-by: Mariusz Sabath <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]>
The git-issue-agent requires JWKS_URI to validate incoming tokens. Without it the agent returns: either JWKS_URI or GITHUB_TOKEN env var must be set. Signed-off-by: Mariusz Sabath <[email protected]>
The git-issue-agent config.py reads MCP_URL (not MCP_SERVER_URL). With the wrong env var name, the agent falls back to the default https://api.githubcopilot.com/mcp/ and fails to connect. Signed-off-by: Mariusz Sabath <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Mariusz Sabath <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]> Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Mariusz Sabath <[email protected]> Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Comments suppressed due to low confidence (1)
AuthBridge/demos/github-issue/demo-manual.md:1
- This implies the webhook rollout applies the demo’s required ConfigMaps, but later Step 3 instructs applying
demos/github-issue/k8s/configmaps.yamlexplicitly. To prevent confusion (and potential application of different “demo” defaults), clarify whether Step 1 applies only baseline/single-target ConfigMaps vs the GitHub Issue demo-specific ConfigMaps, and adjust the wording accordingly.
# GitHub Issue Agent Demo with AuthBridge (Manual Deployment)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Mariusz Sabath <[email protected]> Co-authored-by: Copilot <[email protected]>
The k8s directory was hard-coded to the single-target demo path, coupling the script to a specific demo. Now AUTHBRIDGE_K8S_DIR can be overridden via env var, with relative paths resolved against the repo root. Error messages list available demo dirs. Updated demo-manual.md Step 1 to pass the github-issue k8s path. Signed-off-by: Mariusz Sabath <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Mariusz Sabath <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]> Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Mariusz Sabath <[email protected]> Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
A bare 'raise' replaced the 'return' statement after detecting an existing realm, causing RuntimeError: No active exception to reraise on every run where the realm already exists. Signed-off-by: Mariusz Sabath <[email protected]>
The expected log output was missing github-full-access from the scopes. Updated to match the actual TARGET_SCOPES value in configmaps.yaml: openid github-tool-aud github-full-access. Signed-off-by: Mariusz Sabath <[email protected]>
Port-forward is only needed if Keycloak is not already reachable at keycloak.localtest.me:8080 (e.g., no ingress configured). Signed-off-by: Mariusz Sabath <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]>
Signed-off-by: Mariusz Sabath <[email protected]>
maia-iyer
left a comment
There was a problem hiding this comment.
Tested and works! Let's merge this!
Introduce the ALLOW/DENY effect dimension into the policy model layer: - RuleEffect(str, Enum) with ALLOW="Allow" / DENY="Deny" - PolicyRule.effect (default Allow); effect joins dedup identity (role.id, scope.id, effect) so a (role, scope) can coexist as both - ServicePolicyModel.inbound_rules split into explicitly separated inbound_allow_rules + inbound_deny_rules - AgentPolicyModel reshaped into 8 entity×effect rule lists plus split target_allow_scopes / target_deny_scopes; identity maps stay effect-agnostic (deny-only roles still registered) Model layer only (hard rename, no alias per spec). Downstream consumers (engine, rego, model_store) not yet migrated. test/policy/model green. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Oleg Blinder <[email protected]> Signed-off-by: Anatoly Koyfman <[email protected]>
Introduce the ALLOW/DENY effect dimension into the policy model layer: - RuleEffect(str, Enum) with ALLOW="Allow" / DENY="Deny" - PolicyRule.effect (default Allow); effect joins dedup identity (role.id, scope.id, effect) so a (role, scope) can coexist as both - ServicePolicyModel.inbound_rules split into explicitly separated inbound_allow_rules + inbound_deny_rules - AgentPolicyModel reshaped into 8 entity×effect rule lists plus split target_allow_scopes / target_deny_scopes; identity maps stay effect-agnostic (deny-only roles still registered) Model layer only (hard rename, no alias per spec). Downstream consumers (engine, rego, model_store) not yet migrated. test/policy/model green. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Oleg Blinder <[email protected]> Signed-off-by: Anatoly Koyfman <[email protected]>
Summary
kubectldeployment for all componentsdemo.md) and a deployment-specific guide (demo-manual.md) to prepare for a follow-up UI deployment guideKey files
demos/github-issue/demo.mddemos/github-issue/demo-manual.mddemos/github-issue/setup_keycloak.pydemos/github-issue/k8s/configmaps.yamldemos/github-issue/k8s/git-issue-agent-deployment.yamldemos/github-issue/k8s/github-tool-deployment.yamlTest plan
demo-manual.mdsteps 1-8 on a fresh cluster with Kagenti platform installed