Documentation · Administration · Set up
Install
Credvane is one container image. It needs a Postgres database, a secret store, an OpenID Connect provider and a TLS-terminating proxy.
What you need
| Component | Why |
|---|---|
| Postgres 14 or later | Specs, owners, history and the audit log. The schema is created and upgraded on start. |
| A secret store | Credential values and Credvane's own secrets: OpenBao, HashiCorp Vault, AWS, Azure or Google. See secret stores. |
| An OpenID Connect provider | Sign-in: Keycloak, Okta, Microsoft Entra ID, Google and others. See sign-in. |
| A reverse proxy with TLS | HTTPS and a stable public address. |
Run it
A Docker Compose file with the database and Credvane. Put your own proxy in front of port 9091.
services:
postgres:
image: postgres:17
environment:
POSTGRES_DB: credvane
POSTGRES_USER: credvane
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes: [postgres-data:/var/lib/postgresql/data]
credvane:
image: ghcr.io/commitwisedev/credvane:latest
ports: ["9091:9091"]
depends_on: [postgres]
env_file: credvane.env
volumes:
postgres-data:And the settings, in credvane.env:
# credvane.env — keep it out of version control.
CREDVANE_PUBLIC_URL=https://credvane.example.com
DATASOURCES_DEFAULT_URL=jdbc:postgresql://postgres:5432/credvane?currentSchema=credvane
DATASOURCES_DEFAULT_USERNAME=credvane
DATASOURCES_DEFAULT_PASSWORD=<the Postgres password>
# Where Credvane keeps its own secrets (see Secret stores).
CREDVANE_SECRET_STORE_PLATFORM_TYPE=vault
CREDVANE_SECRET_STORE_ADDRESS=https://vault.example.com
CREDVANE_SECRET_STORE_TOKEN=<a token for the secret/ mount>
# Sign-in (see Sign-in and provisioning).
OAUTH_ISSUER=https://id.example.com/realms/example
OAUTH_CLIENT_ID=credvane
OAUTH_CLIENT_SECRET=<client secret>
# Who can administer it.
CREDVANE_ADMIN_GROUPS=credvane-admins
CREDVANE_ORG_NAME=Example
CREDVANE_ORG_DOMAIN=example.comdocker compose up -dNothing has a default: no admin, no sign-in client, no store token. Credvane refuses to start without its sign-in settings and a secret store it can write to.
Required settings
| Setting | What it is |
|---|---|
CREDVANE_PUBLIC_URL | The address people use. It must match the sign-in redirect registered with your identity provider, and is the base of links in emails. |
DATASOURCES_DEFAULT_URL, _USERNAME, _PASSWORD | The Postgres connection. Keep ?currentSchema=credvane. |
CREDVANE_SECRET_STORE_PLATFORM_TYPE and its fields | Credvane's own secret store: bao, vault, aws, azure or gcp. |
OAUTH_ISSUER, OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET | The OpenID Connect issuer, client id and client secret, whatever your provider is. |
Every other setting, with its default, is in the configuration reference. Sign-ins are kept on the server, in Postgres, so there is no session signing key to set: logging out or deactivating a person ends their sign-ins at once.
Check the image
ghcr.io/commitwisedev/credvane is built from the source on GitHub: latest follows the main branch, and each release has its version as a tag. Every image is signed and has a build provenance attestation and an SBOM, made by the build workflow with its GitHub identity (Sigstore; there is no key to download). Check one with the GitHub CLI or with cosign before you run it:
gh attestation verify oci://ghcr.io/commitwisedev/credvane:latest -R commitwisedev/credvanecosign verify ghcr.io/commitwisedev/credvane:latest \
--certificate-identity-regexp '^https://github\.com/commitwisedev/credvane/\.github/workflows/docker-image\.yaml@' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comIn production, pin the digest you checked (ghcr.io/commitwisedev/credvane@sha256:…) rather than latest.
Admins and the organization
| Setting | Default | What it is |
|---|---|---|
CREDVANE_ADMIN_GROUPS | credvane-admins | Identity provider groups or roles whose members are admins. |
CREDVANE_ADMINS | none | Emails that are always admins, for the first sign-in. |
CREDVANE_ORG_NAME | Credvane | The organization's name, on first start. |
CREDVANE_ORG_DOMAIN | none | People whose email is on this domain join by signing in. Without it, only people you add, SCIM provisions, and admins get in, unless CREDVANE_OPEN_SIGNUP=true. |
Check it is up
GET /health: overall status;/health/livenessand/health/readinessfor probes. No sign-in needed.- Open
CREDVANE_PUBLIC_URLand sign in as an admin. The first screen is your credentials; admin pages are in the left menu.
Back up and upgrade
- Back up Postgres and the secret store together: one holds references, the other the values.
- To upgrade, run a newer image. The database is upgraded on start.
- Run it behind your load balancer with the liveness and readiness probes above.