The same deployment serves a console for every configured or discovered realm. Users authenticate in the realm selected by the console URL; the server derives API access from verified tokens and RBAC, never from a URL alone.
Addresses
| Address | Login context |
|---|---|
/ |
Main realm (IPSEITY_NAMESPACE, default ipseity). |
/index.html |
Legacy alias for the main console. |
/realms/ipseity |
Explicit main console with the default namespace setting. |
/realms/<realm-name> |
Console for the named realm. |
Both forms of an explicit console URL, with and without a trailing slash, work.
When IPSEITY_NAMESPACE=identity, / and /realms/identity are the main
console aliases; /realms/ipseity is not a special alias in that deployment.
The prefix keeps realm names such as api, oauth and ui from colliding with
the service's API, OAuth and static-asset routes.
For example, send a customer administrator to
https://ipseity.example.com/realms/customer-a. They enter a local username,
password and current TOTP code when their account requires MFA. A username is
looked up only in the selected realm. Root login does not search tenant accounts.
The console's login form uses password/TOTP; external-provider flows remain
available through the shared OAuth authorization endpoint for application clients.
Users and administrators
Every enabled account needs the login permission. Identity read permissions
are not required just to sign into a console.
- An ordinary user lands on Account to change their password, manage MFA, unlink providers, and inspect/revoke their own sessions. Identity-management, OAuth-reference and realm-management navigation is hidden without the corresponding access.
- A realm administrator sees the entity pages their permissions allow. Assign
the realm's built-in
ipseity-adminsgroup for its entity-admin roles, or a narrower set of roles for delegated administration. Group membership is not granted merely because someone can log in. - A main-realm administrator with
ipseity.supersees the realm directory and selector. Their own identity permissions apply when operating on another realm. Withoutipseity.super, even a main-realm administrator sees only their own realm.
A main-realm shared identity can also use an explicit tenant
membership, signing in as <main-realm>/<username> at the
tenant console. It receives only the membership's local roles/groups. Membership
sessions can view their profile and manage tenant sessions; password, MFA,
provider and verification changes require a normal home-realm login.
Editing principal credentials
Editing a principal clears the password and MFA-secret inputs because API responses redact stored secrets. Leave the password input blank to retain the current password; enter a new plaintext password to replace it. If MFA stays enabled, leaving its secret blank also retains the existing secret. New accounts with MFA enabled still need an initial secret.
Console saves use POST /api/principals through the current realm's API alias.
Existing principals receive the same secret-preservation behaviour as named
POST/PUT updates. Saving profile, permission or group changes with blank secret
inputs does not reset credentials. See API semantics.
If an older version already overwrote a password with blank input, this fix cannot recover the original hash. An administrator must explicitly set a new password; subsequent edits can leave the field blank safely.
Managed OAuth clients
Each realm owns a server-managed public console client. Operators do not need to create clients or client secrets for these consoles.
- The main realm retains
IPSEITY_INTERNAL_UI_CLIENT_ID(defaultipseity-internal) for compatibility. - Tenant IDs are the first 24 characters of that configured ID, a hyphen, and the first 16 hexadecimal characters of SHA-256 of the realm name. This keeps IDs bounded and globally distinct without embedding a realm directory.
- Each client's
realmis its owning namespace,managed_consoleistrue,public_clientistrue, and the secret is empty. - All known scopes are allowed; the console uses Authorization Code with PKCE
S256 and requests
openid profile groups roles email. - Tenant redirects are the exact service-origin URLs
/realms/<realm>and/realms/<realm>/. The main client additionally accepts/,/index.html, both explicit main-realm forms, and configuredIPSEITY_INTERNAL_UI_REDIRECT_URIS. Default redirects are exact URLs rather than a wildcard covering all realms. - The allowed origin is
config.service_origin(), derived from the configured public issuer's scheme and authority. No client consent screen is required for the built-in console.
Clients are reconciled at startup, when realms are created, when a newly discovered realm's stores are first initialized, and when its managed client is resolved for OAuth. Existing realms are upgraded automatically. Reconciliation repairs server-owned fields, including redirects and consent settings.
REST creation, editing, deletion and secret rotation reject managed client IDs, including reserved IDs for realms that do not exist yet, case variants, and underscore aliases that normalize to the same Kubernetes ConfigMap name. This prevents a tenant from registering another realm's console identity. The console shows these records as Managed, with no edit/delete actions. Do not reconcile these clients from a GitOps controller; Ipseity owns them.
The issuer, discovery document, JWKS and /oauth/* endpoints remain shared.
Client IDs select the realm for authorization and token exchange; this console
URL scheme does not introduce realm-specific OIDC issuers or discovery URLs.
API and session binding
Console requests use /realms/<realm>/api/... aliases of the existing /api/...
REST endpoints. The server requires the token's realm to match the URL realm
before resolving the principal or performing any entity operation. This applies
to GET, POST, PUT and DELETE, including self-service and metadata.
Unprefixed /api/... endpoints remain available for existing integrations and
derive the realm from the token. A tenant token cannot target another realm by
adding X-Ipseity-Realm. A main-realm super administrator uses that header from
their main console to target another realm; opening a tenant console URL with a
main-realm token does not bypass the URL/token check.
With IPSEITY_API_AUDIENCE set, API access accepts either that configured
audience or the issuing realm's own managed console client ID. A console
audience belonging to another realm is not an exception. Existing application
tokens retain the configured audience requirements. ID tokens are never
accepted as API access tokens.
The browser checks the token's realm and audience against its page context and
revalidates sessions with the server before entering the app. API requests bypass
the browser's HTTP cache, and JSON API/token responses use
Cache-Control: no-store. Session and PKCE storage keys are separate for each
tenant realm. /, /index.html and the
explicit main-realm paths share the existing main session keys, and both main
callback URL forms are accepted by the same client. Pending authorization state
retains its original redirect URI for the code exchange.
Failed sign-ins and OAuth callbacks return to the login box with an error. Expired or revoked API sessions also return to login; callback failures no longer leave the user on the loading screen. Client/realm settings and requested scopes are retained for another attempt. See login error recovery.
Path-based realms share a browser origin. Namespaced browser storage prevents accidental session reuse; it is not an independent browser security origin.
Privacy and first-run setup
Tenant metadata contains only the authenticated realm. The full realm list is available only to main-realm super administrators. Unauthorized target headers are rejected before checking whether the requested realm exists, and URL/token mismatches produce the same denial for existing and nonexistent target realms.
Known and unknown syntactically valid realm URLs render the same generic console shell. Visiting an unknown name does not create a namespace, store or console client. Password submissions for unknown managed clients fail with generic credential errors. The deployment provides no public realm directory; public login URLs and valid credentials are not secrets, so this is not a promise to conceal existence against all guessing or timing analysis.
Bootstrap remains a main-realm, first-run operation. Tenant console routes
always report bootstrap closed and cannot create an initial main administrator.
Authenticated tenant requests never inherit an open main-realm bootstrap
bypass. Public main bootstrap status includes counts only while setup is open;
closed status exposes only bootstrap_open and can_create_initial_admin, both
false. Production operators should configure IPSEITY_BOOTSTRAP_TOKEN for
first-run writes as described in bootstrap-and-gitops.md.
New tenant administrators must be provisioned by a main super administrator or GitOps; opening an empty tenant console does not provide public account creation.
Deployment and verification
The ingress must forward the complete /realms/ prefix to Ipseity without
stripping it. The normal catch-all / ingress already does so. Static assets
remain under /ui/; the issuer origin must be the browser-visible HTTPS origin
so redirects and allowed origins match. No additional Secrets, Services,
Ingresses or Kubernetes permissions are needed for individual consoles.
Integration coverage lives in tests/test_realm_console.py; browser session and
navigation checks run with node --test tests/test_console.js. Run Python tests
with python3 -m unittest discover -s tests -q or the CI pytest command.
