Upgrading
What to check when you move to a new version. A version not listed here needs nothing.
The panel now installs an update only when GitHub holds build provenance for the exact binary and it verifies. Security has what is checked. The check runs in the version you are updating from, so it first applies to the update after v0.64. From then on Update now is refused, and the running version stays, for:
- a private update repository (
WINDLASS_UPDATE_TOKEN) - a fork that releases from a workflow file other than
.github/workflows/release.yaml - a server that cannot reach
api.github.comortuf-repo-cdn.sigstore.dev
Update those by hand with install.sh --binary after verifying the release, and set
WINDLASS_NO_SELF_UPDATE=1 to take the button out of the panel. Building from source needs
Go 1.27.
Restore a backup taken on v0.64 only with v0.64 or later. Backups now copy the project’s
named volumes, can be encrypted, and leave a database’s own files out when there is a dump.
A Windlass older than v0.64, such as windlass.previous after a rollback, does not know
this: it writes the copied volumes into the project as plain files under
.windlass/volumes, drops symbolic links, replaces the whole project directory, database
files included, and cannot open an encrypted backup at all. Backups taken before v0.64
restore on v0.64 as before.
Private registry credentials now work on an installed server. Before v0.64 the Docker
socket proxy refused the check docker login makes, so logging in to a registry failed.
Updating from the panel does not change the proxy. On a server installed before v0.64,
rerun the installer with the options you installed with, such as --no-caddy: it restarts
the proxy with registry login allowed, and the panel with it, while deployed apps keep
running. On the container install, add AUTH: 1 to the
docker-proxy service’s environment in your compose file and run docker compose up -d.
Docker storage clean-up is on by default. After the first successful deployment on v0.62, Windlass removes unused images older than 7 days, keeping the images of each project’s last 5 successful deployments, and trims the build cache to 10 GB. That is every image on the host that no container uses, not only ones Windlass pulled, and the age is from when the image was built. If you keep images on the server that no container uses, such as ones you load by hand for later, switch it off or change the limits in Settings, System, Docker storage before deploying. See Deployments.
Windlass now believes forwarded headers only from a reverse proxy it has been told about, and passes fewer of them to plugins. The recommended install, Caddy on the same server as Windlass, needs no change. Check the cases below if yours differs.
A reverse proxy that is not on the same host
Section titled “A reverse proxy that is not on the same host”This is the widest case: Caddy in a container, or a proxy on another machine.
WINDLASS_TRUSTED_PROXIES defaults to loopback. Before v0.61 it covered the client’s address
only, and X-Forwarded-Proto was believed from anyone. Now it covers both. A proxy outside
the list is ignored, so Windlass treats every request as plain HTTP:
- sign-in cookies are not marked
Secureand noStrict-Transport-Securityheader is sent - OAuth callback, GitHub App and webhook URLs are built with
http://, which a provider that has thehttps://address registered can refuse
As before v0.61, the audit log and the sign-in rate limit also see such a proxy’s address for every visitor.
Windlass logs a warning the first time it happens, with the address to add:
sudo journalctl -u windlass | grep WINDLASS_TRUSTED_PROXIES{"level":"WARN","msg":"forwarding headers ignored: this address is not in WINDLASS_TRUSTED_PROXIES. ...","address":"10.89.5.2"}In the container install, read it with docker compose -f docker-compose.install.yaml logs windlass.
If that address is your proxy, add it and restart:
sudo systemctl edit windlass[Service]Environment=WINDLASS_TRUSTED_PROXIES=127.0.0.0/8,::1/128,10.89.5.2In the container install, set the same variable under environment: for the windlass
service.
Trust the one address, never a whole Docker network: every container on a trusted network can claim any client address and claim HTTPS. Install has the detail for the container layout. The warning is logged once for each address, for private addresses only, and for at most 16 of them between restarts.
Plugins
Section titled “Plugins”Windlass sets X-Forwarded-For and X-Forwarded-Proto on a request to a plugin and removes
what the client sent in Forwarded, X-Forwarded, every X-Forwarded-* header and 39 other
names, among them X-Real-IP, CF-Connecting-IP, True-Client-IP, X-Original-URL and
X-Rewrite-URL. A plugin that reads X-Forwarded-Host, expects a chain of addresses in
X-Forwarded-For, or takes the client’s address from a CDN’s header gets less than before.
Read the address and scheme from the two headers Windlass sets. The
plugin SDK has the contract.
A proxy that sends X-Real-IP
Section titled “A proxy that sends X-Real-IP”X-Real-IP is read only when the request has no X-Forwarded-For at all. A proxy that
sends both and puts the real client only in X-Real-IP now has its X-Forwarded-For
believed instead. Have it send the client’s address in X-Forwarded-For.
A proxy that writes something other than an address
Section titled “A proxy that writes something other than an address”When the entry a trusted proxy added to X-Forwarded-For is not an address, unknown for
one, Windlass stops there and records the proxy’s own address. An address with a port or in
brackets is read as before.
Audit log
Section titled “Audit log”A client that connects directly over IPv6 is recorded as 2001:db8::1, no longer
[2001:db8::1].
The panel’s hostname
Section titled “The panel’s hostname”Two changes to the hostname set under Settings, General, Panel domain.
Plain HTTP requests to it are now redirected to HTTPS, as they already were for a project’s
domain. Before v0.61 the panel answered on port 80, where a sign-in travels unencrypted. If
something in front of Caddy reaches the panel over plain HTTP on that hostname, for example
Cloudflare in Flexible mode or a tunnel pointed at http://localhost:80, it now gets a
redirect and can loop. Point it at HTTPS on port 443, or at Windlass on port 8080 with its
address in WINDLASS_TRUSTED_PROXIES.
A webhook registered while you were signed in over http:// has an http:// address, and
GitHub and GitLab do not follow a redirect when they deliver one, so pushes stop starting
deployments. Check the address of each project’s webhook, and of the GitHub App if you
created it from the panel, at the provider. Change http:// to https:// there, or sign in
over HTTPS and save the project’s Git settings again.
The redirect needs Caddy to listen on port 443. The installer sets that up. If Caddy was already on the server and serves port 80 only, the panel’s hostname stops answering after the update, as a project’s domain already did there. Add a 443 listener to that Caddy server, or reach the panel on port 8080 until you have.
The panel and a project can no longer share a hostname. Adding the panel’s hostname to a project was accepted before v0.61, and after a Caddy restart the project’s container answered on the panel’s hostname. Now both sides refuse it. A project that already holds the panel’s hostname is no longer routed there, and Windlass logs a warning naming it:
sudo journalctl -u windlass | grep "domain not routed"Remove that domain from the project in its Domains tab.
The same command shows one more case. A domain written by hand into a project’s
.windlass.json was routed as written before v0.61, including a wildcard such as
*.example.com, which could cover the panel’s hostname or another project’s. A name the
Domains tab would refuse is no longer routed. Caddy as Windlass sets it up cannot get a
certificate for a wildcard, so in practice only plain HTTP traffic to one stops. Add each
hostname you need by name.
A hostname listed in two projects’ .windlass.json files used to go to whichever project
Windlass read last. It now stays with the project that already has it, and the other
project’s entry is ignored with a “domain not indexed” warning in the same log. The warning
names both projects, so check it after updating: if two of your manifests already listed
one hostname, the project that had it at the update keeps it, which may not be the one you
meant. To move a hostname, remove it from the first project, then add it to the second.