Skip to content

Framework configuration keys

The application framework (Java, with a Go port) keeps service settings and connections in configuration and the things an application can have many of (rate limiters, background loops, lock stores, named HTTP clients, and which driver backs each) in code. This page lists every key the framework itself declares. The rule for what belongs where, and how to declare a setting of your own, is in the framework’s configuration guide.

Every setting is declared once, in code, by the module that reads it. Unknown keys, missing required values and unparseable values fail start-up with the key, the source it came from and the expected type; a secret’s text is never included in an error.

Lowest to highest, a later source wins key by key:

  1. Defaults declared with the setting.
  2. config/application.yaml under the working directory (or the directory you set).
  3. config/application-<env>.yaml, where <env> is APP_ENV (default local).
  4. config/secrets.local.yaml, read only when APP_ENV is local or test; git-ignored.
  5. Environment variables.

The key upper-cased, with . and - replaced by _: http.port is HTTP_PORT, flowcatalyst.client-secret is FLOWCATALYST_CLIENT_SECRET. The environment is never scanned; only names derived from declared keys and from instance sections are looked up. Because ., - and _ all become _, two keys that produce the same variable (a.b-c and a.b_c) fail start-up; rename one.

Type Accepts
string, integer, long As written.
boolean true or false only.
duration 500ms, 30s, 5m, 2h, 1d, or ISO 8601 such as PT30S.
URI / URL Any URI (Java) / absolute URL (Go).
string list A YAML list, or comma-separated text.
enum The constant names.
secret Text, kept in a Secret; never logged.
Key Type Default Meaning
app.shutdown.drain duration 10s Time each shutdown step may take before it is logged as overrun.
app.health.timeout duration 2s Time each health check may take before it reports TimedOut.
app.health.critical string list empty Names of health checks that decide readiness, whatever their module asked for.
app.health.informational string list empty Checks that are reported but never make the application not ready.
app.metrics.driver memory or noop memory The metrics driver: memory (readable, with a Prometheus endpoint) or noop.
app.metrics.max-series integer, 1 to 100 000 1000 Most series one metric may hold; further label combinations are dropped.

APP_ENV (not a declared key) selects the environment, default local.

Key Type Default Meaning
http.host string 0.0.0.0 Address the server binds to.
http.port integer, 0 to 65535 8080 Port; 0 picks any free port.
http.max-body-bytes long 5242880 (5 MiB) Largest request body accepted; larger requests get 413.
http.request-timeout duration 30s Idle timeout while a request is read or a response written.
http.shutdown-grace duration app.shutdown.drain Time in-flight requests may take on shutdown.
http.metrics.enabled boolean false Mount the Prometheus endpoint.
http.metrics.path string /metrics Its path: literal segments, no trailing slash.
http.metrics.bearer-token secret unset When set, the endpoint requires Authorization: Bearer <token>.
http.sse.heartbeat duration the event-stream default How long a server-sent-event stream may be idle before it sends a heartbeat comment. Java only.
http.cors.allowed-origins string list empty (CORS off) Setting it turns CORS on for every response.
http.cors.allowed-methods string list the default method set Methods a preflight may ask for.
http.cors.allowed-headers string list the default header set Request headers a preflight may ask for.
http.cors.exposed-headers string list the default exposed set Response headers a cross-origin page may read.
http.cors.max-age duration 10m How long a browser may cache a preflight answer.

The framework never answers Access-Control-Allow-Credentials; browsers on other origins use a bearer token or push tickets, not cookies.

For applications that use the platform as their sign-in provider. Everything else about sessions is set in code on the module’s builder.

Key Type Required Meaning
auth.issuer URI / string yes The platform’s base URL; the issuer of its tokens.
auth.client-id string yes The OAuth client id of this application’s login client.
auth.client-secret secret for a CONFIDENTIAL client The login client’s secret; leave unset for a PUBLIC client.
auth.public-base-url URI yes This application’s public origin as browsers see it, for example https://orders.example.com.
auth.cookie-keys secret for field workers and sealed cookies Keys that seal session cookies: <kid>:<base64url of 32 bytes>, comma-separated, the sealing key first. Field workers’ DPoP nonces derive from them.

