Every key the Egret server reads, grouped by section, with its environment variable, default and meaning. The source of
truth is the Config struct in crates/egret-config/src/lib.rs; the tables below follow its order. For how the layers
combine and for worked examples, see Configuration.
Configuration is layered: built-in defaults, then egret.toml in the working directory, then environment variables.
The environment wins.
The environment variable for [section] key is EGRET_<SECTION>__<KEY> in upper case, with two underscores between
the section and the key. A key inside a sub-table adds another pair: [workflow.storage] max_file_bytes is
EGRET_WORKFLOW__STORAGE__MAX_FILE_BYTES. A section whose name contains an underscore keeps it: [data_api] public_url is EGRET_DATA_API__PUBLIC_URL, and [rate_limit] login_max_attempts is
EGRET_RATE_LIMIT__LOGIN_MAX_ATTEMPTS.
Lists and tables take TOML syntax in the variable: EGRET_OIDC__SCOPES='["openid","email","profile"]'.
Keys marked required in the Default column have an empty default and a boot-time check; the server refuses to start
without them (see Startup checks).
A key the server does not know is ignored at the top level and in most sections, so a typo leaves the default in
place, but every subcommand logs a WARN for it right after the configuration has passed the
startup checks, with the closest real key when one is within two edits:
ignored environment variable EGRET_SERVER__PORTT: no configuration key has this name (did you mean EGRET_SERVER__PORT?) ignored key server.portt in <path>/egret.toml: no configuration key has this name (did you mean server.port?)
The warning never stops the start. It covers every EGRET_* variable and every key of the configuration file, except
the variables read outside the configuration and the test-harness prefixes
EGRET_TEST_, EGRET_E2E_ and EGRET_ALLOW_. The sub-tables workflow.storage, workflow.kubernetes,
workflow.plugin_host, apps.storage and the entries of workflow.plugin_configurations go further and reject
unknown keys.
Two limiters, both in memory per replica. The window and the lockout are in seconds.
Key
Environment variable
Default
Meaning
login_max_attempts
EGRET_RATE_LIMIT__LOGIN_MAX_ATTEMPTS
5
Failed local sign-in attempts allowed per window, per address and email. Successful attempts do not count, and a success clears the failures.
login_window_secs
EGRET_RATE_LIMIT__LOGIN_WINDOW_SECS
300
Length of the sign-in window.
login_lockout_secs
EGRET_RATE_LIMIT__LOGIN_LOCKOUT_SECS
300
How long a key stays blocked (HTTP 429 with Retry-After) once it reaches the limit.
token_max_attempts
EGRET_RATE_LIMIT__TOKEN_MAX_ATTEMPTS
60
Requests to the machine identity provider's POST /oauth/token (client credentials) and to the token exchange per window, keyed on address and client id. Requests that repeat an already verified secret are not counted.
token_window_secs
EGRET_RATE_LIMIT__TOKEN_WINDOW_SECS
60
Length of the token window.
token_lockout_secs
EGRET_RATE_LIMIT__TOKEN_LOCKOUT_SECS
60
How long a key stays blocked after exceeding the token limit.
The callback URL registered at the provider. It must be on the origin the browser uses, so the session cookie lands on the app. When unset, the default follows server.port (so 8080 by default); set it explicitly when the browser reaches Egret under another name.
scopes
EGRET_OIDC__SCOPES
["openid","email","profile"]
Scopes requested at sign-in.
groups_claim
EGRET_OIDC__GROUPS_CLAIM
groups
Name of the token claim that lists the user's groups.
post_login_redirect
EGRET_OIDC__POST_LOGIN_REDIRECT
/
Where the browser goes after a successful sign-in.
catalog_audience
EGRET_OIDC__CATALOG_AUDIENCE
egret-catalog
The aud value the embedded catalog requires in an engine JWT.
Egret's own machine identity provider: the issuer of the tokens it mints for engines, the catalog and Data API clients.
This is a different issuer from oidc, which describes the external provider people sign in with.
Key
Environment variable
Default
Meaning
issuer
EGRET_IDP__ISSUER
unset (falls back to catalog.public_url)
The iss of every token Egret mints and the issuer of /.well-known/openid-configuration. It must be a name clients outside the cluster can resolve. A trailing slash is trimmed. Changing it strands StarRocks engines already provisioned, because their security integration compares the old issuer byte for byte.
Base64 key of at least 64 bytes that encrypts the OIDC state cookie. The value in .env.example is public. Generate your own with head -c 64 /dev/urandom | base64.
Base64 key of at least 32 bytes used for AES-256-GCM encryption of stored credentials. Empty disables sealing: registering a database or storage connection with a secret then fails, and so does starting a workflow that declares a SECRET input (400). If set, it must decode to 32 bytes or more.
Run the catalog in the server process. Requires warehouse, auth_token and the storage credentials.
warehouse
EGRET_CATALOG__WAREHOUSE
s3://warehouse
Warehouse location of the default catalog.
auth_token
EGRET_CATALOG__AUTH_TOKEN
empty (required with enabled)
Static token for catalog administration.
public_url
EGRET_CATALOG__PUBLIC_URL
http://localhost:<server.port> (an unset or blank value follows server.port)
Base origin of this server, without /catalog, advertised to catalog clients. Engines in a cluster resolve it, so in Kubernetes it is a Service DNS name. It is also the fallback for idp.issuer.
system_user
EGRET_CATALOG__SYSTEM_USER
egret-system
Stable name of the in-process principal that bootstraps the catalog's default project. Keep it stable across deploys; changing it creates a different system administrator.
sts_token_validity_seconds
EGRET_CATALOG__STS_TOKEN_VALIDITY_SECONDS
900
How long the S3 credentials the catalog vends on a table load stay valid, in seconds: 900 (the STS minimum) to 43200 (the STS maximum). egret writes it into every S3 warehouse at creation, and into the existing ones at every start (log line vended credential lifetime seconds=900 warehouses_changed=N). A credential outlives a revoked grant by up to this long (KI-315). See Storage credentials follow the grant.
Serve the Ranger-compatible policy service that engine plugins poll, and turn on policy administration. See Engines and Ranger setup.
auth_mode
EGRET_RANGER__AUTH_MODE
required
required: every request under /ranger needs an engine credential or the operator token. anonymous: requests without a credential are served, for a throwaway local stack only.
auth_token
EGRET_RANGER__AUTH_TOKEN
empty
The operator's bearer token for the policy service. Empty accepts no bearer. Engines do not use it: each presents its own credential.
Serve the OPA decision routes for Trino, on their own listener (listen), and allow a policy profile to switch to OPA. On by default; profiles stay on Ranger until an operator switches them. Set false to turn it off. Needs ranger.enabled. See Trino on OPA.
batch_body_limit_bytes
EGRET_GOVERNANCE__OPA__BATCH_BODY_LIMIT_BYTES
25165824 (24 MiB)
Largest request body the OPA /batch route accepts. Trino sends a listing of a whole schema as one batch; a larger body is answered 413 and the query fails. From 4194304 (4 MiB) to 67108864 (64 MiB); every other OPA route keeps 4 MiB.
body_read_timeout_ms
EGRET_GOVERNANCE__OPA__BODY_READ_TIMEOUT_MS
5000
How long an admitted OPA request may take to send its whole body before it is answered 408 and its connection closed. From 1 to 60000.
listen
EGRET_GOVERNANCE__OPA__LISTEN
0.0.0.0:8082
Where the OPA listener binds, host:port. It serves only the OPA routes; port 8080 answers 404 for /opa/. Used only when enabled and ranger.enabled are both on. Then Egret refuses to start when the port equals server.port or, with apps.origin set, the apps listener's port; otherwise it is not checked.
engine_url
EGRET_GOVERNANCE__OPA__ENGINE_URL
unset
Base URL engines use for OPA. Unset: catalog.public_url (or the Docker callback URL; http://egret:8080 if unset) with its port replaced by the port of listen. Set it when public_url is not Egret's in-cluster address, for example an ingress hostname. With enabled, it must be an absolute http(s) URL with a host.
How Add engine provisions a query engine. Everything under docker applies only when provisioner is docker. See Engines and Ranger setup.
Key
Environment variable
Default
Meaning
provisioner
EGRET_ENGINES__PROVISIONER
auto
auto uses Kubernetes when Egret runs in a cluster or finds a kubeconfig, and never picks docker. kubernetes, docker or none choose a backend explicitly. With none, or auto and no cluster, Add engine is disabled.
docker.host
EGRET_ENGINES__DOCKER__HOST
unix:///var/run/docker.sock
The Docker API: unix://, tcp:// or http://.
docker.network
EGRET_ENGINES__DOCKER__NETWORK
empty
The network engine containers join. Required with docker.
docker.project
EGRET_ENGINES__DOCKER__PROJECT
empty
Value of the egret.project label on every engine container. Egret never touches a container carrying another project. Required with docker.
docker.callback_url
EGRET_ENGINES__DOCKER__CALLBACK_URL
unset
How engine containers reach Egret, when that differs from the default derived from catalog.public_url. An empty value is refused.
docker.allowed_images
EGRET_ENGINES__DOCKER__ALLOWED_IMAGES
["trinodb/trino"]
Image repositories (tag excluded) an engine may use, as a JSON array. Must not be empty.
Data API access-log rows older than this are pruned hourly. 0 means do not prune.
public_url
EGRET_DATA_API__PUBLIC_URL
unset (falls back to the idp issuer, then catalog.public_url)
Base URL a consumer outside the cluster uses. It is stamped into the generated OpenAPI document and the token endpoint handed to a new client.
replicas
EGRET_DATA_API__REPLICAS
1
How many replicas of the backend run. The Helm chart sets it. Above 1 with no shared_store_url, the server refuses to start.
shared_store_url
EGRET_DATA_API__SHARED_STORE_URL
unset
Redis or Valkey URL that holds the Data API rate-limit buckets and response cache across replicas, for example redis://valkey:6379/1. Unset means process-local state.
Switches and limits for the workflow engine. Both loops default to off.
Key
Environment variable
Default
Meaning
webhooks_enabled
EGRET_WORKFLOW__WEBHOOKS_ENABLED
false
Mount the anonymous webhook routes (POST /workflows/v1/{ws}/executions/webhook/...). The key in the URL is the only credential. When false the routes are not mounted at all.
worker_enabled
EGRET_WORKFLOW__WORKER_ENABLED
false
Start the claim loop and the lease reaper. With it off, an execution is created and nothing advances it.
scheduler_enabled
EGRET_WORKFLOW__SCHEDULER_ENABLED
false
Start the trigger loop, so cron: schedule and flow triggers fire. It needs the worker on to be useful.
tick_interval_secs
EGRET_WORKFLOW__TICK_INTERVAL_SECS
1
Seconds between claim ticks.
batch
EGRET_WORKFLOW__BATCH
8
Most task runs one claim tick takes.
max_concurrent_runs
EGRET_WORKFLOW__MAX_CONCURRENT_RUNS
8
Most claimed task runs one replica runs at the same time. A tick claims at most the free slots, so a slow task holds one slot and not the whole replica. 0 is refused at start.
reaper_interval_secs
EGRET_WORKFLOW__REAPER_INTERVAL_SECS
60
Seconds between reaper passes.
working_timeout_s
EGRET_WORKFLOW__WORKING_TIMEOUT_S
3600
How long a lease may go unreleased before the reaper hands the run back. Too short and a slow live task is run twice; too long and a task of a dead replica stays stuck.
container_default_timeout_s
EGRET_WORKFLOW__CONTAINER_DEFAULT_TIMEOUT_S
3600
Timeout of a script or container task that declares none. Other task types run unbounded.
kill_poll_ms
EGRET_WORKFLOW__KILL_POLL_MS
5000
Milliseconds between a running task's checks for a kill request. Minimum 100.
trigger_interval_secs
EGRET_WORKFLOW__TRIGGER_INTERVAL_SECS
1
Seconds between scheduler passes.
log_retention_days
EGRET_WORKFLOW__LOG_RETENTION_DAYS
30
Stored task log lines older than this are deleted hourly. 0 keeps them for ever.
storage_retention_days
EGRET_WORKFLOW__STORAGE_RETENTION_DAYS
30
Execution files are kept this long after the execution ends. 0 keeps them for ever.
kept_container_retention_days
EGRET_WORKFLOW__KEPT_CONTAINER_RETENTION_DAYS
7
How long a container or pod kept with taskRunner.delete: false outlives its run. 0 keeps it for ever.
log_run_max_lines
EGRET_WORKFLOW__LOG_RUN_MAX_LINES
10000
Most log lines stored per task-run attempt. Past it the task keeps running and one warning line says how many were withheld.
log_run_max_bytes
EGRET_WORKFLOW__LOG_RUN_MAX_BYTES
10485760
Most bytes of log text stored per task-run attempt (10 MiB).
container_runner
EGRET_WORKFLOW__CONTAINER_RUNNER
none
Where script tasks run: none (no script handler), docker (local development only) or kubernetes (one pod per task-run attempt). Any value other than none requires the storage credentials and plugin_host.image.
plugin_configurations
EGRET_WORKFLOW__PLUGIN_CONFIGURATIONS
empty list
Per-plugin settings in Kestra's kestra.plugins.configurations shape: a list of {type, values}. The only values read are allowed-images (glob patterns for script task images; empty allows no image) and, on the kestra entry, allowed-types (glob patterns for plugin task types).
Repoint the JDBC driver jar a StarRocks jdbc catalog downloads, at an internal mirror or a file:/// path in the FE image. <dialect> is postgresql, mysql, mariadb, oracle, sqlserver or clickhouse.
The Data Apps query gateway and the pods that run marimo. See Data Apps.
Key
Environment variable
Default
Meaning
max_rows
EGRET_APPS__MAX_ROWS
10000
Row cap per gateway query.
timeout_secs
EGRET_APPS__TIMEOUT_SECS
60
Per-query engine timeout.
session_idle_secs
EGRET_APPS__SESSION_IDLE_SECS
1800
An app token dies after this long unused. Must not exceed session_absolute_secs.
session_absolute_secs
EGRET_APPS__SESSION_ABSOLUTE_SECS
28800
An app token dies this long after minting.
rate_max
EGRET_APPS__RATE_MAX
20
Gateway calls allowed per token per window.
rate_window_secs
EGRET_APPS__RATE_WINDOW_SECS
2
Window length; a 429 holds that token for one full window.
origin
EGRET_APPS__ORIGIN
empty
Origin where marimo is served, for example https://apps.egret.example. A sibling subdomain, never another port. Empty disables the iframe (the ticket endpoint answers 503).
egret_origin
EGRET_APPS__EGRET_ORIGIN
empty
Egret's own browser-facing origin, the only one allowed to frame the apps origin. Required when origin is set, and must differ from it.
ticket_ttl_secs
EGRET_APPS__TICKET_TTL_SECS
30
How long a one-time ticket may wait to be redeemed.
cookie_ttl_secs
EGRET_APPS__COOKIE_TTL_SECS
28800
Lifetime of the apps-origin cookie.
listen
EGRET_APPS__LISTEN
0.0.0.0:8083
Where the apps host listens. A separate listener from the API, and clear of the dev Keycloak port (8081).
none (no pods), subprocess (local development, one marimo process per author) or kubernetes (one hardened pod per author per workspace). Anything but none needs apps.origin and callback_url.
ready_timeout_secs
EGRET_APPS__POD__READY_TIMEOUT_SECS
60
How long a request waits for a cold pod.
idle_secs
EGRET_APPS__POD__IDLE_SECS
1800
An edit pod unused this long is stopped. At least 60.
callback_url
EGRET_APPS__POD__CALLBACK_URL
empty
Base URL pods call back to, Egret's in-cluster Service, for example http://egret:8080.
namespace
EGRET_APPS__POD__NAMESPACE
egret-apps
Kubernetes namespace of the pods.
image
EGRET_APPS__POD__IMAGE
egret-apps:dev
Pod image.
image_pull_policy
EGRET_APPS__POD__IMAGE_PULL_POLICY
IfNotPresent
Kubernetes image pull policy.
cpu_request, mem_request
EGRET_APPS__POD__CPU_REQUEST, ..._MEM_REQUEST
250m, 512Mi
Pod resource requests.
cpu_limit, mem_limit
EGRET_APPS__POD__CPU_LIMIT, ..._MEM_LIMIT
1000m, 2Gi
Pod resource limits.
pull_secret
EGRET_APPS__POD__PULL_SECRET
unset
Existing dockerconfigjson Secret for pulling the image.
command
EGRET_APPS__POD__COMMAND
[]
subprocess launcher: the command that starts the launcher entrypoint.
work_dir
EGRET_APPS__POD__WORK_DIR
/tmp/egret-apps
subprocess launcher: parent directory of each pod's working directory.
config_dir
EGRET_APPS__POD__CONFIG_DIR
empty
subprocess launcher: the locked marimo configuration directory.
venv_shim_dir
EGRET_APPS__POD__VENV_SHIM_DIR
empty
subprocess launcher: the venv shim directory run pods need.
run_idle_secs
EGRET_APPS__POD__RUN_IDLE_SECS
300
A run pod (a viewer of a published version) unused this long is stopped.
run_session_cap
EGRET_APPS__POD__RUN_SESSION_CAP
8
Open sessions (tabs) of the one viewer a run pod serves before a new one gets 503. At least 1.
run_kernel_mode
EGRET_APPS__POD__RUN_KERNEL_MODE
thread
thread or forced_ipc. forced_ipc is not a supported production path.
Email of the bootstrap administrator. Default admin@egret.local.
EGRET_ADMIN_PASSWORD
egret init
Password of the bootstrap administrator. It is not printed (init says taken from EGRET_ADMIN_PASSWORD (not shown)). If unset or empty, a random one is generated and printed once.
EGRET_ENGINE_TLS_INSECURE
Query connectors and the engine monitor
1, true or yes skip TLS certificate verification when connecting to engines. Development only.
EGRET_WRITE_PROPERTY_TREATMENT
The workflow test-corpus generator
A development switch, not used by a running server.
DATABASE_URL
sqlx tooling and the test suite
Used by compile-time query checking and tests, not by the server (which reads EGRET_DATABASE__URL). .env.example sets both.
egret serve validates the configuration before it listens, and every other subcommand that touches the database runs the
same check. A failure prints one line and exits. These are the rules:
Rule
Message
oidc.enabled needs security.secret_key (base64, at least 64 bytes)
Always: catalog.sts_token_validity_seconds is 900 to 43200
catalog.sts_token_validity_seconds must be between 900 and 43200, got ...
secrets.master_key, when set, must decode to 32 bytes or more
secrets.master_key must be base64 of >=32 bytes
Always: storage.bucket, access_key and secret_key
the apps API requires [storage] bucket, access_key, secret_key ...
engine.max_rows and query_timeout_secs are at least 1; preview_rows is at most max_rows
engine.max_rows and engine.query_timeout_secs must be >= 1
workflow.kill_poll_ms is at least 100
workflow.kill_poll_ms: ... is below the minimum 100
workflow.max_concurrent_runs is at least 1
workflow.max_concurrent_runs must be >= 1 (EGRET_WORKFLOW__MAX_CONCURRENT_RUNS)
workflow.container_runner other than none needs the storage credentials and plugin_host.image
workflow.container_runner other than none requires [storage] ...
apps.origin set: both origins are scheme://host[:port], differ from each other, and the TTLs are at least 1
apps.origin must differ from apps.egret_origin ...
apps.pod.launcher is none, subprocess or kubernetes, with the keys each needs
apps.pod.launcher must be none, subprocess or kubernetes ...
More than one data_api.replicas needs data_api.shared_store_url
The server refuses to start.
The storage credentials are required even if you never use object storage
The apps API stores draft and version content in the storage bucket regardless of the pod launcher, so the check applies
on every start, including egret migrate and egret init. The repository's .env.example sets them to the dev compose's
RustFS credentials, and a test keeps it passing these checks. See the Quick start.