Skip to content

docs: Add GitHub Issue Agent + AuthBridge demo (manual deployment) - #117

Merged
maia-iyer merged 37 commits into
rossoctl:mainfrom
mrsabath:github-issue-demo-manual
Feb 20, 2026
Merged

maia-iyer merged 37 commits into
rossoctl:mainfrom
mrsabath:github-issue-demo-manual

Conversation

@mrsabath

@mrsabath mrsabath commented Feb 17, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Adds a complete end-to-end demo for the GitHub Issue Agent with AuthBridge, using manual kubectl deployment for all components
  • Includes Keycloak setup script, K8s manifests (agent, tool, ConfigMaps), and detailed step-by-step instructions covering webhook deployment, token exchange configuration, and CLI-based testing
  • Splits the demo documentation into an index page (demo.md) and a deployment-specific guide (demo-manual.md) to prepare for a follow-up UI deployment guide

Key files

File Purpose
demos/github-issue/demo.md Index page linking to deployment guides
demos/github-issue/demo-manual.md Full manual deployment walkthrough
demos/github-issue/setup_keycloak.py Automated Keycloak realm/client/scope setup
demos/github-issue/k8s/configmaps.yaml AuthBridge sidecar configuration (Envoy, SPIFFE, etc.)
demos/github-issue/k8s/git-issue-agent-deployment.yaml Agent deployment with AuthBridge webhook labels
demos/github-issue/k8s/github-tool-deployment.yaml GitHub MCP tool deployment

Test plan

  • Follow demo-manual.md steps 1-8 on a fresh cluster with Kagenti platform installed
  • Verify webhook injects 4 containers into the agent pod
  • Verify inbound rejection (no token / invalid token) returns 401
  • Verify valid token returns agent card
  • Verify end-to-end query returns GitHub issues with token exchange in Envoy logs
  • Verify Keycloak setup script is idempotent (can run twice without errors)

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]>
Copilot AI review requested due to automatic review settings February 17, 2026 14:38
@mrsabath mrsabath changed the title Add GitHub Issue Agent + AuthBridge demo (manual deployment) docs: Add GitHub Issue Agent + AuthBridge demo (manual deployment) Feb 17, 2026

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

@mrsabath
mrsabath marked this pull request as draft February 17, 2026 14:51
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]>
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]>
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]>
@mrsabath
mrsabath marked this pull request as ready for review February 17, 2026 23:27
Copilot AI review requested due to automatic review settings February 17, 2026 23:27

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

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]>
Copilot AI review requested due to automatic review settings February 17, 2026 23:37

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

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.

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

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.yaml explicitly. 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]>
Copilot AI review requested due to automatic review settings February 18, 2026 15:49
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]>

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

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.

Copilot AI review requested due to automatic review settings February 18, 2026 16:55
Signed-off-by: Mariusz Sabath <[email protected]>

Co-authored-by: Copilot <[email protected]>

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

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]>
Copilot AI review requested due to automatic review settings February 18, 2026 19:51

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

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

Tested and works! Let's merge this!

@maia-iyer
maia-iyer merged commit 1117569 into rossoctl:main Feb 20, 2026
4 checks passed
anatolykoyfman pushed a commit that referenced this pull request Aug 26, 2026
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]>
anatolykoyfman pushed a commit that referenced this pull request Aug 26, 2026
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]>
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