FlowCatalyst platform connection (flowcatalyst.*)

Section titled “FlowCatalyst platform connection (flowcatalyst.*)”
Key Type Default Meaning
flowcatalyst.enabled boolean true Turns the platform module on. When false, admin calls answer 503 PLATFORM_NOT_CONFIGURED.
flowcatalyst.base-url URI none The platform’s base URL. Required while enabled.
flowcatalyst.application string none This application’s code on the platform, [a-z][a-z0-9-]*. Required while enabled.
flowcatalyst.client-id string none OAuth client id of the application’s service account. Required while enabled.
flowcatalyst.client-secret secret none Its secret. Required while enabled.
flowcatalyst.timeout duration 30s Timeout of requests to the platform.
flowcatalyst.subscription-target-base-url URI none Base URL that subscription targets given as a path resolve against.
flowcatalyst.sync.on-boot boolean false Sync definitions to the platform at start-up. Normally the deploy runs the sync command instead.
flowcatalyst.outbox.stale-after duration 5m The outbox health check is down when the oldest undelivered outbox row is older than this.

The routes that accept dispatch deliveries and scheduled-job firings from the platform.

Key Type Default Meaning
flowcatalyst.receivers.enabled boolean true Mount the receiver routes. False mounts neither, even when handlers are registered (start-up warns).
flowcatalyst.receivers.path string /fc Prefix: {path}/dispatch and {path}/scheduled-jobs.
flowcatalyst.receivers.signing-secret secret none HMAC secret for deliveries. See Delivery and webhook signatures.
flowcatalyst.receivers.bearer-token secret none Bearer token deliveries must carry (AND-ed with the signature).
flowcatalyst.receivers.dispatch.signing-secret, .bearer-token secret falls back to the shared pair Secret and token for the dispatch receiver (the subscription’s or connection’s service account).
flowcatalyst.receivers.scheduled-jobs.signing-secret, .bearer-token secret falls back to the shared pair Secret and token for the scheduled-job receiver (the application’s service account).
flowcatalyst.receivers.require-signature boolean true Refuse unsigned deliveries. False accepts them (start-up logs a warning).
flowcatalyst.receivers.dispatch-timeout duration 25s How long a dispatch handler may run before it is interrupted and the platform is answered 503. Keep it below the job’s timeout.
flowcatalyst.receivers.job-timeout duration 10m How long a scheduled-job handler may run.
flowcatalyst.receivers.job-lock-lease duration 10m Lease of the scheduled-job overlap lock, refreshed every third of it while the job runs: how long a crashed run blocks the next one.
flowcatalyst.receivers.completion-retry-delay duration 1s Delay before retrying a completion call to the platform.
flowcatalyst.receivers.once-retention duration 30d How long fw_dispatch_once rows are kept.
flowcatalyst.receivers.once-purge-interval duration 1h How often the background purge of old fw_dispatch_once rows runs.

The push module (server-sent events to clients; see Push wire format).

