Configuration reference
All configuration is provided through environment variables. Each startup a
config is read once (at module load); changing a variable requires a restart of
the process(es).
General networking
| Variable |
Default |
Purpose |
IPSEITY_HOST |
0.0.0.0 |
Bind address. |
IPSEITY_PORT |
8080 |
Bind port. |
IPSEITY_VERSION |
dev |
Build/release identity; reported by /healthz. Set it to the release tag at deploy time so you can confirm which build a pod is running (e.g. 1.14.2). |
IPSEITY_MAX_REQUEST_BODY_BYTES |
1048576 |
Maximum body size accepted on JSON/form endpoints. |
IPSEITY_API_AUDIENCE |
(empty) |
When set, access tokens must carry this audience or their issuing realm's own managed console client ID to access /api/* and /oidc/userinfo (empty = not checked). Console URL/token realm matching is always enforced. |
OIDC / signing
| Variable |
Default |
Purpose |
IPSEITY_OIDC_ISSUER |
http://localhost:8080 |
Public issuer URL; iss/aud home, and base for the discovery/jwks/redirect origins. May include a path (e.g. /oidc). |
IPSEITY_OIDC_SIGNING_ALG |
RS256 |
Signing algorithm — RS256 (recommended) or legacy HS256. Per-realm keys/rotation require RS256. |
IPSEITY_OIDC_SIGNING_KEY |
dev-signing-key-change-me |
HS256 shared secret (legacy mode only). |
IPSEITY_OIDC_SIGNING_PRIVATE_KEY_PEM |
(empty) |
RS256 private key PEM body. |
IPSEITY_OIDC_SIGNING_PRIVATE_KEY_FILE |
(empty) |
Path to a file containing the RS256 private key PEM. |
IPSEITY_OIDC_SIGNING_SECRET_NAME |
ipseity-oidc-signing-key |
Kubernetes Secret used to persist the (ipseity realm's) RS256 key. |
IPSEITY_OIDC_JWKS_RETIRED_KEYS |
2 |
Retired (rotated) keys per realm kept in /oidc/jwks. |
IPSEITY_OIDC_KEY_ROTATION_DAYS |
0 |
Scheduled signing-key rotation interval in days (0 disables). |
Token lifetimes
| Variable |
Default |
Purpose |
IPSEITY_TOKEN_TTL_SECONDS |
3600 |
Access/id-token lifetime (seconds). |
IPSEITY_AUTH_CODE_TTL_SECONDS |
300 |
Authorization-code lifetime. |
IPSEITY_EXTERNAL_LOGIN_TTL_SECONDS |
900 |
Lifetime of a pending external-provider login (authorize state while the user completes the IdP's own flow). |
IPSEITY_REFRESH_TOKEN_TTL_SECONDS |
2592000 |
Refresh-token lifetime (default 30 days). |
Multi-realm
| Variable |
Default |
Purpose |
IPSEITY_NAMESPACE |
ipseity |
The ipseity realm's Kubernetes namespace (the "ipseity realm"). |
IPSEITY_REALMS |
(empty) |
Comma-separated explicit realm list (overrides namespace discovery; required for memory/dev multi-realm). |
IPSEITY_REALM_LABEL |
ipseity.io/realm |
Label marking a namespace as an additional realm. |
Storage
| Variable |
Default |
Purpose |
IPSEITY_LABEL_APP |
ipseity |
app label on created resources. |
IPSEITY_LABEL_MANAGED_BY |
ipseity |
app.kubernetes.io/managed-by label. |
IPSEITY_K8S_LIST_PAGE_SIZE |
500 |
Pagination page size for ConfigMap list calls. |
IPSEITY_K8S_MAX_CONCURRENT_REQUESTS |
64 |
Bounds concurrent in-flight Kubernetes API requests per process. |
IPSEITY_ENCRYPTION_KEY |
(empty) |
Base64 of a 32-byte AES-256 key for encryption at rest. |
IPSEITY_ENCRYPTION_KEY_FILE |
(empty) |
Path to a file with the base64 AES key (takes precedence over IPSEITY_ENCRYPTION_KEY). |
IPSEITY_ENCRYPTION_KEY_SECRET_NAME |
ipseity-encryption-key |
Kubernetes Secret whose encryption.key data key holds the base64 AES key. |
IPSEITY_REVOCATION_CACHE_TTL_SECONDS |
5 |
Per-process cache of token revocation status (0 disables caching). |
IPSEITY_ENTITY_CACHE_TTL_SECONDS |
5 |
Short-lived per-object/per-listing cache in front of the entity store, collapsing repeated lookups within an API call into memory (0 disables caching). Writes invalidate immediately; cross-replica propagation is bounded by the TTL. |
Authentication policy
| Variable |
Default |
Purpose |
IPSEITY_PBKDF2_ITERATIONS |
600000 |
PBKDF2-SHA256 iteration count for password hashing. |
IPSEITY_AUTH_MAX_ATTEMPTS |
5 |
Failed logins before lockout. |
IPSEITY_AUTH_FAIL_WINDOW_SECONDS |
300 |
Window in which failures are counted. |
IPSEITY_AUTH_LOCKOUT_SECONDS |
900 |
Lockout duration after too many failures. |
IPSEITY_BOOTSTRAP_TOKEN |
(empty) |
Shared secret gating unauthenticated bootstrap mutations. |
Rate limiting
| Variable |
Default |
Purpose |
IPSEITY_RATE_LIMIT_IP_MAX |
0 |
Max requests per source IP in the window (0 = disabled). |
IPSEITY_RATE_LIMIT_IP_WINDOW_SECONDS |
60 |
IP limit window. |
IPSEITY_RATE_LIMIT_CLIENT_MAX |
0 |
Max requests per client_id in the window (0 = disabled). |
IPSEITY_RATE_LIMIT_CLIENT_WINDOW_SECONDS |
60 |
Client limit window. |
Consent
| Variable |
Default |
Purpose |
IPSEITY_CONSENT_TTL_SECONDS |
300 |
Lifetime of a pending consent record before it expires. |
Audit
| Variable |
Default |
Purpose |
IPSEITY_AUDIT_MAX_EVENTS |
1000 |
Recent audit events cached per realm per process for /api/audit; 0 disables caching. All events are still emitted as AUDIT JSON lines to stdout; durable retention is managed in Loki. |
Internal UI client
| Variable |
Default |
Purpose |
IPSEITY_INTERNAL_UI_CLIENT_ID |
ipseity-internal |
Main-realm managed console client ID; tenant IDs derive from its first 24 characters and a stable realm hash. |
IPSEITY_INTERNAL_UI_REDIRECT_URIS |
Exact root, index and main-realm console URLs |
Additional main-console redirect rules; root/index and both explicit main-realm forms are always included. Tenant consoles accept only their own exact URLs. |
Mail
| Variable |
Default |
Purpose |
IPSEITY_MAILER |
(empty) |
Force backend: smtp, console, or noop. Empty auto-picks smtp when IPSEITY_SMTP_HOST is set, else console. |
IPSEITY_SMTP_HOST |
(empty) |
SMTP host (setting it enables SMTP). |
IPSEITY_SMTP_PORT |
587 |
SMTP port. |
IPSEITY_SMTP_USERNAME / IPSEITY_SMTP_PASSWORD |
(empty) |
SMTP auth. |
IPSEITY_SMTP_FROM |
ipseity@localhost |
From address. |
IPSEITY_SMTP_FROM_NAME |
Ipseity |
From display name. |
IPSEITY_SMTP_STARTTLS |
true |
Use STARTTLS. |
IPSEITY_SMTP_SSL |
false |
Use implicit TLS (e.g. port 465). |
IPSEITY_MAIL_VERIFY_TTL_SECONDS |
3600 |
Lifetime of email-verification links. |
Kubernetes environment detection
The Kubernetes backend activates automatically when the pod environment provides
KUBERNETES_SERVICE_HOST and a mounted service-account token. When neither is
present, Ipseity falls back to the in-memory backend (development mode).