Controlled self-hosted installation
Use the versioned release, external data services and persistent custody; do not bootstrap production from an unpinned latest image.
Installation prerequisites
Clavex 3.0.1 is published. Use the original public GHCR packages below and your operator-provisioned network. The published OCI images target Linux/amd64; other native targets are listed on the release page. Pin image digests when promoting to production.
export BACKEND_IMAGE=ghcr.io/clavex-eu/clavex:3.0.1
export FRONTEND_IMAGE=ghcr.io/clavex-eu/clavex-frontend:3.0.1
# CLAVEX_NETWORK names your existing approved deployment network.
Provision PostgreSQL (the accepted rehearsals include 16.13 and 17), Redis, authenticated connections, durable volumes, a migration owner, a nonsuperuser runtime login and separate recovery custody. The runtime must not inherit database-owner/superuser or recovery-operator authority. Review the authentic role/default-grant migrations; do not grant broad privileges merely to make startup pass.
Maintain protected env/config files and existing key custody. Typical keys include CLAVEX_DATABASE_MODE=external, CLAVEX_DATABASE_DSN, CLAVEX_REDIS_ADDR, required Redis credentials, CLAVEX_AUTH_ADMIN_SECRET (at least 32 characters), canonical CLAVEX_AUTH_ISSUER_BASE, signing-key references and the installation encryption key where configured. Do not print these values or commit them. The canonical issuer is not inferred from arbitrary browser/proxy headers.
Migrate and seed a fresh installation
# migration.env / seed.env / runtime.env are protected operator-provisioned files.
docker run --rm --network "$CLAVEX_NETWORK" \
--env-file migration.env --entrypoint /migrate "$BACKEND_IMAGE" up
docker run --rm --network "$CLAVEX_NETWORK" \
--env-file seed.env --entrypoint /seed "$BACKEND_IMAGE" \
--org example --email admin@example.test --superadmin
Supply CLAVEX_SEED_PASSWORD through approved secret custody, not shell history. --superadmin is an explicit initial platform-owner bootstrap, not a routine user role. Seed only a fresh installation; do not reset existing users or reseed during upgrade. There is no claimed browser installation wizard or magical config-generating entrypoint.
The current public target is 217, dirty=false. Do not use private numbering. Migration commands require migration custody; do not put that credential into the runtime env file. Existing installations must follow the upgrade/recovery guide.
Run the backend and matching console
Mount existing read-authorized key/config references for the nonroot image. Preserve custody across restart. Use CLAVEX_RUN_MIGRATIONS=false once controlled migration has completed; never mix an old writer with a schema upgrade.
docker run -d --name clavex --network "$CLAVEX_NETWORK" \
--env-file runtime.env --env CLAVEX_RUN_MIGRATIONS=false \
--mount type=bind,src="$PWD/custody",dst=/config,readonly \
--publish 127.0.0.1:8080:8080 "$BACKEND_IMAGE"
docker run -d --name clavex-console --network "$CLAVEX_NETWORK" \
--publish 127.0.0.1:8081:8080 "$FRONTEND_IMAGE"
Those loopback bindings are not a production HTTPS ingress. Configure your approved TLS gateway. The console's relative /api/v1 must reach the backend on the console origin, while static pages/assets reach the console. Keep all tenant protocol/issuer callbacks on their backend route, not an SPA fallback. The chart provides separate issuer/backend and console routes with this API split.
For a separate API host, set CLAVEX_API_ORIGIN=https://id.example.test on the same console image, or Helm frontend.apiOrigin. Configure exact CORS origins, secure cookie scope and CSP permissions; do not bypass them. The runtime setting is public config, not credentials. Build-time VITE_API_URL is not used.
Acceptance before opening access
Compose health and versioned distribution files
The distroless backend contains no shell, wget/curl or health-probe command. The corrected Compose asset omits the unsupported in-container healthcheck: a running container alone is not readiness. Use the existing HTTP endpoints from the host or monitoring system; Helm continues to use native Kubernetes HTTP probes.
curl --fail --silent --show-error http://127.0.0.1:8080/healthz
curl --fail --silent --show-error http://127.0.0.1:8080/readyz
The corrected Compose asset and installer asset are distributed with SHA256 checksums. Download and review the installer before running it with Bash; it waits for /healthz from the host. The original v3.0.1 source tag is immutable; its older Compose file still contains the obsolete probe. These convenience files do not replace the controlled production migration, runtime permissions and custody requirements above.
Verify /healthz, /readyz, correct images/schema, DB/Redis access, retained custody/licence and fresh human console authentication. Create a test application with an exact registered callback and PKCE; verify discovery/JWKS, authorization, refresh/logout, authorized administration and audit. Readiness alone is insufficient. New providers and the WIT/Wallet Federation experiments are not silently enabled.
Self-hosting controls your chosen infrastructure and data placement; it is not automatic security, certification or regulatory compliance. Editions · Automation.
Clavex 3.0.1 is publicly available. Release scope · Evidence and limitations · Editions and licensing