Technical Field NotesBack to articles
Self-hosted mesh operations ยท Updated October 10, 2026

Headscale 0.29.4: OIDC Callback Hardening for Self-Hosted Mesh Control

What Headscale 0.29.4 changes about OIDC callback cookies, single-use state, startup validation, and what to re-test before upgrading a control plane.

Short answer: Headscale 0.29.4 hardens the OIDC login path: state and nonce cookies take their Secure flag from server_url so they survive a TLS-terminating proxy, callback state is single-use, and an invalid issuer or missing client credentials now fails at startup instead of at first login. This is an independent technical field note. It separates what the project documentation and release records say from what an operator still has to test. The goal is a useful decision record, not a promise about performance, security, compatibility, or operating cost.

Why this release matters to operators behind a proxy

The official release notes for v0.29.4 describe OIDC callback hardening: state and nonce cookies take their Secure flag from server_url so they survive a TLS-terminating proxy, a callback state is single-use, and an invalid oidc.issuer or missing oidc.client_id/oidc.client_secret fails at startup. The same release fixes an interactive OIDC login failure when the confirmation page is reloaded by an ad blocker, back navigation, or pull-to-refresh; the confirmation page now has its own URL, keeping single-use authorization codes out of reloads. Operators who proxy Headscale should read those two fixes as one contract: the callback flow is stricter and more forgiving at the same time, and both halves need a test.

The login fixes ride along with correctness work

Version 0.29.4 also fixes deleting a node leaving its long poll open, a node being listed among its own peers in an incremental map update (which crashed the Tailscale Android app device list), an expired node staying online forever because expiring it updated the key deadline without ending its map session, and exit nodes not offered by recent macOS and iOS clients that read the suggest-exit-node peer attribute. None of these are OIDC issues, but they all surface during the same upgrade window, and a login test that ignores peer visibility will miss half the release.

A concrete pre-upgrade test sequence

Back up the database and the current binary first; 0.29.4 is a point release, but the fixes touch login state and the map session. Then, on a staging control plane: run an interactive OIDC login through the production proxy path; reload the confirmation page and confirm login still completes; capture and replay a callback state and confirm the second use fails; set a deliberately invalid issuer and confirm the process fails at startup with a clear error; delete a node while a client is connected and confirm the client re-authenticates instead of hanging on a stale long poll. Record the expected and observed result for each step, because the release changes behavior an operator cannot see from version numbers alone.

What the release does not decide for you

Headscale is a self-hosted coordination server, so identity policy, provider availability, key expiry windows, and proxy TLS hygiene remain operator concerns. The hardening reduces two concrete replay and reload failure modes; it does not make the identity provider highly available, and it does not audit the network path between nodes and the control plane. Treat the upgrade as a reason to re-run an acceptance checklist, not as a substitute for one.

How the hardened callback interacts with common proxy setups

Three proxy configurations behave differently under the new rules, and each deserves its own test. A TLS-terminating reverse proxy in front of Headscale previously needed cookie flags adjusted by hand or login broke; with the Secure flag now derived from server_url, an operator should set that value to the public HTTPS URL exactly and confirm the browser receives Secure cookies. A plain-HTTP deployment behind the proxy should keep server_url on HTTP, since forcing Secure cookies there would break login entirely. And a deployment that terminates TLS at the identity provider's own domain, with the callback crossing between the two, should verify the new single-use state survives the redirect chain, because the state cookie now follows the origin that server_url names.

Why fail-fast startup validation is its own feature

An invalid oidc.issuer or missing client credentials previously surfaced as a confusing failure at first login, often days after a config change shipped, when the operator who made it had moved on. Failing at startup turns a delayed, user-visible outage into an immediate, operator-visible one. Deployment pipelines should treat that change as free validation: a config test that starts the binary and expects failure on bad OIDC settings now catches what used to require a scripted login attempt. Add it to the deploy checklist as a negative case, the same way a database migration test belongs before an application upgrade.

Questions this field note answers

The questions below restate the acceptance checks an operator should be able to answer before relying on the behavior described above.

Limitations

Related infrastructure context

For the physical layer around a systems deployment, TismTek provides fiber and network infrastructure work near Aurora. The team also documents on-premises compute and private AI systems. For a site discussion, call (720) 694-1976. See the 3-2-1 backup guide for recovery planning and the private AI systems overview for the broader on-premises context.

Sources