Skip to content

Upgrades and compatibility

Line Versioned how Current
Platform (fc-server) Image ghcr.io/flowcatalyst/fc-server:X.Y.Z and :latest, published with each fcdev release (same tag and commit); or build from a commit of the platform repository, in which case GET /health reports the commit you stamped as VERSION the fcdev release version, from v0.17.0
fcdev Tags fcdev/vX.Y.Z, with GitHub release archives v0.36.0
Go SDK Tags, served by the Go module proxy v0.7.0 (from v0.1.0 it needs Go 1.27; auth.JwksCache.Get now returns jwx v4’s jwk.Set)
TypeScript, Laravel SDKs Tags in their split repositories v0.29.0, v0.27.0
Java SDK Tags java-sdk/vX.Y.Z; the jar is published to GitHub Packages (Maven) from 0.0.30 0.0.38
Ingestor runtime Tags ingestor/vX.Y.Z: image ghcr.io/flowcatalyst/ingestor:X.Y.Z and :latest, and the jar on a GitHub Release 0.3.0
Function SDKs, field libraries Their own tags see SDKs

Each line is released on its own, when it changes. The platform moves continuously; treat each deployment of a new commit as an upgrade and use the checklist below.

The platform’s HTTP API is a stable wire contract. Renaming a field, changing an enum value, changing a status code for an error, adding or removing a response field, changing an operation id or a pagination shape are all breaking changes, and the build refuses them: the committed OpenAPI lockfile must match the server, and replay tests check status, headers and bodies. Breaking changes are made deliberately, as new versions of an operation, never as a side effect. See the OpenAPI lockfile and wire conventions.

The practical consequence: upgrading the platform does not require upgrading applications or SDKs. Upgrade the platform first, then applications one at a time.

Contract Rule
Platform ↔ ingestor runtime Contract version 2, with additions only. A platform ignores fields it does not know; a runtime treats an endpoint an older platform lacks (404) as “not supported” and carries on. A definition a runtime cannot read is reported as a failed route, not a failed poll
Platform ↔ router The router-config document and the delivery callback. The settled-group hook is optional; without it the platform’s reaper recovers within 2 minutes
Platform ↔ function runners The control plane is versioned by runtime and capability; runners advertise what they run
Scheduler ↔ API tier Both sign and verify dispatch messages with a key derived from FLOWCATALYST_APP_KEY; keep the key identical during an upgrade

Migrations are forward-only. The policy for schema changes is expand and contract: a change that the running code depends on (renaming or dropping a column) is split across releases so that the previous code keeps working against the new schema during a rolling deploy. Data migrations are idempotent. A release that needs more (an online index build on a large table, a re-keying script) ships an ops script in scripts/ops/ whose header says whether to run it before or after the deploy.

flowchart LR
  B[Back up the database] --> P[Run pre-deploy ops scripts]
  P --> M["Start one platform process<br/>(migrations run)"]
  M --> A[Roll the API tier]
  A --> W[Roll the worker tier]
  W --> R[Roll the router]
  R --> F[Roll runners and ingestors]
  F --> X[Run post-deploy ops scripts]
  X --> S[Upgrade SDKs and applications, one at a time]
  1. One platform process first. Migrations run when a database-backed process starts and take no lock across processes, so let a single process apply them (migrations applied in its log) before the rest start.
  2. The API tier next, because everything else talks to it and it accepts older callers.
  3. Then the worker tier (scheduler, stream processor, scheduled jobs, outbox). With standby, roll the standby first, then the leader; leadership moves once.
  4. Then the router, the same way. Give it a stop timeout above FC_DRAIN_TIMEOUT_SECONDS.
  5. Then function runners and ingestor runtimes, one replica at a time, waiting for readiness.
  6. Then applications and SDKs, separately and one at a time, so a problem has one cause.

A single-image, all-in-one deployment collapses steps 2 to 5 into one restart.

