Documentation · Administration · Set up
Configuration reference
Every setting Credvane reads, with its default. Credvane is configured entirely from environment variables; nothing ships with a secret or an admin. One instance serves one organization.
How settings work
- Set them as environment variables on the container. Credvane does not read a
.env file itself; Docker Compose's env_file does that for you. - A dash (–) means there is no default. Secrets, the sign-in client and admins never have one.
- Do not set
MICRONAUT_ENVIRONMENTS. Its dev value is for working on Credvane itself and opens internal endpoints.
Required
Credvane does not start, or cannot be signed in to, without these.
| Variable | Default | What it does |
|---|
OAUTH_ISSUER | – | The OpenID Connect issuer URL, whatever the provider. Its discovery document must be reachable from Credvane. |
OAUTH_CLIENT_ID | – | The client id registered for Credvane. |
OAUTH_CLIENT_SECRET | – | The client secret. |
CREDVANE_PUBLIC_URL | – | The address people use, such as https://credvane.example.com. Marks the session cookie Secure behind a TLS proxy and is the base of links in emails. Without it, emails have no links. |
DATASOURCES_DEFAULT_URL | jdbc:postgresql://localhost:5432/postgres?currentSchema=credvane | The Postgres connection. Keep ?currentSchema=credvane. |
DATASOURCES_DEFAULT_USERNAME | – | The Postgres user. It needs rights to create and upgrade the credvane schema. |
DATASOURCES_DEFAULT_PASSWORD | – | The Postgres password. |
CREDVANE_SECRET_STORE_PLATFORM_TYPE | – | Credvane's own secret store: bao, vault, aws, azure or gcp. Its fields are below. |
Organization and sign-in
| Variable | Default | What it does |
|---|
CREDVANE_ADMINS | – | Emails that are always admins, comma separated. For the first sign-in; read on every request, never stored. |
CREDVANE_ADMIN_GROUPS | credvane-admins | Identity provider groups or roles whose members are admins, read from the token's groups, roles and realm_access.roles. |
CREDVANE_ORG_NAME | Credvane | The organization's name, on first start. After that, Settings → General owns it. |
CREDVANE_ORG_DOMAIN | – | On first start: people whose email is on this domain join by signing in. After that, Settings → General owns it. |
CREDVANE_OPEN_SIGNUP | false | With no domain set, whether anyone your identity provider lets in joins by signing in. Off: only people an admin added, SCIM provisioned, bootstrap admins and admin-group members get in. Leave it off with Google, Entra ID's common endpoint or any provider that lets anyone sign in. |
CREDVANE_REQUIRE_VERIFIED_EMAIL | true | Refuse a sign-in whose email_verified is not true. Turn off only for a provider that cannot send it and whose emails are verified. |
CREDVANE_SESSION_SECONDS | 28800 | How long a sign-in to the web app lasts at most, however active the person is, in seconds (8 hours). |
CREDVANE_SESSION_IDLE_SECONDS | 3600 | How long a sign-in lasts without a request, in seconds (1 hour). |
CREDVANE_CLI_SESSION_LIFETIME | 12h | How long a credvane login session from the browser lasts; never longer than the organization's exchange token maximum. |
CREDVANE_ADMIN_API_RATE_LIMIT_PER_MINUTE | 300 | Requests per admin API key per minute before 429. 0 turns the limit off. Counted per instance. |
CREDVANE_SOURCE_URL | https://github.com/commitwisedev/credvane | Where the Source link at the bottom of the app's menu points. If you run a modified Credvane for other people, the AGPL-3.0 (section 13) asks you to offer them its source: point this at your modified code. |
Network and secret stores
| Variable | Default | What it does |
|---|
CREDVANE_ALLOWED_PRIVATE_HOSTS | – | Host names or CIDRs, comma separated, that sources, issuers, secret stores, SMTP servers and audit streams may reach on private or local addresses, for example gitlab.internal.example.com,10.20.0.0/16. Plain http and unencrypted SMTP or syslog are allowed to the listed names. Link-local addresses and cloud metadata services are refused even when listed. |
CREDVANE_SOURCES_ALLOW_PRIVATE_HOSTS | false | Development and tests only: every private address, plain http, and unencrypted SMTP and syslog. Link-local and metadata addresses stay refused. In production, list hosts in CREDVANE_ALLOWED_PRIVATE_HOSTS instead. |
CREDVANE_SECRET_STORES_AMBIENT_CREDENTIALS | true | Let the organization's own store sign in as the identity Credvane runs as (AWS default chain, Azure workload or managed identity, Google metadata). |
CREDVANE_SECRET_STORE_PLATFORM_VERIFY_ON_START | true | Write, read back and delete a test value in the platform store at start, and refuse to start if that fails. |
MICRONAUT_SERVER_PORT | 9091 | The port Credvane listens on. |
Background work
Durations are ISO-8601: PT6H is six hours, P1D one day.
| Variable | Default | What it does |
|---|
CREDVANE_VALIDATION_INTERVAL | PT6H | How often active credentials are checked with their source again. |
CREDVANE_VALIDATION_PENDING_RETRY | PT15M | How often a credential that could not be checked yet is tried again, after quick retries at 30 seconds, 1 and 2 minutes. |
CREDVANE_NOTIFICATIONS_SWEEP_INTERVAL | P1D | How often expiring credentials, tokens and keys are announced (14 and 3 days ahead). |
CREDVANE_ACCESS_REVIEWS_REMIND_INTERVAL | PT6H | How often owners with unanswered access review items are looked for (reminded 7 days and 1 day before the deadline). |
CREDVANE_AUDIT_FORWARD_SETTLE | PT30S | Audit streams send entries older than this. |
CREDVANE_AUDIT_FORWARD_INTERVAL | PT10S | How often each audit stream checks for new entries. |
CREDVANE_AUDIT_FORWARD_BATCH | 500 | Entries per request to an audit stream. |
CREDVANE_AUDIT_FORWARD_BUDGET | PT30S | How long one audit stream run keeps sending. |
CREDVANE_AUDIT_PURGE_INTERVAL | P1D | How often audit entries past the retention period are deleted. |
CREDVANE_JOBS_ENABLED | true | Run background work on this instance. |
CREDVANE_JOBS_POLL_INTERVAL | 2s | How often the background runner looks for work. |
Each field is set as CREDVANE_SECRET_STORE_<FIELD>, for example CREDVANE_SECRET_STORE_ADDRESS. Prefer the identity Credvane runs as (AWS roles, Azure workload identity, Google metadata) or AppRole over a long-lived key. More on secret stores.
OpenBao and HashiCorp Vault PLATFORM_TYPE=bao, vault
| Field | Default | When |
|---|
ADDRESS | – | Always, for example https://bao.example.com:8200 |
NAMESPACE | – | vault only: Vault Enterprise and HCP Vault |
MOUNT | secret | The KV version 2 mount |
PREFIX | credvane | The path under the mount |
AUTH | token | token or approle |
TOKEN | – | With AUTH=token |
ROLE_ID | – | With AUTH=approle |
SECRET_ID | – | With AUTH=approle |
APPROLE_MOUNT | approle | With AUTH=approle |
AWS Secrets Manager PLATFORM_TYPE=aws
| Field | Default | When |
|---|
REGION | – | Always |
PREFIX | credvane/ | Secret names start with it |
KMS_KEY_ID | – | Optional customer managed key |
AUTH | default | default (the AWS credential chain) or access-key |
ACCESS_KEY_ID | – | With AUTH=access-key |
SECRET_ACCESS_KEY | – | With AUTH=access-key |
ROLE_ARN | – | Optional role to assume |
ENDPOINT | – | Optional VPC endpoint |
Azure Key Vault PLATFORM_TYPE=azure
| Field | Default | When |
|---|
VAULT_URL | – | Always, for example https://my-vault.vault.azure.net |
PREFIX | credvane- | Secret names start with it |
AUTH | client-secret | client-secret, workload-identity or managed-identity |
TENANT_ID | – | With AUTH=client-secret |
CLIENT_ID | – | With AUTH=client-secret |
CLIENT_SECRET | – | With AUTH=client-secret |
MANAGED_CLIENT_ID | – | With AUTH=managed-identity, for a user-assigned identity |
AUTHORITY_HOST | https://login.microsoftonline.com | Sovereign clouds only |
PURGE | yes | Purge deleted values after soft delete: yes or no |
Google Secret Manager PLATFORM_TYPE=gcp
| Field | Default | When |
|---|
PROJECT_ID | – | Always |
PREFIX | credvane- | Secret ids start with it |
AUTH | service-account-key | service-account-key or metadata (workload identity) |
SERVICE_ACCOUNT_KEY | – | With AUTH=service-account-key: the JSON key itself |
ENDPOINT | https://secretmanager.googleapis.com | Regional endpoints only |
Any other property
Every property can be set from the environment: upper-case it and replace . and - with _. credvane.validation.interval becomes CREDVANE_VALIDATION_INTERVAL. The tables above already use that form.