Security hardening checklist
Go through this list before a deployment takes real traffic, and again after major upgrades. Each item says what to do and why; the details are on the linked pages. The platform’s own security model is described in security.
Network exposure
Section titled “Network exposure”- Only the API port is public. Expose
FC_API_PORT(8080) through the load balancer and nothing else. Keep the metrics port (9090, no authentication), the function runner’s private port (8095), the ingestor port (8091, unless HTTP ingestions are public) and the database private. - The router’s operator surface is protected. When the router runs in a process, it mounts
its dashboard and operator API under
/routeron the API port. WithoutFC_ROUTER_AUTH_USERandFC_ROUTER_AUTH_PASSthat surface has no authentication at all, and it includes endpoints that publish messages to queues, change pool concurrency and rate limits, force-acknowledge messages and reset circuit breakers. Always set both. In addition, block/router/at the public load balancer: its health and/metricspaths stay public even with Basic auth. Better still, run the router outside the API tier (see topologies). - Debug endpoints stay off unless you are diagnosing something.
FC_DEBUG_ENDPOINTS_ENABLEDmounts profiling and goroutine dumps (behind router Basic auth or an anchor principal); turn it off again afterwards. - The outbox admin API (
FC_OUTBOX_ADMIN_PORT) binds to127.0.0.1only. Leave it that way. - The MCP server (
FC_MCP_ENABLED) is a developer tool; do not enable it in production.
Transport
Section titled “Transport”- HTTPS everywhere users and applications connect.
FC_JWT_ISSUERis anhttps://URL; the load balancer redirects HTTP and sends HSTS. - Database connections verify the server. Use
sslmode=verify-fullinFC_DATABASE_URL, orPGSSLMODE=verify-fullwithPGSSLROOTCERT. The composed connection strings default to unverified TLS. - Forwarded-address handling matches your proxy. Behind a load balancer that sets
X-Forwarded-For, setFC_HTTP_REAL_IP_MIDDLEWARE=false, so a client cannot choose the address the rate limits and login backoff see. - The ingestor accepts only HTTPS platforms. The image runs with
APP_ENV=production, which refuses a plain-httpplatform URL and loopback sources. Keep it.
Keys and secrets
Section titled “Keys and secrets”- The JWT signing keys are persistent and shared. With
FLOWCATALYST_APP_KEYset (the usual case),FC_JWT_KEY_STOREdefaults todatabase: every process reads one keyring from PostgreSQL, the platform rotates it automatically (RS256, EdDSA and ML-DSA-65 every 90 days, the HS256 session-cookie key every 30) and nothing in configuration signs. Check thatfc-server signing-keys listshows anACTIVEkey of each algorithm, and remove a configured RSA key from the environment once the keyring has rotated it away. WithFC_JWT_KEY_STORE=configthe key is configured, never rotated, the same on every process; without one each process invents its own. See key rotation. -
FLOWCATALYST_APP_KEYis set, generated randomly (openssl rand -base64 32), stored in a secret manager, never in an image or a repository, and backed up separately from the database. - The bootstrap admin variables are removed after the first start.
- Secrets reach processes from a secret store, injected as environment variables or files, not written into task definitions in clear text.
-
FC_PUSH_STREAM_SECRET(if the push gateway runs) is at least 32 random characters and the same on every gateway replica. - AWS secret references are fenced. If you use
aws-sm://oraws-ps://references in platform configuration, setFC_SECRET_REFERENCE_ALLOWto the narrowest prefixes, each ending in/(a prefix is matched as plain text), and grant the platform’s role read access to exactly those secrets. - A rotation plan exists for each key and secret, with an owner. See key rotation.
Sign-in
Section titled “Sign-in”- Anchor users have a second factor, TOTP or a passkey. Anchor users act across every client.
- Passkey settings are final before users enrol:
FC_WEBAUTHN_RP_IDand every origin inFC_WEBAUTHN_ORIGINS. - Identity providers pin their issuer. A multi-tenant identity provider must pin the
tenant(s) in its issuer pattern (anchored, with no wildcards), and set the required tenant id where
the provider sends one. New broad patterns are refused already; providers saved before that rule
are flagged in the console and at start-up. Once none is flagged, set
FC_OIDC_ISSUER_PATTERN_REQUIRE_PINNED=trueso a broad pattern can never sign anyone in. - Unverified email addresses are refused if your identity providers send
email_verifiedreliably:FC_OIDC_REJECT_UNVERIFIED_EMAIL=true. - Password-reset policy is a decision, not a default. By default a user without TOTP or a
passkey resets with the emailed link alone.
FC_PASSWORD_RESET_REQUIRE_STRONG_FACTOR=truesends such resets to an administrator approval queue instead. See second factors. - Session lifetimes fit your policy:
OIDC_SESSION_TTL(24 hours),OIDC_REFRESH_TOKEN_TTL(7 days), access tokens (1 hour).
Cross-site requests and CORS
Section titled “Cross-site requests and CORS”- Cookie sessions are protected from cross-site requests automatically: the console refuses
state-changing requests whose
Sec-Fetch-SiteorOriginis not the platform’s own, and API calls authenticated by the session cookie refuse cross-origin browser requests in the same way. Both trust the origin ofFC_JWT_ISSUER, so that must be the real public URL. -
FC_SESSION_COOKIE_SAME_SITEstayslax(single sign-on needs it) unless you know you do not use SSO redirects. - The CORS origins list is minimal. The platform API sends no CORS headers; the console’s
CORS Origins list applies to the push gateway (
/api/push/*) and to the field-worker device protocol (/field/*), never with credentials. List only the web applications that open push streams or that call/field/*from a browser page.
Abuse and brute force
Section titled “Abuse and brute force”- Rate limits are cluster-wide: set
FC_REDIS_URLwhen you run more than one API replica, or accept the PostgreSQL-backed counters. Never setFC_RATE_LIMIT_DISABLEin production. - Login backoff and lockout keep their defaults unless you have a reason (3 free attempts, exponential delay to 5 minutes, a 15-minute lock after 100 failures in an hour).
- Field-worker PIN limits fit your sites:
FC_FIELD_DEVICE_FAILURES_PER_HOUR,FC_FIELD_CLIENT_FAILURES_PER_HOUR,FC_FIELD_IP_FAILURES_PER_HOUR. - Unlock-key attestation roots are set if a client requires attestation. A worker’s phone can register
an unlock key so a biometric replaces the PIN on a personal device. A client’s field policy can require
the key to be backed by Android hardware attestation (
unlockKeyAttestation: REQUIRED), but the platform can check that only against root certificates you give it: setFC_FIELD_ATTESTATION_ROOTSto a PEM file of Google’s published hardware attestation roots. Unset, or a file that cannot be read (logged at start-up), attestation is recorded but no chain counts as trusted and the policy cannot be set toREQUIRED(400 POLICY_INVALID). With the roots set, the platform fetches Google’s attestation status list in the background (FC_FIELD_ATTESTATION_STATUS_URL, hourly by default) to find revoked certificates, so it needs outbound HTTPS to that address. If no usable copy exists (older thanFC_FIELD_ATTESTATION_STATUS_MAX_AGE, 48 hours by default), unlock attempts underREQUIREDare refused with503 ATTESTATION_STATUS_UNAVAILABLEand workers sign in with their PIN meanwhile. Set the URL empty to switch the revocation check off.
OAuth clients and service accounts
Section titled “OAuth clients and service accounts”- Client and service-account secrets have owners and are rotated. Rotating an OAuth client’s
secret keeps the old one valid for a grace period (24 hours by default,
graceSecondsto change it,0for an immediate cutover). -
FC_OAUTH_REVOKE_ENFORCE_CLIENTstaystrue, so a client can revoke only its own refresh tokens. - Consider
FC_OAUTH_INTROSPECT_CLIENT_AUTH_ONLY=trueif your resource servers introspect with client credentials rather than a bearer token. - Service accounts hold the least they need. The router needs
platform:router; the function runnerplatform:function-runner; the ingestorplatform:ingestion-runtime(plusplatform:function-runnerfor JVM functions).
Outbound traffic
Section titled “Outbound traffic”- The outbound guard keeps its defaults: private and loopback destinations refused. Open
specific hosts with
FC_DELIVERY_ALLOW_HOSTSrather than whole ranges withFC_DELIVERY_ALLOW_PRIVATE. See the outbound guard. - An egress policy backs it up. Restrict the platform’s outbound network to what it needs (consumer endpoints, identity providers, cloud APIs) as defence in depth.
- Ingestor runtimes sit in their own segment. They reach customer systems (SFTP, databases, APIs) and private ranges are allowed for sources. Keep them away from anything else sensitive.
- SFTP sources check host keys. A definition without
knownHostsdoes not start unless it setsacceptAnyHostKey: true; review any that do. - Camel routes stay off (
INGEST_CAMEL_ROUTES_ENABLED=false) unless you need them: a route runs with the runtime’s own network and identity.
Never in production
Section titled “Never in production”-
FC_AUTH_ALLOW_TEST_HEADERSis unset (the server refuses to start with it unlessAPP_ENVislocalortest). -
FLOWCATALYST_DEV_MODEis unset. -
FC_DELIVERY_ALLOW_LOOPBACKis unset. - No fcdev in production: it creates development credentials and an embedded database.
Containers
Section titled “Containers”- Images run as non-root (both do by default) with a read-only root file system where possible (see writable paths).
- Images are built from reviewed commits, scanned and signed in your pipeline.