Skip to content

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.

  • 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 /router on the API port. Without FC_ROUTER_AUTH_USER and FC_ROUTER_AUTH_PASS that 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 /metrics paths 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_ENABLED mounts 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 to 127.0.0.1 only. Leave it that way.
  • The MCP server (FC_MCP_ENABLED) is a developer tool; do not enable it in production.
  • HTTPS everywhere users and applications connect. FC_JWT_ISSUER is an https:// URL; the load balancer redirects HTTP and sends HSTS.
  • Database connections verify the server. Use sslmode=verify-full in FC_DATABASE_URL, or PGSSLMODE=verify-full with PGSSLROOTCERT. The composed connection strings default to unverified TLS.
  • Forwarded-address handling matches your proxy. Behind a load balancer that sets X-Forwarded-For, set FC_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-http platform URL and loopback sources. Keep it.
  • The JWT signing keys are persistent and shared. With FLOWCATALYST_APP_KEY set (the usual case), FC_JWT_KEY_STORE defaults to database: 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 that fc-server signing-keys list shows an ACTIVE key of each algorithm, and remove a configured RSA key from the environment once the keyring has rotated it away. With FC_JWT_KEY_STORE=config the key is configured, never rotated, the same on every process; without one each process invents its own. See key rotation.
  • FLOWCATALYST_APP_KEY is 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:// or aws-ps:// references in platform configuration, set FC_SECRET_REFERENCE_ALLOW to 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.
  • 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_ID and every origin in FC_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=true so a broad pattern can never sign anyone in.
  • Unverified email addresses are refused if your identity providers send email_verified reliably: 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=true sends 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).
  • Cookie sessions are protected from cross-site requests automatically: the console refuses state-changing requests whose Sec-Fetch-Site or Origin is 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 of FC_JWT_ISSUER, so that must be the real public URL.
  • FC_SESSION_COOKIE_SAME_SITE stays lax (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.
  • Rate limits are cluster-wide: set FC_REDIS_URL when you run more than one API replica, or accept the PostgreSQL-backed counters. Never set FC_RATE_LIMIT_DISABLE in 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: set FC_FIELD_ATTESTATION_ROOTS to 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 to REQUIRED (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 than FC_FIELD_ATTESTATION_STATUS_MAX_AGE, 48 hours by default), unlock attempts under REQUIRED are refused with 503 ATTESTATION_STATUS_UNAVAILABLE and workers sign in with their PIN meanwhile. Set the URL empty to switch the revocation check off.
  • 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, graceSeconds to change it, 0 for an immediate cutover).
  • FC_OAUTH_REVOKE_ENFORCE_CLIENT stays true, so a client can revoke only its own refresh tokens.
  • Consider FC_OAUTH_INTROSPECT_CLIENT_AUTH_ONLY=true if 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 runner platform:function-runner; the ingestor platform:ingestion-runtime (plus platform:function-runner for JVM functions).
  • The outbound guard keeps its defaults: private and loopback destinations refused. Open specific hosts with FC_DELIVERY_ALLOW_HOSTS rather than whole ranges with FC_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 knownHosts does not start unless it sets acceptAnyHostKey: 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.
  • FC_AUTH_ALLOW_TEST_HEADERS is unset (the server refuses to start with it unless APP_ENV is local or test).
  • FLOWCATALYST_DEV_MODE is unset.
  • FC_DELIVERY_ALLOW_LOOPBACK is unset.
  • No fcdev in production: it creates development credentials and an embedded database.
  • 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.