Repository navigation
docs: Add UI deployment guide for GitHub Issue Agent + AuthBridge demo - #118
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an additional UI-driven deployment path for the GitHub Issue Agent + AuthBridge demo, so users can deploy the agent/tool via the Kagenti dashboard while keeping the AuthBridge/Keycloak/webhook setup CLI-driven.
Changes:
- Adds UI deployment guide (
demo-ui.md) and updates demo index (demo.md) to link manual vs UI paths. - Adds GitHub Issue demo Keycloak setup script + supporting K8s manifests (agent/tool + ConfigMaps).
- Updates AuthBridge README to include the GitHub Issue demo entry and links.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| AuthBridge/demos/github-issue/setup_keycloak.py | New Keycloak bootstrap script for demo realm/clients/scopes/users |
| AuthBridge/demos/github-issue/k8s/configmaps.yaml | ConfigMaps for webhook-injected sidecars (Keycloak + envoy/ext-proc settings) |
| AuthBridge/demos/github-issue/k8s/git-issue-agent-deployment.yaml | Manual agent deployment manifest with webhook injection labels |
| AuthBridge/demos/github-issue/k8s/github-tool-deployment.yaml | Manual GitHub tool deployment manifest (no injection) |
| AuthBridge/demos/github-issue/demo.md | Demo landing page linking manual vs UI deployment guides |
| AuthBridge/demos/github-issue/demo-ui.md | UI-based deployment walkthrough (Shipwright builds + Kagenti UI steps) |
| AuthBridge/demos/github-issue/demo-manual.md | Manual deployment walkthrough (kubectl/YAML) |
| AuthBridge/README.md | Adds demo links for GitHub Issue demo + both deployment variants |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| | **Scope** | `github-full-access` | Realm OPTIONAL — for privileged GitHub API access | | ||
| | **User** | `alice` (password: `alice123`) | Regular user — public access | | ||
| | **User** | `bob` (password: `bob123`) | Privileged user — full access | |
There was a problem hiding this comment.
The table describes bob as “Privileged — full access”, but setup_keycloak.py only creates the user and the optional github-full-access client scope; it doesn’t actually make bob’s tokens include that scope. Please update the doc to match the actual setup or add steps that grant/request github-full-access in a user-specific way.
| | **Scope** | `github-full-access` | Realm OPTIONAL — for privileged GitHub API access | | |
| | **User** | `alice` (password: `alice123`) | Regular user — public access | | |
| | **User** | `bob` (password: `bob123`) | Privileged user — full access | | |
| | **Scope** | `github-full-access` | Realm OPTIONAL — can be granted per user/session for privileged GitHub API access (not assigned by default) | | |
| | **User** | `alice` (password: `alice123`) | Regular user — public access by default | | |
| | **User** | `bob` (password: `bob123`) | Additional demo user — can be granted `github-full-access` via Keycloak if needed | |
| | **Scope** | `github-tool-aud` | Realm OPTIONAL — for exchanged tokens targeting the tool | | ||
| | **Scope** | `github-full-access` | Realm OPTIONAL — for privileged GitHub API access | | ||
| | **User** | `alice` (password: `alice123`) | Regular user — public access | | ||
| | **User** | `bob` (password: `bob123`) | Privileged user — full access | |
There was a problem hiding this comment.
The table describes bob as “Privileged — full access”, but the accompanying setup_keycloak.py script does not actually grant github-full-access (or any equivalent) to bob; it only creates the optional client scope. Please update this section to explain how a token gets the github-full-access scope (and how that differs for alice vs bob), or remove the privileged-user claim.
| | **User** | `bob` (password: `bob123`) | Privileged user — full access | | |
| | **User** | `bob` (password: `bob123`) | Regular user — public access | |
092be09 to
90f7315
Compare
bac2841 to
e7d2b2c
Compare
Adds the Kagenti UI-driven deployment variant of the GitHub Issue Agent demo. The agent and tool are imported and built via the Kagenti dashboard (Shipwright), while infrastructure (webhook, Keycloak, ConfigMaps) remains CLI-driven. - demo-ui.md: complete UI deployment walkthrough including Kagenti UI import steps, env var patching, UI chat interaction, and CLI testing - demo.md: updated index page to link both manual and UI guides - README.md: added UI deployment link Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
Signed-off-by: Mariusz Sabath <mrsabath@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
The github-tool-mcp service listens on port 8000, not 9090 (which is the ext-proc gRPC port). This caused the agent to timeout when trying to connect to the MCP tool. Signed-off-by: Mariusz Sabath <mrsabath@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
…ismatch Document findings from debugging kagenti-extensions#138: - Fix Step 4.7 port config: Service Port 8000, Target Port 9090 - Add per-sidecar opt-out labels to sidecar removal patch - Add warning about kubectl apply strategic merge patch behavior - Add "Patch: Fix tool service targetPort" section - Add troubleshooting entry for tool MCP server unreachable Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
Remove three workaround sections that are no longer needed: - "Patch: Remove AuthBridge sidecars from the tool" (webhook now uses opt-in injection logic) - "Patch: Enable SPIRE identity" (UI SPIRE toggle and webhook auto-ServiceAccount creation now handle this) - "Build Fails: short-name resolution" troubleshooting (fix merged in agent-examples#125) Update dangling references to removed sections and add issue link for UI chat realm mismatch (kagenti-extensions#147). Signed-off-by: Mariusz Sabath <mrsabath@gmail.com> Made-with: Cursor
e7d2b2c to
f861fc4
Compare
|
The main issue I encountered is with ollama. When you run - name: LLM_API_BASE
- value: "http://ollama.ollama.svc:11434"
+ value: "http://host.docker.internal:11434"
If you want to use a local I noticed the following but it doesn't need to be fixed in this PR: When you check the client registration log, you see: It's weird how it says |
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>
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>
…e bill difference Cortex priced every saving at the forwarded prompt's rate. A change that took a prompt from above the 200k long-context line to below it booked only the removed tokens at the base rate: 71% too low on a 250k to 150k prune (rossoctl#2135). - Host.Savings takes its dollars from accountant.Figure: saved tokens at the size without the ops, caused tokens at the billed size, and the re-rate of the tokens that stay. Cortex keeps its own owners, dry runs, spends, units and estimated flags. - The metrics pricer gets PriceAt, so the sink prices the same sizes. Sink.Observe passes the output tokens, so output is re-rated too. Before, the metrics had the same bug. - Bump accountant and accountant/metrics to v0.9.0 in every module. v0.9.0 also withholds the metrics of a request that fails the gates (accountant rossoctl#118): the push test now sends one clean and one gated request, and llm.savings.withheld is an allowed series. - docs/pricing.md: the prompt sizes, and the withheld requests. Fixes rossoctl#2135 Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com> Signed-off-by: DAVID BOAZ <DAVIDBO@il.ibm.com>
Summary
demo-ui.md) for the GitHub Issue Agent + AuthBridge demo — agent and tool are imported and built via the Kagenti dashboard (Shipwright), while infrastructure (webhook, Keycloak, ConfigMaps) remains CLI-drivenTASK_MODEL_ID,LLM_API_BASE,LLM_API_KEY) matching upstreamagent-examples/.env.ollama<!-- WORKAROUND -->markers with linked issues for known limitations, so they can be removed as fixes landdemo.mdindex page andREADME.mdto link both deployment guidesChanges per file
demo-ui.mddemo-manual.mdk8s/git-issue-agent-deployment.yamlgit-issue-agent:8080, container toagent, labels toapp.kubernetes.io/name, updated env vars toTASK_MODEL_ID/LLM_API_BASE/LLM_API_KEY, addedSERVICE_PORT/LOG_LEVEL, fixedMCP_URLtogithub-tool-mcpk8s/github-tool-deployment.yamlgithub-tool-servicetogithub-tool-mcpdemo.mdREADME.mdNaming alignment (manual = UI)
git-issue-agent-service:8000git-issue-agent:8080(targetPort 8000)git-issue-agentagentapp: git-issue-agentapp.kubernetes.io/name: git-issue-agentgithub-tool-service:9090github-tool-mcp:9090MODEL_PROVIDER,MODEL_NAME,OLLAMA_HOSTTASK_MODEL_ID,LLM_API_BASE,LLM_API_KEYTracked workarounds
These sections are marked with
<!-- WORKAROUND -->and will be removed as fixes land:kagenti.io/spirelabel (kagenti#738)masterrealm token but AuthBridge validatesdemorealm (CLI testing works; UI chat documented as known limitation)Test plan
Manual demo (
demo-manual.md)kubectl applyagent,spiffe-helper,kagenti-client-registration,envoy-proxycurlfrom test-client podUI demo (
demo-ui.md)MCP_URL,SPIRE_ENABLED, LLM settings)curlfrom test-client pod atgit-issue-agent:8080