Skip to content

home: add a Policies page to the UI demo - #757

Merged
christian-posta merged 2 commits into
mainfrom
homepage-ui-policies
Nov 23, 2026
Merged

christian-posta merged 2 commits into
mainfrom
homepage-ui-policies

Conversation

@sebbycorp

@sebbycorp sebbycorp commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

What

kagent 1.0.1 has a Policies page in the UI, between MCP Servers and Prompts. This adds it to the interactive UI demo on the kagent.dev homepage.

  • Policies in the demo sidebar, with a shield icon, in the same position as in the real UI
  • The page mirrors the real one: the Overview card (Agent and SandboxTemplate → EgressPolicy → HTTP(S) hosts), the Egress Policies tab, search by name or origin, and the Name, Namespace, Origins, Authentication and Used by columns
  • Seven example egress policies that match the demo's agents:
Policy Origins Authentication Used by
github-api api.github.com Secret key pr-reviewer, cve-watch, release-notes-writer
stripe-api api.stripe.com Secret key billing-ops
billing-internal billing.internal.acme.dev Actor JWT billing-ops
pagerduty api.pagerduty.com, events.pagerduty.com Secret key, None sre-incident-commander
cisa-kev www.cisa.gov None cve-watch
package-registries npm, PyPI, Go proxy None two sandbox templates, design-to-code
huggingface-hub huggingface.co, *.hf.co Secret key, None model-scout
  • Clicking a policy expands it to show each origin, the header the gateway sets, and who uses it. Agent names open that agent's chat
  • A Policies step in the tour
  • Create egress policy opens a working form that follows /policies/egress/new in the real UI: name, namespace, and one or more destinations, each with an origin and None, Secret key or Actor JWT authentication, with the same field labels and help text. It validates the name and origin, and the new policy joins the table for the rest of the visit. Nothing is sent anywhere

Only src/components/home/kagent-ui.tsx changes.

How it was checked

  • Compared with the Policies page of a kagent 1.0.1 UI: sidebar position, overview text, column names, and the three authentication kinds (None, Secret key, Actor JWT) from the create form
  • tsc --noEmit and eslint pass
  • Clicked through the page on next dev: navigation, expand and collapse, search, delete, tour step
  • Created a two-destination policy (Secret key and Actor JWT) through the form, and saw the validation errors for an empty form and for an origin with a path

Not checked

  • next build and the Worker build were not run locally
  • The expanded row is the demo's own design. The real UI opens an edit form instead
  • The form's validation rules are the demo's own. The real form's error messages were not compared. Audiences are comma-separated in the demo; the real form takes one per Enter
  • Editing a policy still shows a note that it opens the form in the real UI
  • The Secret key and Actor JWT labels in the Authentication column come from the create form. The real list was only seen showing None

🤖 Generated with Claude Code

https://claude.ai/code/session_01FeiRMhsi2TebnCBPxxRCT1

kagent 1.0.1 has a Policies page in the UI, between MCP Servers and
Prompts. Add it to the interactive replica on the homepage, with the
same overview and table, seven example egress policies that match the
demo agents, and a tour step.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FeiRMhsi2TebnCBPxxRCT1
Signed-off-by: Sebastian Maniak <sebastian@maniak.io>
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Docs preview

Link Points at
Branch preview The newest push to this branch. Updates in place.
Commit preview a53566f only. Frozen.

Both are uploaded Worker versions and serve no production traffic.

Create egress policy now opens a form that follows /policies/egress/new
in kagent 1.0.1: name, namespace, and up to 64 destinations, each with
an origin and None, Secret key or Actor JWT authentication. A created
policy joins the table for the rest of the visit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FeiRMhsi2TebnCBPxxRCT1
Signed-off-by: Sebastian Maniak <sebastian@maniak.io>
@sebbycorp
sebbycorp requested review from jjamroga and kcbabo and removed request for kcbabo November 23, 2026 22:15
@sebbycorp
sebbycorp marked this pull request as ready for review November 23, 2026 22:45
@christian-posta
christian-posta merged commit 1aa8586 into main Nov 23, 2026
2 checks passed
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.

2 participants