Repository navigation
GARM v0.2.2
Welcome to GARM v0.2.2!
This release adds PostgreSQL as a database backend, proxy support for GARM and for the runners it creates, instance wide runners for Gitea, rate limit aware scheduling, runner binaries for more architectures and a long list of stability fixes for pools and scale sets. It also changes how GARM is upgraded and how the daemon is started, so please read the notes below before replacing the binary.
Before you upgrade
Important
Upgrade to v0.2.1 first. GARM v0.2.2 moves to a new database migration system and no longer carries the migrations from older releases. A database that has not been upgraded to v0.2.1 will not migrate correctly. If you run anything older than v0.2.1, upgrade to v0.2.1, start GARM once so its migrations run, then upgrade to v0.2.2. Back up your database before you begin.
Caution
The garm daemon now uses double dash flags. garm -config /etc/garm/config.toml becomes garm --config /etc/garm/config.toml. Update your systemd unit, container entrypoint or whatever supervises the process before restarting, or the daemon will not start.
Important
Update garm-cli together with the server. The job listing API changed in this release. Jobs that GitHub routes to a scale set are now recorded separately from jobs that arrive by webhook, and the webhook job listing is paginated and filterable. A garm-cli from v0.2.1 or older will fail when running garm-cli job list against a v0.2.2 server. Install the garm-cli from this release's assets.
Important
Restore the runner install templates. If you are upgrading from v0.2.0 or v0.2.1, you must run:
garm-cli template restoreThis is needed because the runner install templates, once migrated to the DB, will not be updated without explicit action from the user, as the templates themselves are editable. The default templates changed in this release: they honor proxy settings, support the new architectures and report the runner as installed before the runner service starts, which closes a race that could reap a runner the moment it came online. Note, the above command will overwrite any changes you made to the default templates. Clones of those templates will not be updated by the above command. If you want your clones aligned with the new defaults, you must update them manually.
Job listing
garm-cli job list now shows the jobs GARM is tracking from both sources, with a source column that tells webhook jobs and scale set jobs apart. Completed jobs are kept for a day and are hidden unless --all is set. Two new commands give you each listing on its own, with pagination and time filters:
garm-cli webhook job list --page 1 --page-size 50 --since 2026-11-01
garm-cli scaleset job list --allWebhook jobs now also record which pool serviced them, and that attribution shows up in the job metrics.
New features
PostgreSQL backend
GARM can now use PostgreSQL instead of SQLite, for deployments that prefer an external database. SQLite remains the default and needs no changes.
[database]
backend = "postgresql"
passphrase = "<random-32-char-string>"
[database.postgresql]
username = "garm"
password = "<password>"
hostname = "localhost"
port = 5432
database = "garm"
sslmode = "prefer"See the database section of the configuration guide for all options. MySQL, which was never fully supported, has been removed.
Proxy support
GARM can now work from behind a proxy, at every level where one is needed. The daemon itself picks up a [proxy] section in its config file and applies it to forge and provider calls. Runners get their proxy from a new proxy object that you attach to a pool or scale set:
garm-cli proxy create --name corp \
--http-proxy http://proxy.example.com:3128 \
--https-proxy http://proxy.example.com:3128 \
--no-proxy 10.0.0.0/8,.example.com
garm-cli pool update <POOL_ID> --proxy corpThe install script, the package manager and the runner service on the instance all use it, on Linux and Windows alike. Proxies can also be managed from the Web UI.
Gitea forge instances
GARM can now manage runners for an entire Gitea instance, the way enterprises work on GitHub. A forge instance uses a Gitea system webhook, so jobs from every repository on the server reach GARM without adding repositories or organizations one by one. It needs a token with the write:admin scope.
garm-cli forge-instance add \
--forge-type gitea \
--credentials gitea-token \
--endpoint local-gitea \
--random-webhook-secret \
--install-webhook
garm-cli pool add --forge-instance gitea --provider-name lxd_local ...Forge instances are supported in the Web UI, in garm-cli top and in the webhook management commands. See the Gitea guide for a full walkthrough.
Rate limit aware scheduling
GARM now records the rate limit values returned with every forge API response and uses them to pace itself. On top of that, each GitHub credential can reserve a slice of its quota for the operations that save you money, removing runners that finished their jobs or were marked for deletion:
garm-cli github credentials update <CREDENTIALS> \
--reserve-usage-enabled=true \
--reserve-usage-percentage=10While the remaining quota is above the reserve, everything runs as before. Once it dips into the reserve, scaling up, reacting to new jobs and periodic cleanup sweeps pause, while runner deletions keep going. When the quota is exhausted, everything that needs a forge API call pauses. Paused work resumes on its own once the quota resets. The percentage is capped at 50%. Gitea does not report rate limits, so the setting has no effect there.
Related to this, GARM no longer treats a GitHub 403 as rejected credentials. GitHub also answers 403 for secondary rate limits and SSO enforcement, and a transient 403 used to pause scale set operations until the credentials were updated.
Runner binaries for more architectures
Pools and scale sets accept ppc64le, s390x and riscv64 for --os-arch, next to amd64, arm64 and arm. Gitea publishes runner binaries for all of them except ppc64le, so nothing else is needed there. GitHub only publishes x64, arm64 and arm, so for the others you point the endpoint at a releases URL that publishes a patched runner:
garm-cli github endpoint update github.com \
--tools-metadata-url https://api.github.com/repos/canonical/github-actions-runner/releasesGARM keeps using the binaries GitHub publishes and layers the ones from the metadata URL on top, which win for every OS and architecture they cover. A metadata URL served by the forge itself is fetched with the entity's credentials, so you do not run into the anonymous GitHub API rate limit. See runner binaries for extra architectures.
Important
GARM does not verify who built the binaries it downloads from a tools metadata URL. Only point it at a source you trust to run inside your CI.
Pinning the garm-agent version
By default GARM tracks the latest garm-agent release. If a new agent release introduces a requirement your environment is not ready for, you can pin the controller to a known good version, and you can read the release notes of each version without leaving GARM:
garm-cli controller update --garm-agent-version=v0.1.0
garm-cli controller tools list --online
garm-cli controller tools show-release v0.1.1Setting the version back to latest resumes tracking the newest release. The same controls are available in the Web UI.
For local development, or as a temporary stopgap while an environment transitions to TLS, agents can be told to connect over plain http and ws with garm-cli controller update --allow-insecure-agent=true.
Caution
With --allow-insecure-agent enabled the agent token is sent in plain text. Do not use it in production. This option requires garm-agent v0.1.1 or newer.
Admin password reset
If you lose the admin password, the garm daemon binary can now reset it directly against the database:
garm --config /etc/garm/config.toml admin list
garm --config /etc/garm/config.toml admin password-reset --new-password '<new password>' adminFor automated setups, garm-cli init, garm-cli profile add and garm-cli profile login accept --password-file, which keeps the password out of process arguments and shell history.
Bounded provider execution
Instance creation is now always bounded by the pool or scale set's runner_bootstrap_timeout. A provider binary that hangs during a create is killed, the instance is marked as error and cleaned up through the normal lifecycle, instead of sitting in creating until GARM is restarted. Every other provider operation can be bounded with a new exec_timeout_seconds option on the provider:
[provider.external]
provider_executable = "/opt/garm/providers.d/garm-provider-aws"
config_file = "/etc/garm/garm-provider-aws.toml"
exec_timeout_seconds = 900Important
For instance creation the effective deadline is the smaller of exec_timeout_seconds and the bootstrap timeout. If you set exec_timeout_seconds, keep it below your bootstrap timeouts. The default of 0 leaves non create operations unbounded, as before.
Web UI and CLI
- Live log streaming in the Web UI. The new logs page streams the server log with filtering and search, so you no longer need the CLI to follow what GARM is doing.
garm-cli topoverhaul. The dashboard survives server restarts and reconnects on its own. It is interactive now:Enteropens details for the selected row,/filters a panel,zzooms a panel,ltails the server log,ddeletes a runner,eenables or disables a pool or scale set and?shows help. Scale set jobs and forge instances are shown.- Template editor. Templates are syntax checked when saved and the editor drops you back in with the error instead of saving a broken template. Search works in both modes, more vim commands are supported and
garm-cli template edit --externalopens the template in your own$EDITOR. A template error that only shows up when a runner renders it now marks the runner asfailedwith the error in its status events, instead of leaving it ininstallingforever. - Web UI. Setup wizard improvements, the controller version in the sidebar, and forms for proxies, forge instances, rate limit reservation and garm-agent version management.
garm-cli scaleset delete --bypass-github-errorsremoves a scale set from GARM when GitHub can no longer delete it, for example after a repository transfer.
Monitoring
The metrics got a substantial upgrade. New event driven metrics capture what happens between scrapes: how long runners take to boot and to become ready, how long deletions take, why runners were removed, how long jobs wait in the queue and how long they run, and how many jobs finished by conclusion. Provider operations report durations and error kinds, scale set listeners report their health, and the internal event pipeline reports its queue depths. Forge API metrics carry an endpoint label so errors can be attributed to a specific forge, and PAT credentials report their token expiration so you can alert before a token expires.
Ready made Grafana dashboards, Prometheus alert rules and recording rules are available in contrib/grafana. The monitoring guide has the full reference.
Fixes and stability
A good part of this release went into making pools and scale sets behave under load and recover from the situations that used to require a restart.
- Scaling from zero reacts to a queued job right away instead of waiting for the next poll, which could add up to two polling intervals to the start of a job.
- Pools no longer create a duplicate runner for a job that a scale set in the same runner group is guaranteed to service.
- Scale sets no longer let their warm pool empty under a steady stream of jobs when the provider is slow to delete instances. Runners being deleted no longer count against the scaling target.
- Reconciliation no longer reaps a runner that registered while GARM was listing the forge. This could kill a job that had just started, most often with JIT configuration disabled.
- Gitea runners are retired correctly when the completion event omits the runner name.
- Runners left in
creatingordeletingare recovered without a restart. - On GHES, scale set registration kept failing with a
404because the API base path was dropped from the registration URL. - Adding a repository where self hosted runners were never enabled reports a clear
409naming the likely cause, instead of a generic error. - PostgreSQL accepts pool and scale set labels longer than 64 characters.
- Database queries carry timeouts, so a database that stops answering no longer hangs GARM.
- The idle runner loop wakes up right after a runner is removed, so the warm pool is replenished sooner.
- Fixed a crash in the agent shell session handling.
What's Changed
- Migrate to gormigrate by @gabriel-samfira in #736
- Bump golang.org/x/term from 0.42.0 to 0.43.0 by @dependabot[bot] in #739
- Bump golang.org/x/mod from 0.35.0 to 0.36.0 by @dependabot[bot] in #738
- Bump golang.org/x/crypto from 0.50.0 to 0.51.0 by @dependabot[bot] in #737
- Bump github.com/go-openapi/runtime from 0.29.5 to 0.30.0 by @dependabot[bot] in #740
- Bump svelte from 5.53.6 to 5.55.7 in /webapp in the npm_and_yarn group across 1 directory by @dependabot[bot] in #741
- Fix lint errors and broken TOC by @gabriel-samfira in #743
- Bump github.com/go-openapi/runtime from 0.30.0 to 0.31.0 by @dependabot[bot] in #744
- Bump @sveltejs/kit from 2.57.1 to 2.60.1 in /webapp in the npm_and_yarn group across 1 directory by @dependabot[bot] in #745
- Bump golang.org/x/crypto from 0.51.0 to 0.52.0 by @dependabot[bot] in #746
- Bump github.com/gdamore/tcell/v2 from 2.13.9 to 2.13.10 by @dependabot[bot] in #747
- Bump github.com/go-openapi/runtime from 0.31.0 to 0.32.2 by @dependabot[bot] in #751
- Bump github.com/go-gormigrate/gormigrate/v2 from 2.1.5 to 2.1.6 by @dependabot[bot] in #749
- refactor(db): make SQL layer portable and concurrency-safe by @cbartz in #754
- Bump github.com/go-openapi/strfmt from 0.26.2 to 0.26.3 by @dependabot[bot] in #757
- feat(db): add PostgreSQL backend by @cbartz in #755
- Update webapp deps by @gabriel-samfira in #763
- Update all dependencies by @gabriel-samfira in #764
- ci: back postgres test data dir with tmpfs to avoid test timeout by @cbartz in #765
- fix(scalesets): remove debug print leaking auth token to stdout by @cbartz in #766
- Bump github.com/go-openapi/swag from 0.26.0 to 0.26.1 by @dependabot[bot] in #768
- Bump golang.org/x/term from 0.43.0 to 0.44.0 by @dependabot[bot] in #769
- Bump golang.org/x/mod from 0.36.0 to 0.37.0 by @dependabot[bot] in #770
- Bump github.com/jedib0t/go-pretty/v6 from 6.8.0 to 6.8.1 by @dependabot[bot] in #773
- Bump golang.org/x/crypto from 0.52.0 to 0.53.0 by @dependabot[bot] in #771
- Bump golang.org/x/sync from 0.20.0 to 0.21.0 by @dependabot[bot] in #772
- fix(webui): fix bugs, improve UX and deduplicate modal code by @gabriel-samfira in #774
- TUI improvements by @gabriel-samfira in #775
- Update all dependencies by @gabriel-samfira in #777
- Bump esbuild from 0.27.7 to removed in /webapp in the npm_and_yarn group across 1 directory by @dependabot[bot] in #780
- Add user agent to Invoke-FastWebRequest by @gabriel-samfira in #781
- Refactor garm command, add password reset, cleanup by @gabriel-samfira in #782
- Update Dockerfile, configs, etc by @gabriel-samfira in #783
- Update to vite 8 by @gabriel-samfira in #784
- Improve webapp error UX and add setup wizard intro modal by @gabriel-samfira in #785
- Add proxy support for GARM by @gabriel-samfira in #786
- Fix extra specs nil pointer deref by @gabriel-samfira in #788
- Bump github.com/alecthomas/chroma/v2 from 2.26.1 to 2.27.0 by @dependabot[bot] in #789
- Bump the npm_and_yarn group across 1 directory with 2 updates by @dependabot[bot] in #790
- Bump github.com/go-openapi/runtime from 0.32.3 to 0.32.4 by @dependabot[bot] in #791
- Fix instance transition when retrying by @gabriel-samfira in #795
- Fix swagger []byte definitions by @gabriel-samfira in #802
- Add forge instance entity by @gabriel-samfira in #800
- Refactor modals, fix some inconsistencies by @gabriel-samfira in #803
- Add real-time log streaming page by @gabriel-samfira in #804
- fix(apiserver): return 400 instead of 500 for missing webhook secret by @cbartz in #805
- Fix log stream in webapp by @gabriel-samfira in #806
- Safety improvements by @gabriel-samfira in #807
- Tui overhaul by @gabriel-samfira in #808
- Allow pinning garm-agent version and UX improvements by @gabriel-samfira in #809
- Allow the GARM agent to connect to GARM insecurely by @gabriel-samfira in #810
- doc: add forge-instance details to gitea.md by @Infinoid in #811
- Improve template manager/generation by @gabriel-samfira in #816
- scaleset: reap timed-out runners stuck in failed status by @benoit-nexthop in #813
- scaleset: fix reapTimedOutRunners deadlock on creating instances by @benoit-nexthop in #814
- Add version display to navigation sidebar by @benoit-nexthop in #601
- Make instance state transitions race-tolerant and bound provider execution time by @gabriel-samfira in #817
- Bump golang.org/x/sync from 0.21.0 to 0.22.0 by @dependabot[bot] in #818
- Bump golang.org/x/mod from 0.37.0 to 0.38.0 by @dependabot[bot] in #821
- Bump golang.org/x/crypto from 0.53.0 to 0.54.0 by @dependabot[bot] in #819
- Finish proxy support by @gabriel-samfira in #822
- Update all dependencies by @gabriel-samfira in #831
- scaleset: allow updating disable_update on existing scale sets by @benoit-nexthop in #835
- Bump swagger-typescript-api from 13.2.7 to 13.12.2 in /webapp in the npm_and_yarn group across 1 directory by @dependabot[bot] in #837
- Bump github.com/go-openapi/runtime from 0.32.6 to 0.33.0 by @dependabot[bot] in #833
- Bump github.com/go-openapi/swag from 0.27.3 to 0.28.0 by @dependabot[bot] in #832
- Bump ip-address from 10.2.0 to 10.4.0 in /webapp in the npm_and_yarn group across 1 directory by @dependabot[bot] in #839
- Bump gorm.io/driver/postgres from 1.6.0 to 1.6.2 by @dependabot[bot] in #840
- Bump the npm_and_yarn group across 1 directory with 2 updates by @dependabot[bot] in #845
- Retry failed gitea tools updates by @katexochen in #852
- Add --password-file to init and profile commands by @katexochen in #853
- Update all dependencies by @gabriel-samfira in #863
- Migrate from a concatenated pseudo pool ID by @gabriel-samfira in #866
- Bump fast-uri from 3.1.5 to 3.1.7 in /webapp in the npm_and_yarn group across 1 directory by @dependabot[bot] in #864
- Bump golang.org/x/crypto from 0.55.0 to 0.56.0 by @dependabot[bot] in #869
- Bump github.com/go-openapi/strfmt from 0.27.0 to 0.27.2 by @dependabot[bot] in #868
- Bump github.com/go-openapi/runtime from 0.33.1 to 0.33.2 by @dependabot[bot] in #867
- Bump github.com/go-openapi/swag from 0.29.1 to 0.29.2 by @dependabot[bot] in #870
- Bug and stability fixes by @gabriel-samfira in #871
- Bump golang.org/x/oauth2 from 0.36.0 to 0.37.0 by @dependabot[bot] in #872
- Bump golang.org/x/sync from 0.22.0 to 0.23.0 by @dependabot[bot] in #874
- Bump golang.org/x/mod from 0.40.0 to 0.41.0 by @dependabot[bot] in #873
- Bump js-yaml from 4.3.1 to 4.3.2 in /webapp in the npm_and_yarn group across 1 directory by @dependabot[bot] in #876
- Bump github.com/jackc/pgx/v5 from 5.10.0 to 5.11.0 by @dependabot[bot] in #877
- Improve metrics by @gabriel-samfira in #878
- Add PAT expiration metrics and alerts by @gabriel-samfira in #879
- Fix legacy scaleset ID instance list by @gabriel-samfira in #880
- Update webapp dependencies by @gabriel-samfira in #881
- Cleanup forge client by @gabriel-samfira in #882
- Add endpoint label to forge client ops by @gabriel-samfira in #883
- Add rate limit toggles by @gabriel-samfira in #884
- Bump golang.org/x/term from 0.45.0 to 0.46.0 by @dependabot[bot] in #885
- Bump golang.org/x/crypto from 0.56.0 to 0.57.0 by @dependabot[bot] in #886
- Docs and fixes by @gabriel-samfira in #888
- Set URLs before starting the consumer by @gabriel-samfira in #889
- Update slack badge by @gabriel-samfira in #891
- Prevent potential job cache resurection by @gabriel-samfira in #899
- Bump gorm.io/driver/postgres from 1.6.2 to 1.6.3 by @dependabot[bot] in #896
- Gate initSchema by @gabriel-samfira in #900
- Bump github.com/go-gormigrate/gormigrate/v2 from 2.1.6 to 2.1.7 by @dependabot[bot] in #901
- Bump github.com/go-openapi/errors from 0.22.8 to 0.22.9 by @dependabot[bot] in #902
- Bump ip-address from 10.5.0 to 10.7.2 in /webapp in the npm_and_yarn group across 1 directory by @dependabot[bot] in #903
- Bump github.com/go-openapi/strfmt from 0.27.2 to 0.27.3 by @dependabot[bot] in #906
- Bump github.com/go-openapi/runtime from 0.33.2 to 0.33.3 by @dependabot[bot] in #907
- Bump the npm_and_yarn group across 1 directory with 5 updates by @dependabot[bot] in #909
- Bump the npm_and_yarn group across 1 directory with 4 updates by @dependabot[bot] in #908
- fix(database): widen tags.name to varchar(255) by @cbartz in #910
- cache: avoid lock order deadlock between caches by @rm-you in #912
- Split scaleset jobs in their own table by @gabriel-samfira in #913
- Attempt better runner handling, add pool attribution to jobs and add prometheus rules by @gabriel-samfira in #914
- Give the scale set client a real transport by @gabriel-samfira in #915
- Update all dependencies by @gabriel-samfira in #916
- Distinguish a GitHub 403 from a 401 by @gabriel-samfira in #917
- Return 409 when runner registration is not enabled by @gabriel-samfira in #918
- React to queued jobs without waiting for the poll by @gabriel-samfira in #919
- Fix forge instance column types on PostgreSQL by @gabriel-samfira in #922
- List scale set jobs in the job listing again by @gabriel-samfira in #923
- Bump follow-redirects from 1.16.0 to 1.16.1 in /webapp in the npm_and_yarn group across 1 directory by @dependabot[bot] in #924
- Bump vite from 8.0.16 to 8.3.5 in /webapp in the npm_and_yarn group across 1 directory by @dependabot[bot] in #925
- Pass ctx to GORM connection, handle
creatinginstances and ensure we omit associations by @gabriel-samfira in #926 - Update all dependencies by @gabriel-samfira in #927
- Stop reporting failed scale set deletes as success by @LucaCappelletti94 in #928
- Add
bypassGHErrorsto scale set deletion by @LucaCappelletti94 in #929 - Cancel scale-set listeners before bounded session cleanup by @Hekzory in #940
- Bump happy-dom from 20.8.9 to 21.0.4 in /webapp in the npm_and_yarn group across 1 directory by @dependabot[bot] in #938
- Preserve GHES base path in scale set registration URL by @grayudu in #937
- Update all dependencies (go and webapp) by @gabriel-samfira in #942
- Update WebUI to be compatible with SvleteKit 3 by @gabriel-samfira in #943
- Add more architectures for both github and gitea by @gabriel-samfira in #949
- Compare the scale set target with runners that can still take a job by @samiralmokhamad in #951
- Bump github.com/jedib0t/go-pretty/v6 from 6.9.1 to 6.9.2 by @dependabot[bot] in #965
- fix: Wake ensure idle loop after runner removal by @SystemKeeper in #968
- Add awesome-runners badge by @jonico in #967
- Update all dependencies by @gabriel-samfira in #975
- Reword confusing section by @gabriel-samfira in #978
- templates: report idle before starting the runner service (gitea linux) by @fernvenue in #976
- fix: retire Gitea runners when completion events omit runner names by @jtatum in #939
- Update dependencies by @gabriel-samfira in #981
New Contributors
- @cbartz made their first contribution in #754
- @katexochen made their first contribution in #852
- @rm-you made their first contribution in #912
- @LucaCappelletti94 made their first contribution in #928
- @Hekzory made their first contribution in #940
- @grayudu made their first contribution in #937
- @samiralmokhamad made their first contribution in #951
- @jonico made their first contribution in #967
- @fernvenue made their first contribution in #976
- @jtatum made their first contribution in #939
Full Changelog: v0.2.1...v0.2.2