- web: Refresh console (relation cards, overwrite confirmation, progress,
cancel, distinct failure messages), rail item, and a single-screen view
for people who may only refresh
- hub: refresh-only users are authorized; /me exposes refresh_relations
- docs and auth plan record the real rehearsal (Postgres, agent, Keycloak,
browser) and what was not verified
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- environment (production/staging/development) on source orbits and on restore targets;
an unlabelled target fails closed and a production target is refused
- directed, versioned relations from a managed source orbit to a restore target: one
active relation per pair, retargeting makes a new id and ends the old one
- refusals name the rule: unknown or unlabelled source/target, not a managed capture
profile, not restore-ready, application or engine mismatch, inactive Outpost, and a
target whose identity matches a database captured as production in any snapshot
- relations end in the same transaction when their target is relabelled production or an
Outpost is revoked; usability is re-read live
- refresh.run is granted per relation id in its own table (user or group, expiry), never
global, never carried to a new version, and never accepted by the orbit gate
- admin API under /api/v1/relations plus environment endpoints; people holding only a
relation grant see names and environments, never identity, host, Outpost or application
- Relations console; sign-in form without SSO no longer shows a stray "Details" label
Tests extend the access matrix with relation fixtures and a caller that holds only a
relation grant.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Authorization
- one gate for every human endpoint: authenticate, resolve the resource, then
admin_only / scoped / visible; require_admin* removed so each handler must choose
- grants (user or IdP group; global or one orbit; optional end date) read live on
every request; only orbit.read, snapshot.read, capture.run and snapshot.download
can be granted, everything else stays with configured administrators
- an orbit without orbit.read is 404, a visible one without the permission is 403,
a caller with nothing to see gets 403 on lists; job history is filtered before LIMIT
- jobs and audit record the stable principal id, not the IdP display name
- restore targets and restore history are admin-only until self-service (M6)
- sessions keep the groups verified at sign-in
Administration
- /api/v1/access grants and users (enable, disable, sign out everywhere), validated
and audited by id; admins cannot disable themselves or the emergency operator
- Access console with the shared Select and a themed DatePicker; non-administrators
only see Vault and Activity and never call administrator endpoints
- the Window/Radar view is stored per account (/api/v1/me/preferences)
- UI tolerates older hubs and mocks (missing admin/grants) and a console that fails
to render no longer blanks the app
Tests: a matrix generated from the endpoint contract exercises every human route
against real resources in two orbits for each kind of caller.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sessions and users (M2)
- users and sessions tables in SQLite; only a digest of the session ID is stored
- idle 30 min / absolute 8 h deadlines, UPDATE-only touch, per-user revoke by generation
- emergency operator is a users row (issuer local:emergency); its sessions are
bound to the operator hash fingerprint, so unsetting or rotating it ends them
- CSRF derived from the session ID; GET /api/v1/me
OIDC login (M3)
- openidconnect 4.1: authorization code + PKCE S256, static redirect URI, no redirects
- one-time login transactions bound to the browser by a Lax correlation cookie
- identity is (issuer, subject); admin only from configured subjects/groups;
a signed-in user without a grant gets 403 on management APIs
- OIDC sessions are bound to the OIDC configuration fingerprint
- SSO button, no-access page and fixed error codes in the web UI
- tests against a mock IdP with signed and malformed tokens; rehearsed against
Keycloak 26.1 in a real browser
- rsa 0.9 advisory (RUSTSEC-2023-0071) excepted with a written reason: runtime
code only verifies signatures with public keys
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PostgreSQL and MySQL backups run through paired outposts, with operator sign-in, off-site copies, and legacy import. Retention stays on each orbit, so the unused retention console is removed.
Co-authored-by: Cursor <cursoragent@cursor.com>