This page covers local development, plain Docker, and a hand-rolled Kubernetes deployment. For the recommended continuous-deployment baseline see Orbit Deploy.
Requirements
- Python 3 for local dev, or Docker/Podman for the container.
cryptographyis the only third-party runtime package (the image installspy3-cryptography; locallypip install cryptography).- In production, Kubernetes access (in-cluster service account) is used for persistent storage, signing keys and encryption keys. Without it, Ipseity runs on the ephemeral in-memory backend.
Local development (no Kubernetes)
python3 -m pip install cryptography
python3 -m app.http_server
# then open http://localhost:8080
The service listens on IPSEITY_HOST:IPSEITY_PORT (default 0.0.0.0:8080). With
no Kubernetes environment it uses the in-memory store and an ephemeral signing
key (dev only — tokens don't survive a restart). For multi-realm development set
IPSEITY_REALMS=a,b (the ipseity realm is always included).
Docker
The image is alpine-based, runs as a non-root user (ipseity, uid/gid
10001), and exposes 8080 with a /healthz healthcheck.
docker build -t ipseity:dev .
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
Non-root and Secret volume permissions
When mounting key files via Kubernetes Secret volumes, set the Pod
securityContext so the non-root process can read 0600 files Kubernetes
mounts as root:
securityContext:
runAsUser: 10001
runAsGroup: 10001
fsGroup: 10001
Without fsGroup, a 0600 key file signed by Kubernetes causes a crash-loop
(signing key) or a silent fallback to an ephemeral (non-persistent) encryption
key.
Kubernetes (hand-rolled)
At minimum you need:
- A namespace (or use the ipseity realm's namespace directly).
- A
ServiceAccountwith aClusterRolegrantingget/list/watch/create/ update/patch/deleteonnamespaces,configmapsandsecrets(see kubernetes-resources.md for the exact shape — the same RBAC ships asorbit-deployment/default/010-rbac.yaml). - A
Deploymentrunning the image with the env from the table below-ish, plus aServiceand — if public — anIngressterminating TLS.
Minimum env for a production Pod
env:
- name: IPSEITY_NAMESPACE
value: ipseity
- name: IPSEITY_OIDC_ISSUER
value: "https://ipseity.example.com/oidc"
- name: IPSEITY_SMTP_HOST # enable mail (optional)
valueFrom:
secretKeyRef: { name: turbo-smtp-credentials, key: hostname }
# ... etc — see configuration.md
IPSEITY_OIDC_ISSUER should be the public issuer URL (the host your clients
reach) — it drives service_origin() for discovery/jwks/redirects.
Verify
curl -sf http://localhost:8080/healthz
curl -sf http://localhost:8080/oidc/.well-known/openid-configuration
curl -sf http://localhost:8080/oidc/jwks
curl -sf http://localhost:8080/api/bootstrap/status
Open the console, and either let bootstrap create the initial administrator, or provision from GitOps (see bootstrap-and-gitops.md).
