Fistron docs

fistron.io

Upgrade Fistron

Every release has release notes: read them before upgrading, for new settings, for anything removed and for the versions of the parts that go together (Fistron, the closed core in the agent’s image, the chart and the control plane).

Learn of a new version and its fixes

Fistron tells you when a newer version or a security fix is there (ADR 0160). At most once a day it downloads Fistron’s index of releases from dl.fistron.io, signed with Fistron’s release key; nothing is sent (no identifier, not even your version), and an index that is not signed by that key, or is older than one seen before, is refused.

On the command line, at most once a week (at once for a new security fix), a command ends with one line on standard error, never in CI and never with --json:

fistron: Fistron 0.5.0 is available (6 fixes, 1 security fix): curl -fsSL https://get.fistron.io | sh  (fistron version --check says more)
fistron version            # the version, the last check and what it found
fistron version --check    # check now, with the notes of every newer version
fistron version --check off   # no check at all (on turns it on again)

In the local UI, a newer version shows as a banner above every page, with its fixes, a security fix marked and the one command that upgrades; Not now puts it off until the next version, but not a security fix, nor a version that gets no more fixes. What is new opens Settings, Updates: the check on or off (Check for a newer version), when it last ran, Check now, and the notes of every newer version.

FISTRON_UPDATE_CHECK=off turns it off for one environment too. Each check is listed in Where your data went as a check (nothing sent); a data-flow policy whose regions dl.fistron.io is outside refuses it.

An on-premises control plane checks the same way, once a day, and tells the organisation’s admins and auditors (who read its licence): the banner above every page and, on Organisation, Licence, the card Updates with the notes and Check now; the command that upgrades is the installer’s again (fistron-install update on-premises, below). The organisation’s Dashboard has the card Versions and updates for the same people: the control plane’s version (its chart’s), its Fistron and core, every agent’s Fistron and core with the agents older than the control plane marked, a newer release on the channel with its notes and security fixes, the command that upgrades the control plane, and Check for updates now. An agent that follows its control plane takes the new image within an hour of the control plane’s upgrade; any other is upgraded on its host with fistron-install update. Without the check (air-gapped), the card says how to learn of a newer version (the feeds) and how a newer bundle upgrades the installation. On or off is the installation’s: the chart’s value controlPlane.updates.check (true by default; false: no contact at all; controlPlane.updates.url: another index, a mirror). Its network policy then lets the control plane reach port 443 (controlPlane.networkPolicy.updates). An air-gapped installation has it off. app.fistron.io is upgraded by Fistron.

Until Fistron 1.0.0 every plan gets its fixes in the newest version. From 1.0.0 a plan gets them in older versions too, for a while (Team the previous minor version; Business, security fixes for 12 months more; Enterprise a long-term version for 24 months); fistron version says whether yours still gets them.

How a release reaches you

How a release of Fistron is built, signed and reaches the installations

Each part of Fistron (Fistron, its core, the control plane) is released before the next one is built on it, and every image is signed. The wheels, each release’s list of files, the offline bundle and the index of releases are signed with Fistron’s release key. fistron-install verifies them before it installs anything; an agent that follows its control plane verifies the new image before it restarts; fistron doctor checks that the files are the release’s. A version reaches the channel stable only after it ran on Fistron’s staging and was confirmed for production.

Check that an installation is supported

After an upgrade, or with images you built yourself, fistron doctor says whether the installation is one Fistron supports: a release’s files, unchanged, with the release’s signed core. It compares the installed files of Fistron, the core and the control plane with each release’s signed list of its files, which the image keeps, and contacts nothing:

fistron doctor          # supported, not supported (the files named) or unknown release
fistron doctor --json

An agent says the same in its log when it starts, and the Agents page shows an agent that is not supported. The control plane’s log says it when the control plane starts.

The rule of one minor version

An agent and a control plane work together when they are at most one minor version apart in the same major version, older or newer. So you can upgrade one side at a time: first the control plane, then the agents, or the other way. Further apart, both refuse with HTTP 426 and say which one to upgrade. Your agents’ versions are on the Agents page: an agent older than the control plane says so, and one more than a minor version older says it is refused.

Installed with one command

An agent installed with install.sh (Use the hosted control plane with your own agent) follows its control plane: it runs the agent’s image the control plane says it runs, and within an hour of the control plane’s upgrade it takes the new one by itself (the timer fistron-agent-update.timer; in Kubernetes the CronJob <release>-agent-update). The image is pulled and its signature checked before the agent restarts, and nothing changes while the agent runs that image already. So an agent never runs ahead of its control plane.

