Configuration¶
Lakekeeper is configured via environment variables. Settings listed in this page are shared between all projects and warehouses. Previous to Lakekeeper Version 0.5.0 please prefix all environment variables with ICEBERG_REST__ instead of LAKEKEEPER__.
For most deployments, we recommend to set at least the following variables: LAKEKEEPER__BASE_URI, LAKEKEEPER__PG_DATABASE_URL_READ, LAKEKEEPER__PG_DATABASE_URL_WRITE, LAKEKEEPER__PG_ENCRYPTION_KEY.
General¶
| Variable | Example | Description |
|---|---|---|
LAKEKEEPER__ |
https:// |
Base URL where the catalog is externally reachable. Default: https:// |
LAKEKEEPER__ |
true |
If true, the NIL Project ID ("00000000-0000-0000-0000-000000000000") is used as a default if the user does not specify a project when connecting. This option is enabled by default, which we recommend for all single-project (single-tenant) setups. Default: true. |
LAKEKEEPER__ |
system, |
Reserved Namespaces that cannot be created via the REST interface |
LAKEKEEPER__ |
9000 |
Port where the Prometheus metrics endpoint is reachable. Default: 9000 |
LAKEKEEPER__ |
8181 |
Port the Lakekeeper listens on. Default: 8181 |
LAKEKEEPER__ |
postgres |
The secret backend to use. If kv2 (Hashicorp KV Version 2) is chosen, you need to provide additional parameters Default: postgres, one-of: [postgres, kv2] |
LAKEKEEPER__ |
* |
A comma separated list of allowed origins for CORS. |
Persistence Store¶
Currently Lakekeeper supports only Postgres as a persistence store. You may either provide connection strings using PG_DATABASE_URL_READ or use the PG_* environment variables. Connection strings take precedence:
| Variable | Example | Description |
|---|---|---|
LAKEKEEPER__ |
postgres:// |
Postgres Database connection string used for reading. Defaults to LAKEKEEPER__. |
LAKEKEEPER__ |
postgres:// |
Postgres Database connection string used for writing. |
LAKEKEEPER__ |
This is unsafe, |
If LAKEKEEPER__, this key is used to encrypt secrets. It is required to change this for production deployments. |
LAKEKEEPER__ |
10 |
Number of connections in the read pool |
LAKEKEEPER__ |
5 |
Number of connections in the write pool |
LAKEKEEPER__ |
localhost |
Hostname for read operations. Defaults to LAKEKEEPER__. |
LAKEKEEPER__ |
localhost |
Hostname for write operations |
LAKEKEEPER__ |
5432 |
Port number |
LAKEKEEPER__ |
postgres |
Username for authentication |
LAKEKEEPER__ |
password |
Password for authentication |
LAKEKEEPER__ |
iceberg |
Database name |
LAKEKEEPER__ |
require |
SSL mode (disable, allow, prefer, require) |
LAKEKEEPER__ |
/ |
Path to SSL root certificate |
LAKEKEEPER__ |
true |
Enable SQL statement logging |
LAKEKEEPER__ |
true |
Test connections before acquiring from the pool |
LAKEKEEPER__ |
1800 |
Maximum lifetime of connections in seconds |
Vault KV Version 2¶
Configuration parameters if a Vault KV version 2 (i.e. Hashicorp Vault) compatible storage is used as a backend. Currently, we only support the userpass authentication method. Configuration may be passed as single values like LAKEKEEPER__KV2__URL=http://vault.local or as a compound value:
LAKEKEEPER__KV2='{url="http://localhost:1234", user="test", password="test", secret_mount="secret"}'
| Variable | Example | Description |
|---|---|---|
LAKEKEEPER__ |
https:// |
URL of the KV2 backend |
LAKEKEEPER__ |
admin |
Username to authenticate against the KV2 backend |
LAKEKEEPER__ |
password |
Password to authenticate against the KV2 backend |
LAKEKEEPER__ |
kv/data/iceberg |
Path to the secret mount in the KV2 backend |
Task queues¶
Lakekeeper uses task queues internally to remove soft-deleted tabulars and purge tabular files. The following global configuration options are available:
| Variable | Example | Description |
|---|---|---|
LAKEKEEPER__ |
5 | Number of retries before a task is considered failed Default: 5 |
LAKEKEEPER__ |
3600 | Amount of seconds before a task is considered stale and could be picked up by another worker. Default: 3600 |
LAKEKEEPER__ |
10 | Amount of seconds between polling for new tasks. Default: 10 |
Nats¶
Lakekeeper can publish change events to Nats (Kafka is coming soon). The following configuration options are available:
| Variable | Example | Description |
|---|---|---|
LAKEKEEPER__ |
nats:// |
The URL of the NATS server to connect to |
LAKEKEEPER__ |
iceberg |
The subject to publish events to |
LAKEKEEPER__ |
test-user |
User to authenticate against nats, needs LAKEKEEPER__ |
LAKEKEEPER__ |
test-password |
Password to authenticate against nats, needs LAKEKEEPER__ |
LAKEKEEPER__ |
/ |
Path to a file containing nats credentials |
LAKEKEEPER__ |
xyz |
Nats token to use for authentication |
Authentication¶
To prohibit unwanted access to data, we recommend to enable Authentication.
Authentication is enabled if:
LAKEKEEPER__OPENID_PROVIDER_URIis set ORLAKEKEEPER__ENABLE_KUBERNETES_AUTHENTICATIONis set to true
External OpenID and Kubernetes Authentication can also be enabled together. If LAKEKEEPER__OPENID_PROVIDER_URI is specified, Lakekeeper will verify access tokens against this provider. The provider must provide the .well-known/openid-configuration endpoint and the openid-configuration needs to have jwks_uri and issuer defined.
Typical values for LAKEKEEPER__OPENID_PROVIDER_URI are:
- Keycloak:
https://keycloak.local/realms/{your-realm} - Entra-ID:
https://login.microsoftonline.com/{your-tenant-id-here}/v2.0/
Please check the Authentication Guide for more details.
| Variable | Example | Description |
|---|---|---|
LAKEKEEPER__ |
https:// |
OpenID Provider URL. |
LAKEKEEPER__ |
the-client-id-of-my-app |
If set, the aud of the provided token must match the value provided. Multiple allowed audiences can be provided as a comma separated list. |
LAKEKEEPER__ |
https:// |
A comma separated list of additional issuers to trust. The issuer defined in the issuer field of the . is always trusted. LAKEKEEPER__ has no effect if LAKEKEEPER__ is not set. |
LAKEKEEPER__ |
true | If true, kubernetes service accounts can authenticate to Lakekeeper. This option is compatible with LAKEKEEPER__ - multiple IdPs (OIDC and Kubernetes) can be enabled simultaneously. |
Authorization¶
Authorization is only effective if Authentication is enabled. Authorization must not be enabled after Lakekeeper has been bootstrapped! Please create a new Lakekeeper instance, bootstrap it with authorization enabled, and migrate your tables.
| Variable | Example | Description |
|---|---|---|
LAKEKEEPER__ |
allowall |
The authorization backend to use. If openfga is chosen, you need to provide additional parameters. The allowall backend disables authorization - authenticated users can access all endpoints. Default: allowall, one-of: [openfga, allowall] |
LAKEKEEPER__ |
http:// |
OpenFGA Endpoint (gRPC). |
LAKEKEEPER__ |
lakekeeper |
The OpenFGA Store to use. Default: lakekeeper |
LAKEKEEPER__ |
my-api-key |
The API Key used for Pre-shared key authentication to OpenFGA. If LAKEKEEPER__ is set, the API Key is ignored. If neither API Key nor Client ID is specified, no authentication is used. |
LAKEKEEPER__ |
12345 |
The Client ID to use for Authenticating if OpenFGA is secured via OIDC. |
LAKEKEEPER__ |
abcd |
Client Secret for the Client ID. |
LAKEKEEPER__ |
https:// |
Token Endpoint to use when exchanging client credentials for an access token for OpenFGA. Required if Client ID is set |
UI¶
When using the built-in UI which is hosted as part of the Lakekeeper binary, most values are pre-set with the corresponding values of Lakekeeper itself. Customization is typically required if Authentication is enabled. Please check the Authentication guide for more information.
| Variable | Example | Description |
|---|---|---|
LAKEKEEPER__ |
https:// |
OpenID provider URI used for login in the UI. Defaults to LAKEKEEPER__. Set this only if the IdP is reachable under a different URI from the users browser and lakekeeper. |
LAKEKEEPER__ |
lakekeeper-ui |
Client ID to use for the Authorization Code Flow of the UI. Required if Authentication is enabled. Defaults to lakekeeper |
LAKEKEEPER__ |
/callback |
Path where the UI receives the callback including the tokens from the users browser. Defaults to: /callback |
LAKEKEEPER__ |
openid email |
Scopes to request from the IdP. Defaults to openid profile email |
LAKEKEEPER__ |
lakekeeper-api |
Resources to request from the IdP. If not specified, the resource field is omitted (default). |
LAKEKEEPER__ |
/logout |
Path the UI calls when users are logged out from the IdP. Defaults to /logout |
SSL Dependencies¶
You may be running Lakekeeper in your own environment which uses self-signed certificates for e.g. Minio. Lakekeeper is built with reqwest's rustls-tls-native-roots feature activated, this means SSL_CERT_FILE and SSL_CERT_DIR environment variables are respected. If both are not set, the system's default CA store is used. If you want to use a custom CA store, set SSL_CERT_FILE to the path of the CA file or SSL_CERT_DIR to the path of the CA directory. The certificate used by the server cannot be a CA. It needs to be an end entity certificate, else you may run into CaUsedAsEndEntity errors.