Configuration
KalamDB loads runtime settings from server.toml and then applies KALAMDB_* environment overrides.
For complete section-by-section tuning, use Advanced Configuration.
Focused guides:
Download Full Sample Config
Run With Config File
Minimal Production-Oriented Example
Notes:
data_pathis the canonical storage root key (notdata_dir).authcan also be written as[authentication](alias supported by config loader).- table flush behavior is set per table via SQL
WITH (FLUSH_POLICY = '...'), not a top-levelstorage.flush_policykey. topics.visibility_timeout_secscontrols when unacknowledged topic consumer claims become available for redelivery.
Add OIDC To server.toml
KalamDB supports one external OIDC provider at a time.
Keep local auth enabled during bootstrap and rollout, then disable it later with [auth.local].enabled = false if you want an OIDC-only deployment.
High-Value Environment Overrides
These are commonly used in Docker and CI:
KALAMDB_SERVER_HOST,KALAMDB_SERVER_PORT,KALAMDB_SERVER_PUBLIC_ORIGIN,KALAMDB_SERVER_WORKERSKALAMDB_DATA_DIRKALAMDB_LOG_LEVEL,KALAMDB_LOG_FORMAT,KALAMDB_LOGS_DIR,KALAMDB_LOG_TO_CONSOLEKALAMDB_JWT_SECRET,KALAMDB_JWT_TRUSTED_ISSUERS,KALAMDB_JWT_EXPIRY_HOURS,KALAMDB_COOKIE_SECURE,KALAMDB_ALLOW_REMOTE_SETUPKALAMDB_AUTH_LOCAL_ENABLEDKALAMDB_AUTH_OIDC_ENABLED,KALAMDB_AUTH_OIDC_DISPLAY_NAME,KALAMDB_AUTH_OIDC_ISSUER,KALAMDB_AUTH_OIDC_CLIENT_ID,KALAMDB_AUTH_OIDC_CLIENT_SECRETKALAMDB_AUTH_OIDC_SCOPES,KALAMDB_AUTH_OIDC_DEVICE_AUTHORIZATION_ENDPOINT,KALAMDB_AUTH_OIDC_BROKER_DEVICE_FLOW_ENABLEDKALAMDB_AUTH_OIDC_AUTO_PROVISION,KALAMDB_AUTH_OIDC_DEFAULT_ROLE,KALAMDB_AUTH_OIDC_AUDIENCEKALAMDB_SECURITY_CORS_ALLOWED_ORIGINS,KALAMDB_SECURITY_TRUSTED_PROXY_RANGESKALAMDB_RATE_LIMIT_AUTH_REQUESTS_PER_IP_PER_SECKALAMDB_TOPIC_VISIBILITY_TIMEOUT_SECS,KALAMDB_TOPIC_DEFAULT_RETENTION_SECONDS,KALAMDB_TOPIC_DEFAULT_RETENTION_MAX_BYTESKALAMDB_CLUSTER_ID,KALAMDB_NODE_ID,KALAMDB_CLUSTER_RPC_ADDR,KALAMDB_CLUSTER_API_ADDR,KALAMDB_CLUSTER_PEERSKALAMDB_RPC_TLS_ENABLED,KALAMDB_RPC_TLS_CA_CERT,KALAMDB_RPC_TLS_SERVER_CERT,KALAMDB_RPC_TLS_SERVER_KEYKALAMDB_ROOT_PASSWORDfor root bootstrap andKALAMDB_TOKIO_WORKER_THREADSfor Tokio runtime sizing
Compatibility aliases still accepted today:
KALAMDB_CLUSTER_NODE_IDforKALAMDB_NODE_IDKALAMDB_VISIBILITY_TIMEOUT_SECSforKALAMDB_TOPIC_VISIBILITY_TIMEOUT_SECSKALAMDB_TRUSTED_PROXY_RANGESforKALAMDB_SECURITY_TRUSTED_PROXY_RANGES
For OTEL-specific override behavior, see OpenTelemetry (OTEL). For IdP issuer setup, see OIDC & Issuer Trust. For the full, complete override table, use Advanced Configuration.
Cluster Override Format
KALAMDB_CLUSTER_PEERS uses this format:
Example:
Last updated on