Skip to content

Agent tokens: dev realm, chart values and admin docs - #83

Open
dcmcand wants to merge 1 commit into
slice/agent-tokens-18-backupsfrom
slice/agent-tokens-19-docs
Open

dcmcand wants to merge 1 commit into
slice/agent-tokens-18-backupsfrom
slice/agent-tokens-19-docs

Conversation

@dcmcand

@dcmcand dcmcand commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Slice 19: Dev realm, chart values and broker admin docs

An admin can turn the switch on from the docs, with Keycloak set up step by step, and the dev stack's realm can do everything the broker asks.

Spec: nebari-dev/tapas/docs/superpowers/specs/2026-11-30-agent-token-broker-design.md
Plan: nebari-dev/tapas/docs/superpowers/plans/2026-12-01-agent-tokens-and-frames.md (Slice 19)
Contracts touched: Dev realm deploy/dev/keycloak/realm-javo.json, What Tapas asks of the identity provider with the switch on
Depends on: #82

  • New admin/agent-tokens.md: Keycloak setup, config, start refusals, Settings and admin pages, janitor and logs, the mint_failed reason table, turning it off, tokens Tapas drops unrevoked; links Set up the tapas-pack Keycloak client for agent tokens #37.
  • backups.mdx, secrets-and-keys.md, sign-in.mdx, and javo user remove's help updated.
  • Dev realm: token exchange, the frames audience client and optional frames-audience scope, offline_access; the built-in scopes, role scope mapping and default roles an import otherwise drops. Checked by hand on the dev Keycloak (transcript in the plan's Evidence).
  • values.yaml: the agentTokens section, commented out.

Reviewer note: the Keycloak console labels in the setup steps are checked against the real console in Slice 25's docs walk-through.

Validation

Step Command / action Expected Result
dev realm make dev-up, the second request and an exchange a stored row; a token with that aud, email, groups exchange passed on the dev Keycloak; the stored row is checked in Slice 25 (host helm 3.18 could not run make dev-up)
helm go test -count=1 ./test/helm/... ok ok
docs make docs builds, /admin/agent-tokens/ present CI's Docs job (local Node below Astro's floor)
issue the tapas-pack follow-up issue filed after the owner approved its text #37, linked

A new admin page, Agent tokens, walks an admin through turning the
switch on: the Keycloak setup (standard token exchange on Tapas's
client, offline_access as an optional scope, an audience client and an
optional audience scope per service, an Offline Session Max), the
agentTokens config with Frames' entry, what start refuses, what people
and admins see, the janitor and its log lines, what agent_token.
mint_failed's reasons point at in Keycloak, turning it off, and the
tokens Tapas drops without revoking. It links the tapas-pack follow-up
(#37).

Backups, Secrets and keys, and Sign-in say what agent tokens change
there, and javo user remove's help mentions agent access.

The dev realm can do everything the broker asks: token exchange, an
audience client and scope for Frames, offline access, and the built-in
scopes and roles a realm import otherwise leaves out. values.yaml shows
the agentTokens section, commented out. contracts.md gains the identity
provider's requirements and the dev realm.

This branch has not been deployed

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

1 participant