Skip to content

docs: Add UI deployment guide for GitHub Issue Agent + AuthBridge demo - #118

Merged
mrsabath merged 11 commits into
rossoctl:mainfrom
mrsabath:github-issue-demo-ui
Feb 26, 2026
Merged

mrsabath merged 11 commits into
rossoctl:mainfrom
mrsabath:github-issue-demo-ui

Conversation

@mrsabath

@mrsabath mrsabath commented Feb 17, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Adds a Kagenti UI-driven deployment variant (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-driven
  • Aligns naming conventions between manual and UI demos so both produce identical Kubernetes resources (same service names, ports, container names, labels, and env vars)
  • Updates the agent deployment YAML to use canonical LLM env vars (TASK_MODEL_ID, LLM_API_BASE, LLM_API_KEY) matching upstream agent-examples/.env.ollama
  • Adds <!-- WORKAROUND --> markers with linked issues for known limitations, so they can be removed as fixes land
  • Updates demo.md index page and README.md to link both deployment guides

Changes per file

File Description
demo-ui.md New — complete UI deployment walkthrough (Kagenti UI import, Shipwright builds, env var patching, UI chat + CLI testing, workarounds)
demo-manual.md Aligned service/container/label names, updated env vars, added public endpoint test (8a), wrong-issuer test (8d), agent log warnings note, workaround markers
k8s/git-issue-agent-deployment.yaml Renamed service to git-issue-agent:8080, container to agent, labels to app.kubernetes.io/name, updated env vars to TASK_MODEL_ID/LLM_API_BASE/LLM_API_KEY, added SERVICE_PORT/LOG_LEVEL, fixed MCP_URL to github-tool-mcp
k8s/github-tool-deployment.yaml Renamed service from github-tool-service to github-tool-mcp
demo.md Updated index page — both methods now use identical resource names; added UI deployment link
README.md Added UI deployment link to the demos list

Naming alignment (manual = UI)

Resource Before (manual) After (both)
Agent service git-issue-agent-service:8000 git-issue-agent:8080 (targetPort 8000)
Agent container git-issue-agent agent
Agent labels app: git-issue-agent app.kubernetes.io/name: git-issue-agent
Tool service github-tool-service:9090 github-tool-mcp:9090
LLM env vars MODEL_PROVIDER, MODEL_NAME, OLLAMA_HOST TASK_MODEL_ID, LLM_API_BASE, LLM_API_KEY

Tracked workarounds

These sections are marked with <!-- WORKAROUND --> and will be removed as fixes land:

  • Tool sidecar injection — webhook injects AuthBridge into tools causing port conflict (kagenti-extensions#138)
  • SPIRE label dropped on redeploy — UI drops kagenti.io/spire label (kagenti#738)
  • Agent built-in auth warnings — redundant identity probes at startup (agent-examples#129)
  • UI chat realm mismatch — Kagenti UI sends master realm token but AuthBridge validates demo realm (CLI testing works; UI chat documented as known limitation)
  • Local image builds — needed until images are published to a public registry

Test plan

Manual demo (demo-manual.md)

  • Deploy webhook, Keycloak, ConfigMaps, tool, and agent via kubectl apply
  • Verify agent pod has 4 containers: agent, spiffe-helper, kagenti-client-registration, envoy-proxy
  • Run Step 8 tests: public endpoint (8a), no-token rejection (8b), invalid-token rejection (8c), wrong-issuer rejection (8d), valid-token success (8e), log verification (8f)
  • Run Step 9 end-to-end: query GitHub issues via curl from test-client pod

UI demo (demo-ui.md)

  • Import agent and tool via Kagenti UI; verify Shipwright builds succeed
  • Apply tool sidecar workaround (scale webhook, redeploy tool without sidecars)
  • Patch agent env vars (MCP_URL, SPIRE_ENABLED, LLM settings)
  • Patch SPIRE label onto agent deployment
  • Verify agent pod has 4 containers after patches
  • CLI test (Step 9): query GitHub issues via curl from test-client pod at git-issue-agent:8080
  • UI chat (Step 8): confirm known limitation — UI sends master-realm token, expect no response (documented)

Copilot AI review requested due to automatic review settings February 17, 2026 14:39
@mrsabath mrsabath changed the title Add UI deployment guide for GitHub Issue Agent + AuthBridge demo docs: Add UI deployment guide for GitHub Issue Agent + AuthBridge demo 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

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.

Comment on lines +229 to +231
| **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 |

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

Suggested change
| **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 |

Copilot uses AI. Check for mistakes.
| **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 |

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

Suggested change
| **User** | `bob` (password: `bob123`) | Privileged user — full access |
| **User** | `bob` (password: `bob123`) | Regular user — public access |

Copilot uses AI. Check for mistakes.
mrsabath and others added 11 commits February 25, 2026 17:20
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
@mrsabath
mrsabath force-pushed the github-issue-demo-ui branch from e7d2b2c to f861fc4 Compare February 25, 2026 22:20

@pdettori pdettori left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@Alan-Cha

Copy link
Copy Markdown
Member

The main issue I encountered is with ollama. When you run ollama serve it's not reachable from within the cluster. In order to make it work, I had to change the LLM_API_BASE env var inside the agent deployment.

  - name: LLM_API_BASE
-   value: "http://ollama.ollama.svc:11434"
+   value: "http://host.docker.internal:11434"

http://ollama.ollama.svc:11434 is an in cluster endpoint, which means you need to run ollama inside the cluster. This isn't described in the tutorial.

If you want to use a local ollama instance, you can use http://host.docker.internal:11434 in order to reach it from within the cluster.


I noticed the following but it doesn't need to be fixed in this PR:

When you check the client registration log, you see:

SPIFFE credentials ready!
base64: invalid input
Client ID (SPIFFE ID): spiffe://localtest.me/ns/team1/sa/git-issue-agent
Starting client registration...
Created Keycloak client "spiffe://localtest.me/ns/team1/sa/git-issue-agent": 2cdc42c8-55cb-4f80-a665-9b404dc12ca5
Writing secret for client ID: "spiffe://localtest.me/ns/team1/sa/git-issue-agent" (internal client ID: "2cdc42c8-55cb-4f80-a665-9b404dc12ca5") to file: "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/shared/client-secret.txt"
Successfully retrieved secret for client "team1/git-issue-agent".
Secret written to file: "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/shared/client-secret.txt"
Client registration complete.
Client registration complete!

It's weird how it says base64: invalid input and Client registration complete twice.

@mrsabath
mrsabath merged commit 7f63abf into rossoctl:main Feb 26, 2026
3 checks passed
anatolykoyfman pushed a commit that referenced this pull request Aug 26, 2026
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
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>
boazdavid added a commit to boazdavid/cortex that referenced this pull request Nov 26, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants