Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Client → Client-Proxy → API (REST) ⟷ PostgreSQL

**Dashboard API (`packages/dashboard-api/`)** - REST backend for the web dashboard, not the SDK
- Entry point: `main.go`
- Spec: `spec/openapi-dashboard.yml`; legacy team management, template tags, builds, admin bootstrap, `/v1/management`
- Spec: `spec/openapi-dashboard.yml`; team reads, template tags, builds, admin access, `/v1/management`
- Talks to Postgres and ClickHouse; never to orchestrators (see `docs/ARCHITECTURE.md`)
- Port: 3010

Expand Down
11 changes: 5 additions & 6 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,11 @@ below).
### Dashboard API (`packages/dashboard-api`)

A separate REST service (port 3010, spec `spec/openapi-dashboard.yml`) consumed by the web
dashboard, not the SDK: legacy team management/provisioning, template tags, build listings, admin
bootstrap. Its admin routes accept either a shared admin token or a short-lived service JWT
verified against the configured admin JWKS. The `disable-legacy-team-mutations` LaunchDarkly flag
rejects legacy lifecycle writes with 412 after authentication; it leaves reads and the workspace
API's management projection writes available. Team-scoped template and build read routes accept either dashboard user auth or
team API key auth (`X-API-Key`). Its workspace-agnostic `/v1/management` operations are defined in the
dashboard, not the SDK: team and template reads, template tags, build listings, and admin access
operations. Its admin routes accept either a shared admin token or a short-lived service JWT
verified against the configured admin JWKS. Workspace API management projection writes remain
available. Team-scoped template and build read routes accept either dashboard user auth or team
API key auth (`X-API-Key`). Its workspace-agnostic `/v1/management` operations are defined in the
same dashboard OpenAPI contract and registered on the existing router. Their `AdminJWTAuth`
OpenAPI security scheme accepts only short-lived service JWTs verified against the workspace-api
`/.well-known/jwks.json` endpoint, with accepted signing methods derived from each JWK's required
Expand Down
Loading
Loading