The signing keyring. A release with the signing keyring (migration 132, FC_JWT_KEY_STORE) changes how tokens are signed when FLOWCATALYST_APP_KEY is set, which is the default for a production deployment:

  • The first API process to start adopts the RSA key from configuration as the ACTIVE RS256 key, under the kid it already had, and generates the other keys. Tokens already issued, and relying parties’ cached JWKS, stay valid. The adopted key is rotated away after 90 days; remove it from configuration after fc-server signing-keys list shows it EXPIRED.
  • New session cookies are signed with HS256, not RS256. The new release still accepts the RS256 cookies minted before the upgrade until they expire. The mixed-version roll has not been tested: this page states only what the new code does. Check how a process still on the earlier release treats an HS256 cookie in a non-production environment before you rely on a rolling deploy, and expect that some people may be asked to sign in again during the roll or after a rollback.
  • Every process that signs or verifies needs FLOWCATALYST_APP_KEY, because the private keys are sealed with it. To keep the previous behaviour (configured key, never rotated, RS256 cookies), set FC_JWT_KEY_STORE=config.

See key rotation.

The payload table. Migration 123 adds a table that holds event and dispatch-job payloads and, optionally, offloads large payloads to object storage. Turn it on in two steps, in this order:

  1. Deploy the release everywhere with FC_PAYLOAD_TABLE_WRITES off (the default). Nothing is written to the new table yet, and every instance learns to read both row shapes. Rolling back is still safe.
  2. Set FC_PAYLOAD_TABLE_WRITES=true only once every instance of the deployment, including the scheduler and any separate worker or ingestion tier, runs that release. An instance from before it reads a row of the new shape as having no payload and delivers an empty body. Once rows are written in the new shape, rolling back to a release older than this one is unsafe; rolling back to this release with the switch off is safe.

Offloading to object storage (FC_PAYLOAD_STORE) is a third, optional step. See the payload table and payload store.

Before the window:

  • Note the image or commit you run now, so you can redeploy it.
  • Read what changed since that commit: migrations (internal/migrate/sql/), ops scripts (scripts/ops/), new or changed environment variables, and behaviour changes that make writes stricter.
  • Find your database’s last applied migration (SELECT max(version_id) FROM goose_db_version WHERE is_applied) and list every migration after it.
  • Back up the database and prove the backup restores.
  • Restore that backup into a scratch database and start the new build against it. Watch the migrations finish, and time them.
  • For each migration or ops script touching a large table, check the table’s actual size and decide whether to run the ops script first.
  • Run the new build in a non-production environment with your applications on their current SDK versions: password and SSO sign-in, an OAuth code flow with refresh, a client-credentials token, each application’s definition sync, a console write, an event published and delivered, a function invoked if you use functions, an ingestion run if you use ingestion.
  • Decide the rollback trigger in advance (for example, sign-ins failing for more than N minutes).
  • Pick a quiet window and tell the people who depend on the platform.

During the deploy:

  • Take a final backup or note the point-in-time recovery position.
  • Run any pre-deploy ops scripts.
  • Start one process; watch for migrations failed and other ERROR lines.
  • Roll the rest in the order above.
  • Do not upgrade applications or SDKs in the same window.

After the deploy, in this order, stopping at the first failure:

  1. GET /health reports the new version on every process; the console loads.
  2. Password sign-in with a second factor; SSO sign-in through each identity provider you use.
  3. A client-credentials token, used against the API by a service account consumer.
  4. Dispatch flows: fc_scheduler_pending_oldest_age_seconds stays low, jobs complete, the router’s pools drain.
  5. One application’s definition sync (dry run first).
  6. Watch logs and dispatch metrics for 15 to 30 minutes: new 400 responses with validation codes mean an application sends something the platform now refuses.

Migrations are forward-only, so “roll back” means one of two things:

  • Code only. Redeploy the previous image against the migrated database. This works when the release’s migrations were additive (the expand half of expand and contract), which is the rule, but check the release’s notes: a data migration may leave rows the old code misreads.
  • Code and data. Restore the database from the pre-deploy backup and redeploy the previous image. Writes made after the backup are lost: events accepted, jobs delivered, sign-ins and configuration changes. See backup and disaster recovery.

Developers upgrade their local tool with fcdev upgrade (--check to look only). A newer fcdev migrates its embedded database forward the same way the server does. Keep fcdev reasonably close to the platform version you deploy, so local behaviour matches.