Skip to content

Versions and upgrades

FireHawk follows Semantic Versioning: versions are MAJOR.MINOR.PATCH.

Part Changes when Examples
MAJOR A change breaks backward compatibility API changes, a new configuration export format, upgrades that need manual steps
MINOR New features are added in a compatible way New pages, backend features, settings
PATCH Bug fixes, small improvements, security fixes

The current release is 1.0.0. The running version is shown in the UI (sidebar and login page) and returned by /api/health. Changes per release are listed in the changelog.

The images ghcr.io/eos916101/firehawk-api (API and workers) and ghcr.io/eos916101/firehawk-frontend are published for amd64 and arm64 with these tags:

Tag Follows Use
1.0.0 exactly this release fully reproducible installs; you upgrade explicitly
1.0 the latest patch release of 1.0 bug and security fixes only
1 the latest 1.x release new features, no breaking changes (recommended for most installs)
latest every change on the default branch, including unreleased work testing only

Always use the same tag for the API, worker and frontend images. The Helm chart is versioned like the application (--version 1.0.0) and uses the matching image tag by default.

  1. Read the changelog for the versions between yours and the target, especially for a MAJOR upgrade.
  2. Back up the database and SECRET_KEY. See Backup and security.
  3. Note the version you are running (sidebar, or curl -s http://127.0.0.1:8000/api/health), so you can return to it.
  4. Avoid upgrading while a rollout or a safe deploy is running. Running jobs are released back to the queue when a worker stops and picked up again afterwards, but a quiet moment is simpler.
Terminal window
cd firehawk
# optional: change FIREHAWK_TAG in .env, e.g. from 1.0.0 to 1.1.0
docker compose pull
docker compose up -d
docker compose logs -f api
Terminal window
helm upgrade firehawk oci://ghcr.io/eos916101/charts/firehawk --version 1.1.0 \
-n firehawk -f values.yaml
kubectl -n firehawk rollout status deploy/firehawk-api

The generated SECRET_KEY and database password are kept across upgrades.

Schema migrations run automatically every time an API or worker starts. They are serialized with a database lock, so several API and worker replicas starting at the same time are safe: one runs the migrations, the others wait. Starting containers also wait for the database (up to DB_WAIT_SECONDS) before migrating. There is no separate migration command to run.

Migrations only move forward. An older FireHawk version does not know how to undo the schema changes of a newer one.

Because migrations are not reversed, going back to an older version means going back to the database as it was before the upgrade:

  1. Stop FireHawk (docker compose down, or scale the api and worker Deployments to 0).
  2. Restore the database backup taken before the upgrade.
  3. Set the previous image tag (FIREHAWK_TAG in .env, or helm rollback / helm upgrade --version <previous>).
  4. Start FireHawk again with the same SECRET_KEY.

Changes made in FireHawk after the backup (rules, deploys, audit entries) are lost by the restore. Hosts keep whatever was deployed to them; FireHawk shows them as drifted or with undeployed changes where the restored state differs, and a redeploy brings them back in line.