The local UI (Install on a machine, a virtual machine or in CI), and an agent installed with --version <major>.<minor>, follow a minor version of the image (<major>.<minor>):

fistron-install updates itself from the image it updates to.

https://get.fistron.io serves the installer of the version Fistron’s production runs; https://get.fistron.io/v<version> a given release’s, for a host that must install exactly that version.

The command line installed with one command (Install Fistron for your plan) is upgraded with fistron-install update: the newest version, its installer verified with Fistron’s release key first. Its licence and the core come along.

The local UI, the command line and CI

The workspace, fistron.toml and the settings (in Fistron, or in its settings directory) stay as they are.

The agent

An agent stops after the work in hand; work whose lease ends goes to the next agent. The closed core comes in the agent’s image, so it is upgraded with it. The licence does not depend on the version.

The control plane

Installed with one command (on-premises), on the machine where you ran it:

curl -fsSL https://get.fistron.io | sh -s -- status               # the chart running, and the channel's
curl -fsSL https://get.fistron.io | sh -s -- update on-premises   # to the chart stable names
curl -fsSL https://get.fistron.io | sh -s -- update on-premises --version <chart>   # a given one

(fistron-install update on-premises is the same where fistron-install is on the PATH.) It:

  1. reads the answers it kept (~/.config/fistron/install/<namespace>-values.yaml; --namespace when you installed more than one) and the release installed;
  2. backs up the database: pg_dump in the cluster, as the schema’s owner (the Secret fistron-db), into ~/.config/fistron/install/backups/<namespace>-<chart before>-<time>.sql.gz, readable only by you. Nothing is upgraded when the backup fails. The image is docker.io/library/postgres:18-alpine; --backup-image takes one from your registry, --no-backup leaves the backup to you. Some tables force row-level security, so that one tenant never reads another’s rows, even as their owner. pg_dump dumps them only as a role that bypasses it: before dumping, the backup checks the role and, when it does not, stops and names the tables. The policies stay as they are; give the owner that right once, as a superuser of your PostgreSQL: ALTER ROLE <owner> BYPASSRLS;, or back up as another role that has it (or a superuser): --backup-url-file FILE, the file holding its URL. It goes into the cluster as a Secret for the backup alone and is deleted after. A restore of the backup with psql needs such a role too;
  3. upgrades with helm upgrade --reset-then-reuse-values and your kept answers (Helm 3.14 or newer): the new chart’s defaults, then what you set before, then your answers; --values FILE adds your own file again;
  4. checks that the new chart’s version runs; when it does not come up, it runs helm rollback and says why.

The database migrations run first. If one fails, nothing else changes and the old release keeps running; the job stays for its logs. The pods are then replaced one at a time, so sign-in and the API stay up. The chart’s notes say an upgrade from an installation: an upgrade asks for no tenant and no licence again.

Installed by hand, or from another machine:

  1. Back up the PostgreSQL database.

  2. Upgrade, with the chart’s version (for example 0.1.0-dev.38):

    # the installation command again, its answers again (--answers)
    curl -fsSL https://get.fistron.io | sh -s -- on-premises --licence organisation.paseto \
      --version <new> --answers answers.env --yes
    # with Helm, signed in with the licence
    helm registry login registry.fistron.io --username licence --password-stdin < organisation.paseto
    helm upgrade fistron oci://registry.fistron.io/charts/fistron \
      --version <new> --namespace fistron --reset-then-reuse-values -f your-values.yaml

    --reset-then-reuse-values keeps the values you set on the installed release and takes the new chart’s defaults for the rest; -f adds your own file again (a CA, NetworkPolicy ports, one replica). helm -n fistron get values fistron shows what is installed.

Without internet access: the same two commands with the new bundle (fistron-install bundle, then ./fistron-install air-gapped in it), or verify and mirror it by hand first (Install without internet access), then upgrade with its chart.

To go back: helm rollback fistron --namespace fistron. Migrations only add, so the release before runs on the newer database. A release that removes something says so in its notes; go back past it only with the database restored from your backup:

gunzip -c ~/.config/fistron/install/backups/<file>.sql.gz | psql "<the schema owner's URL>"

into an empty database (or one you dropped and created again).

The hosted control plane

Fistron upgrades app.fistron.io. Keep your agents within one minor version of it; the release notes say when to upgrade them.

Every detail: upgrade.md.