Versions and upgrades
Semantic versioning
Section titled “Semantic versioning”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.
Image tags
Section titled “Image tags”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.
Before upgrading
Section titled “Before upgrading”- Read the changelog for the versions between yours and the target, especially for a MAJOR upgrade.
- Back up the database and
SECRET_KEY. See Backup and security. - Note the version you are running (sidebar, or
curl -s http://127.0.0.1:8000/api/health), so you can return to it. - 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.
Upgrade with Docker Compose
Section titled “Upgrade with Docker Compose”cd firehawk# optional: change FIREHAWK_TAG in .env, e.g. from 1.0.0 to 1.1.0docker compose pulldocker compose up -ddocker compose logs -f apiUpgrade with Helm
Section titled “Upgrade with Helm”helm upgrade firehawk oci://ghcr.io/eos916101/charts/firehawk --version 1.1.0 \ -n firehawk -f values.yamlkubectl -n firehawk rollout status deploy/firehawk-apiThe generated SECRET_KEY and database password are kept across upgrades.
Database migrations
Section titled “Database migrations”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.
Rolling back
Section titled “Rolling back”Because migrations are not reversed, going back to an older version means going back to the database as it was before the upgrade:
- Stop FireHawk (
docker compose down, or scale the api and worker Deployments to 0). - Restore the database backup taken before the upgrade.
- Set the previous image tag (
FIREHAWK_TAGin.env, orhelm rollback/helm upgrade --version <previous>). - 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.
