Konklav is a standalone identity and access service. It owns subjects, credentials, sessions, tokens, tenants, memberships, roles and policies. Relying systems verify its tokens offline and get authorization decisions through a small SDK that caches entitlements and keeps them fresh from a change feed.
It is designed around:
clear tenancy boundaries: a tenant tree in which a parent grants nothing implicitly
agnosticism: actions, scope kinds, facts and session flags are catalog data; Konklav knows nothing any relying system's domain
fast revocation without callbacks: session and entitlement changes reach relying systems over SSE within a second, and relying systems fall back to a central check API and fail closed when they can't keep up
traceability: requirements live in Tracey-managed specs and are linked from code and tests
This builds Konklav from a checkout, runs it locally with the development configuration and creates the first operator. You need Rust 1.88 or later, Node.js 24 or later with npm (to build the login page), Docker, and OpenSSL with its headers (for example brew install openssl@3 ). Run the commands from the repository root.
Start Postgres. Konklav needs PostgreSQL 18 with the pg_jsonschema extension, and dev/ builds and runs such a container on localhost:15432 : docker compose -f dev/compose.yaml up -d --wait
Start Postgres. Konklav needs PostgreSQL 18 with the pg_jsonschema extension, and dev/ builds and runs such a container on localhost:15432 :
Build the login page, which the server embeds, and install konklav-server : (cd items/login && npm ci && npm run build) cargo install --locked --path items/server Without the login page's build, the server serves a placeholder at /login/ instead, and konklav login can't sign in through the browser in step 5.
Build the login page, which the server embeds, and install konklav-server :
Without the login page's build, the server serves a placeholder at /login/ instead, and konklav login can't sign in through the browser in step 5.
Point it at the development configuration, create its two keys (the Ed25519 key that signs access tokens and the P-256 key that signs ID tokens, since the development configuration makes Konklav an OpenID provider), apply the migrations and serve: export KONKLAV_CONFIG=config/dev.styx KONKLAV_SECRETS=config/dev.secrets.styx openssl genpkey -algorithm Ed25519 -out config/dev.signing-key.pem openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256 -out config/dev.id-token-key.pem konklav-server migrate konklav-server serve It serves the three surfaces: subject-facing on 127.0.0.1:8080 relying on :8081 control-plane on :8082
Point it at the development configuration, create its two keys (the Ed25519 key that signs access tokens and the P-256 key that signs ID tokens, since the development configuration makes Konklav an OpenID provider), apply the migrations and serve:
It serves the three surfaces:
subject-facing on 127.0.0.1:8080
control-plane on :8082
Create the first operator, a human subject with a password and the built-in konklav.admin global role, from the development bootstrap set examples/bootstrap/dev-operator.styx . In a second terminal, with the same environment: konklav-server bootstrap --allow-plaintext-passwords examples/bootstrap/dev-operator.styx Applying it again skips what it already created. A conflict means [email protected] already has another password in your database: change the email in the file.
Create the first operator, a human subject with a password and the built-in konklav.admin global role, from the development bootstrap set examples/bootstrap/dev-operator.styx . In a second terminal, with the same environment:
Applying it again skips what it already created. A conflict means [email protected] already has another password in your database: change the email in the file.
Install the operator CLI and sign in as the operator. With the dev configuration, konklav login opens the login page in the browser: cargo install --locked --path items/cli konklav login --url --control-url konklav whoami konklav tenants list konklav login --password signs in at the terminal instead. Every session the CLI starts is bound to a DPoP key it keeps in the operating system's credential store. In a real deployment, remove the bootstrap token, control.bootstrap_token in config/dev.secrets.styx , once an operator exists.
Install the operator CLI and sign in as the operator. With the dev configuration, konklav login opens the login page in the browser:
konklav login --password signs in at the terminal instead. Every session the CLI starts is bound to a DPoP key it keeps in the operating system's credential store. In a real deployment, remove the bootstrap token, control.bootstrap_token in config/dev.secrets.styx , once an operator exists.
To start from a populated database instead, seed it with the example bootstrap set:
The operators' console is a browser UI over the control plane. To serve it against the server above on :
Use localhost rather than 127.0.0.1 , because passkeys don't work on IP addresses. Sign in as the operator, or use the bootstrap token to create one there instead of with a bootstrap set.
konklav works on the control plane from a terminal or a script, over DPoP-bound sessions: tenants, subjects, invites, roles, assignments, sessions, decision explanations, batches, and any other call through konklav api . Install it from crates.io with cargo install konklav-cli , or take a binary from the GitHub release.
A deployment offers browser sign-in to the CLI with native_handoff { enabled true } to browser ; konklav login --password works without it. See items/cli .
Single sign-on out of the box
The server can serve a login page of its own, so Konklav works as an OpenID provider for off-the-shelf clients, such as a Kubernetes cluster through kubelogin , Harbor or Grafana, without a login application of your own. Turn it on to browser and oidc_provider :
It signs people in at {issuer}/login/ with passwords, MFA, passkeys and identity providers, GitHub among them, and lets people who aren't members of the tenant a client asks for request access, for operators to approve; see items/login .
Your first relying system: the guide carries on from the quickstart: a tenant, a role and a person, and a Python relying system whose decision changes when the role is taken away.
Vocabulary: docs/nomenclature.md defines subjects, tenants, memberships, roles, entitlement sets and the rest. Konklav's docs and APIs use these terms precisely.
How it fits together: the overview , then the other notes in docs/architecture/ .
A complete app: the notes app , in Docker Compose: single sign-on to a browser app and an admin page with DPoP-bound tokens, live roles, revocation and rate limits shared through Valkey.
Runnable scenarios: examples/ has email-link sign-in with a delivery worker, one Konklav signing people in to another, and seeding a deployment.
Integrating a relying system: the relying SDK, as the Python binding or the native Rust client , on top of the relying core .
Looking things up: docs/reference/ lists every configuration setting, endpoint, change-feed event, error code and environment variable, and CHANGELOG.md what each release changed.
Operating it: the server , the console , the operator CLI , and bootstrap sets for seeding and importing.
Federation: OIDC and federation , for signing in through identity providers and acting as an OpenID provider.
Exact behavior: the normative specs in docs/spec/ .
Working on Konklav: CONTRIBUTING.md covers the development environment, tests and releases.
Subjects and credentials: humans and service principals; passwords, secret keys, passkeys, email links and phone codes; MFA (TOTP and email codes), step-up, invites, password reset and change, and impersonation.
Sessions and tokens: server-side sessions with refresh rotation and reuse detection, browser cookies with CSRF checks, and Ed25519 access tokens published through JWKS.
Tenancy and authorization: tenants and memberships with facts, the action catalog, templates, roles and assignments, compiled entitlement sets, session flags, and the entitlements and check APIs.
Change feed and relying SDK: SSE with resume, reset and batches; a sans-I/O relying core that also builds for wasm, with a native Rust client and a Python binding.
Messaging: Konklav never sends messages. It emits delivery requests on the change feed for a relying system's worker to send.
Control plane: authorized by konklav: capabilities, with listings, entitlement explanations and an operators' console.
Erasure and personal data reports: an operator can erase a subject, which removes the personal data Konklav holds and tells relying systems through the change feed, and can read everything held a subject as one report. Konklav holds no profile data, so each relying system erases its own. See erasure .
Import: a bulk import API and a bootstrap command that keep existing ids and can be re-run, including Argon2 password hashes, MFA seeds and sessions.
Federation: OpenID Connect in both directions: signing in through identity providers with claim mapping; acting as an OpenID provider with client credentials, revocation and logout; peering between Konklav instances; and workload tokens.
v1, a prototype backed by Feldera, is preserved at tag v1 .
Running in a container
The image runs konklav-server serve as a non-root user. Mount config.styx , secrets.styx and the key files they name at /etc/konklav :
examples/deployment runs the image with PostgreSQL in Docker Compose, with a configuration to start a real deployment from and a script that makes fresh secrets. docs/reference/configuration.md describes every setting. The database must be PostgreSQL 18 with pg_jsonschema ; dev/postgres builds such an image.
PostgreSQL via Diesel ( diesel-async , embedded forward-only migrations)
ordna for layered configuration with separate secrets
Ed25519 JWTs published through JWKS
pyo3 for the Python relying binding
Leptos and Trunk for the console
Konklav is licensed under the MIT License .
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
