Overview: what Ipseity is and how it fits

Ipseity is a self-hosted identity management server. It provides:

  • OAuth 2.0 + OpenID Connect 1.0 for your applications:
    • Authorization-code flow with PKCE for browser/SPA clients.
    • client_credentials for machine-to-machine access.
    • Rotating refresh tokens.
    • Token introspection and revocation (/oauth/introspect, /oauth/revoke).
    • A single aggregate JWKS and OpenID discovery document.
  • Identity management for principals, groups, roles and clients through a REST API and a web console.
  • Multi-realm isolation — each realm is a Kubernetes namespace with its own principals, groups, roles, clients and signing key (see realms).
  • External authentication providers — log in via an OAuth2/OIDC IdP such as GitHub, GitLab, Google or any custom provider; accounts are keyed by email (see providers).
  • Security engineering appropriate to an identity service: PBKDF2-SHA256 password hashing, optional TOTP MFA, per-principal login lockout, AES-256-GCM encryption at rest for secrets, per-realm RS256 signing keys with rotation, a full audit trail, optional login rate limiting, and a hardened, dependency- light standard-library HTTP server.

Key concepts at a glance

Concept Meaning
Realm An isolated unit of identity data (a Kubernetes namespace). A single deployment can serve many realms.
Principal An identity — a human user or a service account.
Group / Role Containers for permissions. Groups can carry roles and permissions; principals hold roles/groups directly.
Permission A named capability string such as principals.write, login, admin.audit.read, or ipseity.super.
Client A registered OAuth application (public SPA or confidential server).
Provider An external OAuth2/OIDC identity provider configured as a "login with…" source.
Session An active refresh token issued to a client for a principal.

How it fits together

   Browser (console / apps)            Server-side apps / services
        │  │                                    │
        │  │ Authorization Code + PKCE         │  client_credentials
        │  ▼                                    ▼
        └──────────►  Ipseity (OAuth2/OIDC endpoints)
                          │
        identity data     │  principals / groups / roles / clients / providers
        ──────────────────┴──►  Storage backend (Kubernetes ConfigMaps or memory)
                          │
        secrets           │  AES-256-GCM encryption at rest
        signing keys      │  per-realm RS256 keys (+JWKS)
        audit trail       │  AUDIT JSON stdout → Loki (+ recent local cache)
  • Storage is pluggable: in-memory (for development) or Kubernetes ConfigMap-backed (for production/HA). The backend is picked automatically at start-up — see architecture.
  • Realms keep everything separate. Tokens embed which realm issued them; API calls are confined to the token's realm unless the caller holds ipseity.super. Client IDs are unique system-wide, so OAuth flows are routed by client id without realms ever appearing in URLs — see realms.

Quick start (local, no Kubernetes)

# Build (or use the published container image)
docker build -t ipseity:dev .

# Give it an RSA key for RS256 signing (recommended) and run
openssl genrsa -out ipseity-oidc.key 2048
docker run --rm -p 8080:8080 -e IPSEITY_OIDC_ISSUER=http://localhost:8080 \
  -e IPSEITY_OIDC_SIGNING_ALG=RS256 \
  -e IPSEITY_OIDC_SIGNING_PRIVATE_KEY_FILE=/keys/ipseity-oidc.key \
  -v "$PWD/ipseity-oidc.key:/keys/ipseity-oidc.key:ro" ipseity:dev

Then open http://localhost:8080 — the console runs its own OpenID login (ipseity-internal client). The first run is in bootstrap mode; see bootstrap and GitOps.

For a full production install (Kubernetes, signing + encryption keys, realms, providers, backups) start with the operations and Orbit Deploy guides.