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.

VariableDefaultWhat 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_URLjdbc:postgresql://localhost:5432/postgres?currentSchema=credvaneThe 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

VariableDefaultWhat it does
CREDVANE_ADMINS–Emails that are always admins, comma separated. For the first sign-in; read on every request, never stored.
CREDVANE_ADMIN_GROUPScredvane-adminsIdentity provider groups or roles whose members are admins, read from the token's groups, roles and realm_access.roles.
CREDVANE_ORG_NAMECredvaneThe 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_SIGNUPfalseWith 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_EMAILtrueRefuse 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_SECONDS28800How long a sign-in to the web app lasts at most, however active the person is, in seconds (8 hours).
CREDVANE_SESSION_IDLE_SECONDS3600How long a sign-in lasts without a request, in seconds (1 hour).
CREDVANE_CLI_SESSION_LIFETIME12hHow long a credvane login session from the browser lasts; never longer than the organization's exchange token maximum.
CREDVANE_ADMIN_API_RATE_LIMIT_PER_MINUTE300Requests per admin API key per minute before 429. 0 turns the limit off. Counted per instance.
CREDVANE_SOURCE_URLhttps://github.com/commitwisedev/credvaneWhere 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

VariableDefaultWhat 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_HOSTSfalseDevelopment 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_CREDENTIALStrueLet 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_STARTtrueWrite, read back and delete a test value in the platform store at start, and refuse to start if that fails.
MICRONAUT_SERVER_PORT9091The port Credvane listens on.

Background work

Durations are ISO-8601: PT6H is six hours, P1D one day.

VariableDefaultWhat it does
CREDVANE_VALIDATION_INTERVALPT6HHow often active credentials are checked with their source again.
CREDVANE_VALIDATION_PENDING_RETRYPT15MHow 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_INTERVALP1DHow often expiring credentials, tokens and keys are announced (14 and 3 days ahead).
CREDVANE_ACCESS_REVIEWS_REMIND_INTERVALPT6HHow often owners with unanswered access review items are looked for (reminded 7 days and 1 day before the deadline).
CREDVANE_AUDIT_FORWARD_SETTLEPT30SAudit streams send entries older than this.
CREDVANE_AUDIT_FORWARD_INTERVALPT10SHow often each audit stream checks for new entries.
CREDVANE_AUDIT_FORWARD_BATCH500Entries per request to an audit stream.
CREDVANE_AUDIT_FORWARD_BUDGETPT30SHow long one audit stream run keeps sending.
CREDVANE_AUDIT_PURGE_INTERVALP1DHow often audit entries past the retention period are deleted.
CREDVANE_JOBS_ENABLEDtrueRun background work on this instance.
CREDVANE_JOBS_POLL_INTERVAL2sHow often the background runner looks for work.

Platform secret store fields

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

FieldDefaultWhen
ADDRESS–Always, for example https://bao.example.com:8200
NAMESPACE–vault only: Vault Enterprise and HCP Vault
MOUNTsecretThe KV version 2 mount
PREFIXcredvaneThe path under the mount
AUTHtokentoken or approle
TOKEN–With AUTH=token
ROLE_ID–With AUTH=approle
SECRET_ID–With AUTH=approle
APPROLE_MOUNTapproleWith AUTH=approle

AWS Secrets Manager PLATFORM_TYPE=aws

FieldDefaultWhen
REGION–Always
PREFIXcredvane/Secret names start with it
KMS_KEY_ID–Optional customer managed key
AUTHdefaultdefault (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

FieldDefaultWhen
VAULT_URL–Always, for example https://my-vault.vault.azure.net
PREFIXcredvane-Secret names start with it
AUTHclient-secretclient-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_HOSThttps://login.microsoftonline.comSovereign clouds only
PURGEyesPurge deleted values after soft delete: yes or no

Google Secret Manager PLATFORM_TYPE=gcp

FieldDefaultWhen
PROJECT_ID–Always
PREFIXcredvane-Secret ids start with it
AUTHservice-account-keyservice-account-key or metadata (workload identity)
SERVICE_ACCOUNT_KEY–With AUTH=service-account-key: the JSON key itself
ENDPOINThttps://secretmanager.googleapis.comRegional 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.