Key Type Default Range Meaning
push.driver postgres, redis (and platform in Go) postgres Where the push log lives: postgres (fw_push_log), redis (a Redis stream), or in Go platform (the platform’s push gateway holds it; the application writes PUSH rows to its outbox and the module serves no routes).
push.redis-instance string the default Redis instance The Redis instance of the redis driver.
push.retention duration 24h 10m to 24h How long the log keeps a push for clients that resume.
push.max-data-bytes integer 16384 1 to 65536 Largest push data in bytes of JSON.
push.max-topics integer 100 1 to 1000 Most topics one subscribe may ask for.
push.relay.batch integer 500 1 to 5000 Most outbox rows one relay run moves.
push.relay.interval duration 1s 50ms to 10s Longest wait between relay runs.
push.relay.lease duration 5s 1s to 60s The relay’s lock lease.
push.stream.buffer integer 256 16 to 10000 Pushes a stream may fall behind before it is ended.
push.stream.max-lifetime duration 1h 1m to 24h Longest life of a stream token.
push.recent integer 10000 0 to 1 000 000 Recent pushes each instance keeps in memory for replays.
push.max-streams integer 50000 at least 1 Most streams open on one instance.
push.max-streams-per-principal integer 20 at least 1 Most streams of one principal on one instance.
push.stream.secret secret none at least 32 chars Required (not with platform). Signs stream tokens (HMAC-SHA256); the same on every instance.
push.ticket.key secret none Required. Ticket signing keys <kid>:<base64url of a 32-byte Ed25519 seed>, comma-separated, the current key first, then the previous one.

From framework-idempotency-database, for idempotency keys on HTTP writes.

Key Type Default Meaning
idempotency.retention duration 24h How long an Idempotency-Key and its answer are kept; a repeat after that runs again.
idempotency.wait duration 10s How long a repeat that arrives while the first request with its key runs waits for the answer; then 409 IDEMPOTENCY_IN_PROGRESS.
idempotency.in-flight-timeout duration 5m How long a request that took a key and has not finished holds it (its process may have stopped); after it another request takes the key over.

Named clients are declared in code; only the engine setting is global.

Key Type Default Meaning
http-client.max-connections-per-host integer, 1 to 1000 50 Pooled connections per host.
http-client.event-loops integer, 1 to 64 2 Vert.x event loops of the HTTP client engine. Java only: Go does not declare it, and setting it there fails start-up as unknown.

Connections are configured as named instances under a section. An instance must be named in a YAML file; DATABASE_INSTANCES_MAIN_URL and similar variables then override single values, but an instance cannot be created from variables alone. <section>.default names the default instance; with exactly one it may be omitted.

database:
default: main
instances:
main:
url: jdbc:postgresql://localhost:5432/app
username: app
password: ""
pool: { max: 10, min-idle: 1, connect-timeout: 5s, login-timeout: 10s }
migrate: true
redis:
default: default
instances:
default: { url: "redis://localhost:6379/0", timeout: 2s }
Section Keys
database.instances.<n> url (required), username, password (secret), pool.max (10; 1 to 1000), pool.min-idle (1; 0 to pool.max), pool.connect-timeout (5s; 250 ms to 5 min), pool.login-timeout (10s; 1s to 5 min, whole seconds; Java), migrate (true; counts on the default instance). Go accepts jdbc:postgresql://host:port/db or postgres://... (the jdbc: prefix is dropped).
redis.instances.<n> url (required, redis:// or rediss://, may carry user, password and database number), password (secret, wins over the URL’s), timeout (2s; more than 0, at most 5 min), pool.max (16; 1 to 1000)
http-clients.instances.<n> base-url (required) and the credentials of the client’s declared auth: auth.token (bearer), auth.username and auth.password (basic), auth.value (API key header), or auth.token-url, auth.client-id and auth.client-secret (OAuth client credentials). The client itself is named in code.

The framework keeps a list of keys whose behaviour moved to code (database.instances.*.driver, redis.instances.*.driver, locks.default, locks.instances.*, and others). One of them still in a file or in the environment fails start-up naming where it went: lock stores, secret stores, rate limiters, background loops and named HTTP clients are defined in code, and an application that wants a value to differ per deployment declares a setting of its own and reads it where the thing is built.

Item Java Go
http.sse.heartbeat declared not declared
http-client.event-loops declared not declared (fails as unknown)
idempotency.* declared by framework-idempotency-database no module
push.driver postgres, redis postgres, redis, platform
Database url JDBC URL jdbc:postgresql:// or postgres:// URL
Modules without settings locks, secrets, named HTTP clients, object stores, client settings (named in code) same