Update ghcr.io/juanfont/headscale Docker tag to v0.29.8 #8

Open
renovate-bot wants to merge 1 commit from renovate/ghcr.io-juanfont-headscale-0.x into main
Collaborator

This PR contains the following updates:

Package Update Change
ghcr.io/juanfont/headscale minor 0.26.0 → v0.29.8

⚠️ Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

juanfont/headscale (ghcr.io/juanfont/headscale)

v0.29.8

Compare Source

Minimum supported Tailscale client version: v1.80.0

Changes
  • Peers now carry their own capability version, not the version of the node that receives the map. Tailscale v1.106 and newer use it to pick per-peer features such as hybrid WireGuard handshakes; with the wrong version, a v1.106 client could not connect to an older one #​3724

Upgrade

Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.

Changelog

  • bfc57bf CHANGELOG: add 0.29.8 capability version fix
  • 5aeae67 CHANGELOG: date 0.29.8
  • 985d446 github: add TestCurlMixedCapVer to integration jobs
  • 173de2a integration: curl between head and v1.104 clients
  • ca93461 mapper, state: send each peer its own capability version
  • 7d2e2ac mapper: check peer Cap against a Tailscale SaaS capture
  • 2322d6b servertest: wait for each rapid reconnect to connect
  • 697a88e servertest: wait for the client to see its own expiry
  • 5247b95 state: test that a repeated capability version stays quiet
  • 4be88b0 types: add runtime Node.CapVer, drop unused TailNodes

v0.29.8

Compare Source

Minimum supported Tailscale client version: v1.80.0

Changes
  • Peers carry their own capability version, not the version of the node that receives the map. Tailscale v1.106 and newer use it to pick per-peer features such as hybrid WireGuard handshakes. With the wrong version, a v1.106 client could not connect to an older one. #​3724

v0.29.7

Compare Source

Minimum supported Tailscale client version: v1.80.0

Security

This is a security release. It fixes findings from Anthropic's oss-scanner project and
the Tailworm report. None are critical, but some can cause denial of service in
Headscale. We recommend that all users upgrade to Headscale 0.29.7 and Tailscale
v1.104.4 or newer as soon as possible, especially those using Tailscale SSH.

Tailscale v1.104.4 fixes vulnerabilities in SSH forwarding, SSH session handling and
Serve. These fixes run in tailscaled on your nodes; upgrading Headscale alone does
not apply them.

See Tailscale's security bulletins and Tailscale SSH: Findings and fixes.

To disable SSH agent and port forwarding on a node, set
TS_SSH_DISABLE_FORWARDING=1 in the tailscaled service environment and restart
the service. This setting applies to all Tailscale SSH sessions on that node and
is also available in older clients. #​3624

This release also fixes the issues that oss-scanner
reported in Headscale: ANT-2026-MLP8ZR5T, ANT-2026-LYVGXVSW, ANT-2026-AWGRB7O1, ANT-2026-QMCAFJ1Q, ANT-2026-RQS7JAPP, ANT-2026-5B6KE87K, ANT-2026-KFCFFM34, ANT-2026-K903ZEUA, ANT-2026-NM50ZP4N, ANT-2026-ZC18AF82, ANT-2026-NWTIBB02, ANT-2026-MX8FKG4K. #​3603

Changes
  • Metrics are no longer exposed to unregistered clients through the Noise protocol. They remain available only on the configured metrics listener; an empty metrics_listen_addr disables that listener #​3623
  • Update the Tailscale dependency to v1.104.4, which bounds how much of an unexpected DERP HTTP response is read #​3577
  • Keep pending registrations and OIDC logins at capacity instead of evicting ones awaiting approval; new requests get a retry response, and registered nodes keep capacity for SSH checks #​3586
  • Cap stored pending registration data at 64 KiB, keeping tags and expiry; oversized interactive registrations are rejected #​3586
  • Check the OIDC login type before storing anything, accept each OIDC callback only once, and free an SSH check's slot once the client has read its result #​3586
  • Stop serving a route that is a single address inside the node IP ranges, such as 100.64.0.11/32 or ::ffff:100.64.0.11/128, because it names a node, not a subnet; the route stays approved and listed, and wider routes are still served #​3603
  • Require a valid pre-auth key to re-register an expired tagged node #​3603
  • Another user's key or login on a tagged machine now creates a new device for that user instead of re-authenticating the tagged node #​3603
  • Fix one node with a stored key expiry outside the years 0 to 9999 in UTC failing the map of every node that can see it; it is now left out of its peers' maps and the startup check names it with the fix command #​3603
  • Refuse a key expiry outside the years 0 to 9999 in UTC on registration, on the OIDC token-expiry path and in headscale nodes expire / POST /api/v1/node/{node_id}/expire (HTTP 400); the latest accepted expiry no longer fails node listings on PostgreSQL in a zone east of UTC #​3603
  • Keep the first 256 endpoints and 4096 announced routes from client reports; oversized hostnames, requested tags or other metadata return a registration error or HTTP 413 on map updates. Zoned IPv6 endpoints are refused #​3603
  • At startup, trim stored hostnames, endpoints and routes to the client-report limits and remove zoned endpoints. Hostinfo exceeding its size or tag limit is dropped until the next valid report #​3603
  • Pending interactive registrations and follow-up waits keep only the hostname, OS and requested tags; other device details arrive with the first map request. Reauthentication preserves routes, services and endpoints #​3603
  • Fix web reauthentication dropping the discovery key, so peers could not reach the device #​3603
  • A stalled request body, or a Noise tunnel with no open request, is closed after 30 seconds #​3603
  • A registration follow-up from a machine other than the one that started the registration is refused before it waits #​3603
  • Only the newest follow-up waits on a pending registration or SSH check; older ones are answered at once #​3603
  • Fix registration locks staying in memory after the registration ends #​3603
  • Fix concurrent deletes of one node freeing its addresses and announcing its removal more than once #​3603
  • OIDC verifies an email against the document supplying it; an email_verified flag without an address no longer verifies another document's email #​3603
  • Fix release builds reporting their version with a +dirty suffix #​3584
  • Fix SSH policy acceptEnv having no effect, so allowed environment variables reach SSH sessions. Upgrade SSH destination nodes to Tailscale v1.104.4 or newer before using acceptEnv, because older clients can disclose forwarded values #​3569

Upgrade

Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.

Changelog

  • c0a51b2 .gitattributes: mark golden data as generated
  • c9cf210 CHANGELOG: align the 0.29.7 entries with earlier releases
  • 3d9031c CHANGELOG: document SSH acceptEnv fix
  • 5083559 CHANGELOG: document the 0.29.7 security and patch release
  • 8651eb9 CHANGELOG: list the oss-scanner findings for 0.29.7
  • abe807a CHANGELOG: list the pending authentication bounds for 0.29.7
  • 3345493 auth, state: keep only hostname, OS and tags in pending registrations
  • 1b7435c auth: check the follow-up's machine key before it waits
  • 99d10b9 db, state: let only the delete that removed a node free its addresses
  • 151c852 go.mod: pin golang-lru/v2 to main for expirable.Close
  • 718cbc3 go.mod: tidy for Go 1.27
  • 044d8f5 go.mod: update tailscale.com to v1.104.4
  • 37b4237 hscontrol: bound pending authentication without evicting sessions
  • be114c0 hscontrol: refuse a key expiry that cannot be encoded
  • c32bf08 hscontrol: remove unused OIDC user change result
  • 3bb6d3a integration/tsic: drop unused watchIPN
  • fd6547f integration: guard SSH acceptEnv forwarding
  • 15af45c mapper: skip peers whose key expiry cannot be encoded
  • 2d881c5 noise: restrict metrics to the metrics listener
  • bc3ac27 noise: time out stalled bodies and idle tunnels
  • e1c6cb9 oidc: keep email_verified with the address it came with
  • 6e0d520 policy/v2, servertest, hscontrol: add tailnet overlap route captures
  • 02b1528 policy: pin SSH forwarding behavior and recommend upgrades
  • f193207 prek: exempt step captures from the large file check
  • 93340a6 release: reject dirty sources and build artifacts
  • 9318ce4 release: retry existing tags without the Docker downgrade
  • 99cb5c1 servertest: add login, profile, restart and register log helpers
  • c848c5a servertest: add relogin and auth key helpers
  • 7a51c8f servertest: compare router self routes with captures
  • 9ce0b28 servertest: compare user profiles in via captures
  • 4647866 servertest: list passing via captures
  • e56661c state: bound client reports of nodes loaded at startup
  • 4d04361 state: drop registration locks once unused
  • c8fb25d state: give another user's key on a tagged machine a new device
  • e6219cd state: need a valid pre-auth key to re-register an expired tagged node
  • 2852b65 state: never serve a single address inside the node ranges
  • 514979b state: stop the auth cache TTL sweeper on Close
  • 1d11be0 testcapture: record multi-step captures and API error detail
  • d116f2f testcapture: refuse golden captures that name no tool commit
  • a4c0a09 types, auth, noise: let one request wait on each auth session
  • 52ba6a3 types, noise: bound the Hostinfo and endpoints a client reports
  • f20366b types: emit SSH environment capability by default

v0.29.7

Compare Source

Minimum supported Tailscale client version: v1.80.0

Security

This is a security release. It fixes findings from Anthropic's oss-scanner project and
the Tailworm report. None are critical, but some can cause denial of service in
Headscale. We recommend that all users upgrade to Headscale 0.29.7 and Tailscale
v1.104.4 or newer as soon as possible, especially those using Tailscale SSH.

Tailscale v1.104.4 fixes vulnerabilities in SSH forwarding, SSH session handling and
Serve. These fixes run in tailscaled on your nodes; upgrading Headscale alone does
not apply them.

See Tailscale's
security bulletins and
Tailscale SSH: Findings and fixes.

To disable SSH agent and port forwarding on a node, set
TS_SSH_DISABLE_FORWARDING=1 in the tailscaled service environment and restart
the service. This setting applies to all Tailscale SSH sessions on that node and
is also available in older clients. #​3624

This release also fixes the issues that oss-scanner
reported in Headscale: ANT-2026-MLP8ZR5T, ANT-2026-LYVGXVSW, ANT-2026-AWGRB7O1, ANT-2026-QMCAFJ1Q, ANT-2026-RQS7JAPP, ANT-2026-5B6KE87K, ANT-2026-KFCFFM34, ANT-2026-K903ZEUA, ANT-2026-NM50ZP4N, ANT-2026-ZC18AF82, ANT-2026-NWTIBB02, ANT-2026-MX8FKG4K. #​3603

Changes
  • Metrics are no longer exposed to unregistered clients through the Noise protocol. They remain available only on the configured metrics listener. An empty metrics_listen_addr disables that listener. #​3623
  • The Tailscale dependency is updated to v1.104.4, which bounds how much of an unexpected DERP HTTP response is read. #​3577
  • At capacity, pending registrations and OIDC logins awaiting approval are kept instead of evicted. New requests get a retry response, and registered nodes keep capacity for SSH checks. #​3586
  • Stored pending registration data is capped at 64 KiB, keeping tags and expiry. Oversized interactive registrations are rejected. #​3586
  • headscale checks the OIDC login type before storing anything, accepts each OIDC callback only once, and frees an SSH check's slot once the client has read its result. #​3586
  • headscale no longer serves a route that is a single address inside the node IP ranges, such as 100.64.0.11/32 or ::ffff:100.64.0.11/128, because it names a node, not a subnet. The route stays approved and listed, and wider routes are still served. #​3603
  • Re-registering an expired tagged node requires a valid pre-auth key. #​3603
  • Another user's key or login on a tagged machine now creates a new device for that user instead of re-authenticating the tagged node. #​3603
  • One node with a stored key expiry outside the years 0 to 9999 in UTC no longer fails the map of every node that can see it. It is now left out of its peers' maps, and the startup check names it with the fix command. #​3603
  • headscale refuses a key expiry outside the years 0 to 9999 in UTC on registration, on the OIDC token-expiry path and in headscale nodes expire / POST /api/v1/node/{node_id}/expire (HTTP 400). The latest accepted expiry no longer fails node listings on PostgreSQL in a zone east of UTC. #​3603
  • headscale keeps the first 256 endpoints and 4096 announced routes from client reports. Oversized hostnames, requested tags or other metadata return a registration error or HTTP 413 on map updates. Zoned IPv6 endpoints are refused. #​3603
  • At startup, headscale trims stored hostnames, endpoints and routes to the client-report limits and removes zoned endpoints. Hostinfo exceeding its size or tag limit is dropped until the next valid report. #​3603
  • Pending interactive registrations and follow-up waits keep only the hostname, OS and requested tags. Other device details arrive with the first map request. Reauthentication preserves routes, services and endpoints. #​3603
  • Web reauthentication no longer drops the discovery key, which left peers unable to reach the device. #​3603
  • A stalled request body, or a Noise tunnel with no open request, is closed after 30 seconds. #​3603
  • A registration follow-up from a machine other than the one that started the registration is refused before it waits. #​3603
  • Only the newest follow-up waits on a pending registration or SSH check. Older ones are answered at once. #​3603
  • Registration locks no longer stay in memory after the registration ends. #​3603
  • Concurrent deletes of one node no longer free its addresses and announce its removal more than once. #​3603
  • OIDC verifies an email against the document supplying it. An email_verified flag without an address no longer verifies another document's email. #​3603
  • Release builds no longer report their version with a +dirty suffix. #​3584
  • SSH policy acceptEnv used to have no effect. Now allowed environment variables reach SSH sessions. Upgrade SSH destination nodes to Tailscale v1.104.4 or newer before using acceptEnv, because older clients can disclose forwarded values. #​3569

v0.29.6

Compare Source

Minimum supported Tailscale client version: v1.80.0

Security
  • Build with Go 1.27.3 to reject certificate chains containing the compromised eMudhra intermediate keys (CVE-2026-111943) Go #​82345
  • Update and pin the normal and debug container bases to images whose CA bundles no longer include emSign ECC Root CA - G3 #​3579
  • Update golang.org/x/net to v0.60.0, golang.org/x/text to v0.42.0 and gRPC to v1.83.2 to address HTTP/2 denial-of-service and text-processing vulnerabilities (x/net, x/text, gRPC)

Custom builds must be rebuilt with Go 1.27.3 or newer to receive the certificate-chain protection.

Changes
  • Speed up peer-map construction on large tailnets by finding each node's matching rules once, instead of checking every pair of nodes against every rule #​3556
  • Build the peer map once per policy write instead of twice, and skip the rebuild when reloading an unchanged policy #​3557
  • Reduce work when broadcasting map updates by avoiding repeated recipient filtering #​3568
  • Avoid INTERNAL_ERROR stream errors when a node logs out or is deleted, or when Headscale shuts down; writes already in progress have a short grace period to finish, while clients that stop reading are still disconnected #​3575
  • Return database-open errors instead of risking a panic or returning a partially initialized database handle #​3496
  • Update the Tailscale dependency to v1.102.0 for Go 1.27 JSON compatibility in SSH check responses

Upgrade

Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.

Changelog

  • ee74ce4 CHANGELOG: document the 0.29.6 security and patch release
  • a2b1d78 CHANGELOG: set the 0.29.6 release date
  • f2b5f45 all: prepare 0.29.6 security updates
  • c32e8e4 db: return database-open errors for 0.29.6
  • 981f2eb lint: retain the exhaustruct exclusion with the updated toolchain
  • f1499ce mapper: avoid refiltering broadcast recipients
  • c618198 policy: backport peer-map optimizations for 0.29.6
  • 941d7ff poll: end stopped map sessions without resetting active streams

v0.29.6

Compare Source

Minimum supported Tailscale client version: v1.80.0

Security
  • headscale is built with Go 1.27.3, which rejects certificate chains containing the compromised eMudhra intermediate keys (CVE-2026-111943). Go #​82345
  • The normal and debug container bases are updated and pinned to images whose CA bundles no longer include emSign ECC Root CA - G3. #​3579
  • golang.org/x/net is updated to v0.60.0, golang.org/x/text to v0.42.0 and gRPC to v1.83.2, addressing HTTP/2 denial-of-service and text-processing vulnerabilities (x/net, x/text, gRPC).

Custom builds must be rebuilt with Go 1.27.3 or newer to receive the certificate-chain protection.

Changes
  • Peer-map construction is faster on large tailnets: headscale finds each node's matching rules once, instead of checking every pair of nodes against every rule. #​3556
  • headscale builds the peer map once per policy write instead of twice, and skips the rebuild when reloading an unchanged policy. #​3557
  • Broadcasting map updates does less work by avoiding repeated recipient filtering. #​3568
  • INTERNAL_ERROR stream errors no longer occur when a node logs out or is deleted, or when Headscale shuts down. Writes already in progress have a short grace period to finish, while clients that stop reading are still disconnected. #​3575
  • Database-open errors are returned instead of risking a panic or returning a partially initialized database handle. #​3496
  • The Tailscale dependency is updated to v1.102.0 for Go 1.27 JSON compatibility in SSH check responses.

v0.29.5

Compare Source

  • Fix via exit-node steering being undone by an unrelated ACL or grant rule that matches the viewer #​3495
  • Fix via grants not offering exit nodes and subnet routes to a group that names an unknown user #​3516
  • Fix SSH check periods and app grants dropping a group that names an unknown user #​3516
  • Fix policy tests and sshTests failing for a group that names an unknown user #​3516
  • Fix an unknown user in nodeAttrs rejecting the policy #​3516
  • Fix every grant being fully resolved as if it had via when the policy has no via grants, slowing map generation on large tailnets #​3538
  • Fix a data race in via route resolution when the policy has both via grants and ACLs #​3515
  • Fix packet filters under autogroup:self not updating after a user is added or renamed #​3501
  • Fix a rejected policy leaving its packet filter active #​3501
  • Fix an exit node or subnet router not seeing its own approved routes until it reconnected, so tailscale status did not show it offering an exit node #​3518
  • Fix deleted nodes, and peers hidden by a policy change, staying listed in the Tailscale Android app; removed peers are now sent as their own incremental map update #​3492 #​3527
  • Policy changes no longer resend DNS configuration to every node, sparing clients a full netmap rebuild; a node gets its DNS configuration when its own NextDNS nodeAttrs, tags or hostname change, which also fixes NextDNS device metadata going stale after a hostname change #​3492
  • Fix SSH access surviving the removal of its policy rules; clients kept their last SSH rules, and a pending SSH check could still be approved #​3517
  • Fix SSH check periods coming from the first check rule for a node pair instead of the rule for the login user #​3517
  • Policy changes resend a node's SSH policy only when it changed, sparing clients a full netmap rebuild #​3517
  • Fix SSH check accepting a repeated follow-up for an already-decided session, even after a rejection #​3526
  • Fix an ephemeral node being deleted while online, when it reconnected while its previous session was being marked offline #​3539
  • Fix peers dropping traffic from a node that re-authenticates after its key expired #​3541
  • Fix clients uploading logs to Tailscale Inc. while logtail.enabled is false; clients also granted the data-plane-audit-logs node attribute now go down until tailscale up #​3522
  • Fix a node ping being lost when a full map update is queued at the same time #​3523

Upgrade

Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.

Changelog

  • e279de9 Dockerfile: bump golang builders to 1.27.2 / 1.27.1
  • ceac1c1 Dockerfile: bump rust 1.95-trixie to 1.99-trixie
  • 755e6a1 all: build with Go 1.26.8
  • 8d2ac4a ci: regenerate the release integration test matrix
  • 52e0180 ci: reuse compiled integration tests and prebuilt images
  • 733d544 docker: let the tailscale builders fetch a newer toolchain
  • d0cb5a5 go.mod: update dependencies
  • 0a20796 hscontrol: preserve ephemeral nodes with live sessions
  • 98ce49d mapper: deliver peer removals as separate deltas
  • a4f854f mapper: preserve node pings when a full update is queued
  • 929e333 mapper: refresh self when approved routes change
  • 00f6702 mapper: retain reconnect removals until delivery
  • d03d3a0 mapper: retain the logtail instruction across client restarts
  • fb61927 mkdocs: bump version
  • 4d42bc6 noise: reject reused SSH check verdicts
  • bd8b8ce policy/v2: invalidate per-node filters when users change
  • 711d00d policy/v2: preserve via exit steering across unrelated rules
  • f079cf7 policy/v2: resolve unregistered users to an empty set
  • 5ec1a5a policy/v2: restore the live policy after a rejected update
  • 5fb2d4e policy/v2: revoke stale SSH access and recheck authentication
  • a4e56d7 policy/v2: skip route resolution without via grants
  • 6ed6dd8 policy/v2: stop ViaRoutesForPeer appending into pm.pol.Grants
  • 940260c servertest: bound fixture batching and await observable state
  • b16b705 servertest: wait for stable via-route netmaps
  • 5c25a66 state: send relogins as whole nodes when peers need them

v0.29.5

Compare Source

Minimum supported Tailscale client version: v1.80.0

Changes
  • An unrelated ACL or grant rule that matches the viewer no longer undoes via exit-node steering. #​3495
  • via grants offer exit nodes and subnet routes to a group that names an unknown user. #​3516
  • SSH check periods and app grants no longer drop a group that names an unknown user. #​3516
  • Policy tests and sshTests no longer fail for a group that names an unknown user. #​3516
  • An unknown user in nodeAttrs no longer rejects the policy. #​3516
  • When the policy has no via grants, grants are no longer fully resolved as if they had via, which slowed map generation on large tailnets. #​3538
  • via route resolution no longer has a data race when the policy has both via grants and ACLs. #​3515
  • Packet filters under autogroup:self update after a user is added or renamed. #​3501
  • A rejected policy no longer leaves its packet filter active. #​3501
  • An exit node or subnet router sees its own approved routes without reconnecting. Before, tailscale status did not show it offering an exit node. #​3518
  • Deleted nodes, and peers hidden by a policy change, no longer stay listed in the Tailscale Android app. Removed peers are now sent as their own incremental map update. #​3492 #​3527
  • Policy changes no longer resend DNS configuration to every node, sparing clients a full netmap rebuild. A node gets its DNS configuration when its own NextDNS nodeAttrs, tags or hostname change. This also fixes NextDNS device metadata going stale after a hostname change. #​3492
  • SSH access no longer survives the removal of its policy rules. Clients used to keep their last SSH rules, and a pending SSH check could still be approved. #​3517
  • SSH check periods come from the rule for the login user instead of the first check rule for a node pair. #​3517
  • Policy changes resend a node's SSH policy only when it changed, sparing clients a full netmap rebuild. #​3517
  • SSH check no longer accepts a repeated follow-up for an already-decided session, even after a rejection. #​3526
  • An ephemeral node is no longer deleted while online when it reconnects while its previous session is being marked offline. #​3539
  • Peers no longer drop traffic from a node that re-authenticates after its key expired. #​3541
  • Clients no longer upload logs to Tailscale Inc. while logtail.enabled is false. Clients also granted the data-plane-audit-logs node attribute now go down until tailscale up. #​3522
  • A node ping is no longer lost when a full map update is queued at the same time. #​3523

v0.29.4

Compare Source

Minimum supported Tailscale client version: v1.80.0

Changes
  • Fix a node being listed among its own peers in an incremental map update, which crashes the Tailscale Android app on the device list #​3459
  • Fix deleting a node leaving its long poll open, so the client stayed connected instead of asking for a new login #​3449
  • Fix interactive OIDC login 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 #​3448
  • Harden the OIDC callback: 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 a missing oidc.client_id/oidc.client_secret now fails at startup #​3334
  • Fix HTTP metrics only counting OPTIONS requests, so http_requests_total and http_request_duration_seconds now cover regular traffic #​3414
  • Fix extra-records filewatcher hanging on shutdown after the watched file is deleted, and leaking the watcher when setup fails #​3437
  • Lowercase DNS extra record names so mixed-case records resolve #​3366
  • Fix headscale users rename sending the raw --identifier flag value instead of the matched user's identifier, so renaming by name works again #​3442
  • Fix tailsql not shutting down with headscale, leaving the process hanging on graceful shutdown #​3400
  • Fix tvOS setup instructions: install the VPN configuration before setting the coordination server URL #​3431
  • Map requests that only bump LastSeen, endpoints or DERP region no longer resend the whole node to every peer, and health probes that change nothing no longer write. Adds headscale_mapper_changes_dropped_total and headscale_ha_health_updates_total #​3417 #​3450
  • The peer map is keyed by node ID and reused for writes that cannot change peer visibility, so a routine map request no longer rebuilds it. Adds headscale_nodestore_snapshot_builds_total #​3417 #​3450
  • Fix an expired node staying online forever, because expiring it updated the key deadline without ending its map session #​3472
  • Fix ACME renewal stopping permanently after a badNonce reply, because the error logging middleware drained the response body the acme client needs to detect it #​3461
  • Fix #-prefixed metadata fields being rejected outside acls, so policy editors can store metadata in grants, SSH rules and nodeAttrs #​3481
  • Fix exit nodes not offered by recent macOS and iOS clients, which read the suggest-exit-node peer attribute rather than the advertised 0.0.0.0/0 routes #​3487
  • Fix exit node not offered to viewers whose only matching rule is a via grant; peer visibility now comes from the peer map alone #​3409

Upgrade

Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.

Changelog

  • 3a2b133 .github/workflows: regenerate the integration test matrix
  • bdfa340 AGENTS.md: drop stale line numbers
  • 8106636 CHANGELOG: add 0.29.4
  • b9b2beb Update AppleTV configuration steps
  • 2a76860 build: bump test image Go to 1.27.1
  • 974becf change, mapper: distinguish deleted nodes
  • b3b55cc cli: fix users rename when resolved by name
  • 46a80ea dns: cancel extra-records retry on shutdown and close watcher on setup error
  • 33db8c6 fix(metrics): collect metrics for non-OPTIONS requests
  • 032470a hscontrol: cancel tailsql on graceful shutdown
  • ebe18ce hscontrol: keep the ACME error body readable in acmeLogger
  • c7d9d03 hscontrol: replace tailscale line refs with doc links
  • 1e528f7 integration: cover deletion across client versions
  • b9c7b4c integration: cover node deletion ending the long poll
  • 7783e7f integration: cover node expiry and recovery for every client
  • 625fa86 integration: pin docker client to daemon API version
  • cc41593 integration: pin which Hostinfo changes reach peers
  • fc894aa linting issue fix
  • 2b8dbea mapper: assert no map response lists the recipient as its own peer
  • b8da1c2 mapper: drop empty changes before fan-out
  • 397149e mapper: stop a deleted node's map session
  • 9fbf7b9 mapper: take peer visibility from the peer map only
  • d388244 noise: make deleted-node expiry clock independent
  • 2b28f57 oidc: harden callback CSRF cookies, state reuse, and issuer config
  • cbb9357 oidc: harden reloadable confirmation flow
  • 2da47a7 oidc: serve the registration confirmation page from a reloadable URL
  • 938c2bd policy,state: key the peer map by node ID
  • bc5b9d5 policy,types: skip recompile when the user list is unchanged
  • 8490631 policy/v2: add via exit node capture
  • 694bafe policy/v2: compare peer CapMap against SaaS route captures
  • 5aded15 policy/v2: suggest approved exit nodes by default
  • aa4c952 policy: ignore '#' metadata fields across the whole policy
  • fb197db poll, noise: tell a deleted node to re-authenticate
  • 83eff40 poll: interrupt blocked map writes
  • a7f7e6a servertest: compare user-owned nodes in via compat tests
  • 8973347 state: classify map requests before broadcasting
  • d4b073e state: exclude self from peers on the named peer-ID path
  • a91f708 state: mark expired nodes offline without ending the session
  • 0fca2bb state: preserve committed node deletion changes
  • fdb782d state: rename persist helpers to say what they do
  • 6a0f67d state: resolve changed peers through adjacency
  • 237dc74 state: reuse peer adjacency for payload-only writes
  • 8f7ee37 state: skip node health writes that change nothing
  • b972da3 state: stop broadcasting a whole peer on disconnect
  • e3dba1f templates: apply the tvOS setup reorder to the served /apple page
  • 2b6cb3a types/change: drop unused VisibilityChange
  • 4411264 types: detect policy change on user identity and exit routes
  • b4f991b types: lowercase DNS extra record names
  • e6c0a8a types: regenerate node view

v0.29.4

Compare Source

Minimum supported Tailscale client version: v1.80.0

Changes
  • A node is no longer listed among its own peers in an incremental map update, which crashes the Tailscale Android app on the device list. #​3459
  • Deleting a node closes its long poll, so the client asks for a new login instead of staying connected. #​3449
  • Interactive OIDC login works 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. #​3448
  • The OIDC callback is hardened. State and nonce cookies take their Secure flag from server_url, so they survive a TLS-terminating proxy. A callback state is single-use. An invalid oidc.issuer or a missing oidc.client_id/oidc.client_secret now fails at startup. #​3334
  • HTTP metrics no longer count only OPTIONS requests. http_requests_total and http_request_duration_seconds now cover regular traffic. #​3414
  • The extra-records filewatcher no longer hangs on shutdown after the watched file is deleted, or leaks the watcher when setup fails. #​3437
  • DNS extra record names are lowercased so mixed-case records resolve. #​3366
  • headscale users rename sends the matched user's identifier instead of the raw --identifier flag value, so renaming by name works again. #​3442
  • tailsql shuts down with headscale instead of leaving the process hanging on graceful shutdown. #​3400
  • The tvOS setup instructions say to install the VPN configuration before setting the coordination server URL. #​3431
  • Map requests that only bump LastSeen, endpoints or DERP region no longer resend the whole node to every peer, and health probes that change nothing no longer write. New metrics: headscale_mapper_changes_dropped_total and headscale_ha_health_updates_total. #​3417 #​3450
  • The peer map is keyed by node ID and reused for writes that cannot change peer visibility, so a routine map request no longer rebuilds it. New metric: headscale_nodestore_snapshot_builds_total. #​3417 #​3450
  • An expired node no longer stays online forever. Expiring it used to update the key deadline without ending its map session. #​3472
  • ACME renewal no longer stops permanently after a badNonce reply. The error logging middleware used to drain the response body the acme client needs to detect it. #​3461
  • #-prefixed metadata fields are accepted outside acls, so policy editors can store metadata in grants, SSH rules and nodeAttrs. #​3481
  • Exit nodes are offered to recent macOS and iOS clients, which read the suggest-exit-node peer attribute rather than the advertised 0.0.0.0/0 routes. #​3487
  • An exit node is offered to viewers whose only matching rule is a via grant. Peer visibility now comes from the peer map alone. #​3409
  • Nodes no longer go offline on restart when they send a pre-auth key other than the one they joined with. #​3681

v0.29.3

Compare Source

Minimum supported Tailscale client version: v1.80.0

Changes
  • Fix tagged node stuck expired after tailscale logout, unable to re-authenticate #​3394
  • Re-registering a tagged node with a different pre-auth key now applies the new key's tags instead of silently keeping the old ones #​3394
  • Fix re-authenticating an already-tagged node with --advertise-tags being rejected when the authenticating user owns the tags #​3394
  • Fix ephemeral nodes lingering as disconnected after reconnect churn #​3383
  • Fix node registration falsely returning 401 registration timed out when auth completes as the request context expires #​3392
  • Check the machine key on the followup registration poll so a leaked auth ID cannot return the registering user's identity #​3393
  • Reject /key requests below the supported capability version floor, matching /ts2021 #​3391

Upgrade

Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.

Changelog

  • 235a57e CHANGELOG: add 0.29.3
  • 089d6c4 Explicitly select lunr as search provider
  • fba84ca auth: check machine key on the followup registration path
  • 1292841 build: bump Go toolchain to 1.26.5
  • 9609a0b hscontrol: gate /key on supported capability version
  • bdc3e99 hscontrol: prefer completed auth over expired ctx in followup wait
  • 5aff68b mkdocs: bump version
  • 4a1e773 policy,state: authorize reauth tags against the authenticating user
  • 5fb514e poll: do not cancel ephemeral GC until Connect succeeds
  • 1fccdb1 state: apply a new pre-auth key's tags on re-registration
  • d202883 state: do not expire tagged nodes on logout

v0.29.3

Compare Source

Minimum supported Tailscale client version: v1.80.0

Changes
  • A tagged node no longer gets stuck expired after tailscale logout, unable to re-authenticate. #​3394
  • Re-registering a tagged node with a different pre-auth key now applies the new key's tags instead of silently keeping the old ones. #​3394
  • Re-authenticating an already-tagged node with --advertise-tags is accepted when the authenticating user owns the tags. #​3394
  • Ephemeral nodes no longer linger as disconnected after reconnect churn. #​3383
  • Node registration no longer falsely returns 401 registration timed out when auth completes as the request context expires. #​3392
  • The followup registration poll checks the machine key, so a leaked auth ID cannot return the registering user's identity. #​3393
  • /key requests below the supported capability version floor are rejected, matching /ts2021. #​3391

v0.29.2

Compare Source

Changes

  • Fix map generation serializing on the policy lock, so a mass reconnect on autogroup:self, via or relay policies no longer stalls clients into unexpected EOF retry loops #​3358
  • Fix /ts2021 rejecting the WebSocket GET upgrade with 405, which prevented Tailscale JS/WASM control clients from connecting #​3359
  • Gracefully handle nodes with an invalid FQDN (empty or too long) instead of failing map delivery; offending names are logged at startup with the fix command #​3349

Upgrade

Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.

Changelog

  • 8eea894 CHANGELOG: drop unreleased 0.30.0 stub
  • f708c5b CHANGELOG: note /ts2021 WebSocket GET fix
  • 735742e CHANGELOG: note 0.29.2 invalid-name map fix
  • 3ac33cf CHANGELOG: shorten 0.29.2 invalid-name entry, set date
  • f885d87 Fix invalid ip syntax
  • 1ec7b7f hscontrol: register /ts2021 for WebSocket GET
  • 8f4e69d integration: add TS2021 WebSocket tests to CI matrix
  • e7851ef integration: test /ts2021 WebSocket GET with a real WASM client
  • 9d13274 mapper,policy: add reconnect-storm and lock-concurrency regression tests
  • ec67197 mapper: skip peers with invalid names instead of failing the map
  • d4f2acf policy: take RLock for reads so map generation runs concurrently
  • 5fb76eb poll: return an HTTP error on long-poll setup failure
  • fd154fd state: log nodes with map-breaking data at startup
  • 9c9206a state: reject renames whose FQDN exceeds the hostname limit

v0.29.2

Compare Source

Minimum supported Tailscale client version: v1.80.0

Changes
  • Map generation no longer serializes on the policy lock, so a mass reconnect on autogroup:self, via or relay policies no longer stalls clients into unexpected EOF retry loops. #​3358
  • /ts2021 no longer rejects the WebSocket GET upgrade with 405, which prevented Tailscale JS/WASM control clients from connecting. #​3359
  • Nodes with an invalid FQDN (empty or too long) are handled gracefully instead of failing map delivery. Offending names are logged at startup with the fix command. #​3349

v0.29.1

Compare Source

Minimum supported Tailscale client version: v1.80.0

Changes
  • Fix nodes with tags='null' losing their assigned user on upgrade #​3325

Upgrade

Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.

Changelog

  • 636f660 db: preserve user_id on untagged nodes with tags='null'

v0.29.1

Compare Source

Minimum supported Tailscale client version: v1.80.0

Changes
  • Nodes with tags='null' no longer lose their assigned user on upgrade. #​3325

v0.29.0

Compare Source

Minimum supported Tailscale client version: v1.80.0

Tailscale ACL compatibility improvements

Extensive test cases were systematically generated using Tailscale clients and the official SaaS
to understand how the packet filter should be generated. We discovered a few differences, but
overall our implementation was very close.
#​3036

SSH check action

SSH rules with "action": "check" are now supported. When a client initiates a SSH connection to a node
with a check action policy, the user is prompted to authenticate via OIDC or CLI approval before access
is granted. OIDC approval requires the authenticated user to own the source node; tagged source nodes
cannot use SSH check-mode.

A new headscale auth CLI command group supports the approval flow:

  • headscale auth approve --auth-id <id> approves a pending authentication request (SSH check or web auth)
  • headscale auth reject --auth-id <id> rejects a pending authentication request
  • headscale auth register --auth-id <id> --user <user> registers a node (replaces deprecated headscale nodes register)

#​1850
#​3180

Policy tests (beta)

Headscale now evaluates the tests block in a policy file. Tests assert reachability between
named sources and destinations and cover the whole policy — both acls and grants rules
contribute. They run on user-initiated writes via headscale policy set, on SIGHUP reload
(systemctl reload headscale / kill -HUP $(pidof headscale)), and on headscale policy check.
A failing test rejects the write before it is applied, with the same error message Tailscale SaaS
would return for the same policy.

At boot a stored policy whose tests no longer pass — for example because a referenced user was
deleted while the server was offline — logs a warning and the server keeps running. Fix the
policy and reload.

This feature is beta while behavioural coverage against Tailscale SaaS broadens.

#​3229

SSH policy tests (beta)

Headscale now evaluates the sshTests block in a policy file. Each entry names a source, one or
more destination hosts, and three optional user lists: accept asserts the listed login users
reach every destination via an accept- or check-action SSH rule, deny asserts none of them
reach any destination, and check requires reachability specifically through a check-action
rule. Tests run on headscale policy set, on SIGHUP reload (systemctl reload headscale /
kill -HUP $(pidof headscale)), and on headscale policy check. A failing test rejects the
write before it is applied, with the same error message Tailscale SaaS would return for the same
policy.

At boot a stored policy whose sshTests no longer pass — for example because a referenced user was
deleted while the server was offline — logs a warning and the server keeps running. Fix the
policy and reload.

This feature is beta while behavioural coverage against Tailscale SaaS broadens.

#​3263

SSH rule validation

SSH rule parsing now trims surrounding whitespace on action, users, src, and dst,
rejects empty or wildcard entries in users, rejects empty acceptEnv, and rejects negative
checkPeriod. hosts: aliases are rejected as SSH destinations, non-ASCII tag names are
rejected at parse time, and the wording for group-nesting cycles matches Tailscale SaaS.
#​3263

Grants

We now support Tailscale grants
alongside ACLs. Grants extend what you can express in a policy beyond packet filtering: the app
field controls application-level features like Taildrive file sharing and peer relay, and the via
field steers traffic through specific tagged subnet routers or exit nodes. The ip field works like
an ACL rule. Grants can be mixed with ACLs in the same policy file.
#​2180

As part of this, we added autogroup:danger-all. It resolves to 0.0.0.0/0 and ::/0, all IP
addresses, including those outside the tailnet. This replaces the old behaviour where * matched
all IPs (see BREAKING below). The name is intentional: accepting traffic from the entire
internet is a security-sensitive choice. autogroup:danger-all can only be used as a source.

Node attributes (nodeAttrs)

ACL policies now accept a nodeAttrs block. Each entry hands a list of
Tailscale node capabilities to every node matching target. The accepted
target forms are the same as acls.src and grants.src: users, groups,
tags, hosts, prefixes, autogroup:member, autogroup:tagged, and *.

{
  "randomizeClientPort": true,
  "nodeAttrs": [
    { "target": ["autogroup:tagged"], "attr": ["disable-captive-portal-detection"] },
    { "target": ["alice@example.com"], "attr": ["nextdns:abc123"] },
  ],
}

Frequently requested capabilities this unlocks include magicdns-aaaa,
disable-relay-server, disable-captive-portal-detection,
nextdns:<profile> / nextdns:no-device-info, randomize-client-port,
and the Taildrive drive:share / drive:access pair. The set is not
limited to these, any string-only cap an operator places in policy
reaches clients unchanged.

randomizeClientPort also lands as a top-level policy field that toggles
the default for every node, replacing the old server-config knob.

A new auto_update.enabled config option controls the tailnet-wide
default for client auto-update. When true, every node's CapMap carries
default-auto-update: [true] so fresh clients pick up the default
unless they make a local opt-in / opt-out choice.

Policies that use the funnel cap, ipPool blocks, or
autogroup:admin / autogroup:owner targets are rejected at load —
those features depend on machinery headscale does not yet ship.

#​3251

Taildrive

Taildrive (file-sync between
nodes
) is now
configurable through policy. Grant drive:share to the node that
hosts files and drive:access to nodes that read or write them; pair
with a tailscale.com/cap/drive grant to set the per-share access
mode:

{
  "nodeAttrs": [
    { "target": ["tag:fileserver"], "attr": ["drive:share"] },
    { "target": ["autogroup:member"], "attr": ["drive:access"] },
  ],
  "grants": [
    {
      "src": ["autogroup:member"],
      "dst": ["tag:fileserver"],
      "app": {
        "tailscale.com/cap/drive": [{ "shares": ["*"], "access": "rw" }],
      },
    },
  ],
}

A wildcard nodeAttrs ("target": ["*"]) hands the caps to every
node when fine-grained control is not needed.

Hostname sanitisation

Hostnames are now santised using Tailscales magicdns sanitisation rules, matching Tailscale SaaS behavior. This means that hostnames with non-ASCII characters, special characters, or reserved DNS label characters are now transformed into valid DNS labels for MagicDNS. This improves our previously too strict sanitisation that rejected hostnames based on our guesswork and not based on the Tailscale upstream behaviour.

Examples that previously regressed and now work:

Input Raw (Hostname) DNS label (GivenName)
Joe's Mac mini Joe's Mac mini joes-mac-mini
Yuri's MacBook Pro Yuri's MacBook Pro yuris-macbook-pro
Test@Host Test@Host test-host
mail.server mail.server mail-server
My-PC! My-PC! my-pc
我的电脑 我的电脑 node

#​3202

HA subnet router health probing

Headscale now actively probes HA subnet routers to detect nodes that are connected but not
forwarding traffic. The control plane periodically pings HA subnet routers via the Noise
control channel and fails over to a healthy standby if the primary stops responding. This is
enabled by default (node.routes.ha.probe_interval: 10s, probe_timeout: 5s) and only
active when HA routes exist (2+ nodes advertising the same prefix). Set probe_interval to
0 to disable. This complements the existing disconnect-based failover, catching "zombie
connected" routers that maintain their control session but cannot route packets.
#​3194

BREAKING
Hostname handling
  • The GivenName collision policy changed from an 8-char random hash suffix (laptop-abc12xyz) to a monotonic numeric suffix (laptop, laptop-1, laptop-2, …), matching Tailscale SaaS. Empty / all-non-ASCII hostnames now fall back to the literal node instead of invalid-<rand>. MagicDNS names change on upgrade for any node whose previous label was a random-suffix form; the raw Hostname column is unchanged. #​3202
ACL Policy
  • Wildcard (*) in ACL sources and destinations now resolves to Tailscale's CGNAT range (100.64.0.0/10) and ULA range (fd7a:115c:a1e0::/48) instead of all IPs (0.0.0.0/0 and ::/0) #​3036
    • This better matches Tailscale's security model where * means "any node in the tailnet" rather than "any IP address"
    • Policies that need to match all IP addresses including non-Tailscale IPs should use autogroup:danger-all as a source, or explicit CIDR ranges as destinations #​2180
    • autogroup:danger-all can only be used as a source; it cannot be used as a destination
    • Note: Users with non-standard IP ranges configured in prefixes.ipv4 or prefixes.ipv6 (which is unsupported and produces a warning) will need to explicitly specify their CIDR ranges in ACL rules instead of using *
  • Validate autogroup:self source restrictions matching Tailscale behavior - tags, hosts, and IPs are rejected as sources for autogroup:self destinations #​3036
    • Policies using tags, hosts, or IP addresses as sources for autogroup:self destinations will now fail validation
  • The proto:icmp protocol name now only includes ICMPv4 (protocol 1), matching Tailscale behavior #​3036
    • Previously, proto:icmp included both ICMPv4 and ICMPv6
    • Use proto:ipv6-icmp or protocol number 58 explicitly for ICMPv6
Upgrade Path
  • Headscale now enforces a strict version upgrade path #​3083
    • Skipping minor versions (e.g. 0.27 → 0.29) is blocked; upgrade one minor version at a time
    • Downgrading to a previous minor version is blocked
    • Patch version changes within the same minor are always allowed
Configuration
  • The randomize_client_port server-config key was removed; the
    toggle now lives in the policy file as a top-level
    randomizeClientPort field, matching the Tailscale-hosted schema. #​3251
    Headscale refuses to start when the old key is set. Move it to the
    policy file referenced by policy.path:

    {
      "randomizeClientPort": true,
    }
    

    If you do not have a policy file yet, create one with that minimal
    content and point policy.path at it. The default carries over —
    empty / absent policy means randomizeClientPort: false, matching
    the previous behaviour for operators who never set the key. Per-node
    opt-in via nodeAttrs is also supported and stacks on top of the
    global default.

CLI
  • headscale nodes register is deprecated in favour of headscale auth register --auth-id <id> --user <user> #​1850
    • The old command continues to work but will be removed in a future release
Changes
ACL Policy
  • Fix subnet-to-subnet peer visibility — subnet routers now correctly become peers when ACL rules reference only subnet CIDRs as sources, without requiring node IP rules #​3175
  • Fix filter rule reduction to use only approved subnet routes instead of all advertised routes, matching Tailscale SaaS behavior #​3175
  • Add ICMP and IPv6-ICMP protocols to default filter rules when no protocol is specified #​3036
  • Fix autogroup:self handling for tagged nodes - tagged nodes no longer incorrectly receive autogroup:self filter rules #​3036
  • Use CIDR format for autogroup:self destination IPs matching Tailscale behavior #​3036
  • Merge filter rules with identical SrcIPs and IPProto matching Tailscale behavior - multiple ACL rules with the same source now produce a single FilterRule with combined DstPorts #​3036
  • Fix exit nodes incorrectly receiving filter rules for destinations that only overlap via exit routes #​3169 #​3175
  • Fix address-based aliases (hosts, raw IPs) incorrectly expanding to include the matching node's other address family #​2180
  • Fix identity-based aliases (tags, users, groups) resolving to IPv4 only; they now include both IPv4 and IPv6 matching Tailscale behavior #​2180
  • Fix wildcard (*) source in ACLs now using actually-approved subnet routes instead of autoApprover policy prefixes #​2180
  • Fix non-wildcard source IPs being dropped when combined with wildcard * in the same ACL rule #​2180
  • Fix exit node approval not triggering filter rule recalculation for peers #​2180
  • Policy validation error messages now include field context (e.g., src=, dst=) and are more descriptive #​2180
  • Reject policies whose user@ tokens match multiple DB users; rename the duplicate via headscale users rename to load #​3160
  • Evaluate the policy tests block on user-initiated writes across both acls and grants; reject policies whose tests fail (beta) #​1803
Grants
  • Add support for policy grants with ip, app, and via fields #​2180
  • Add autogroup:danger-all as a source-only autogroup resolving to all IP addresses #​2180
  • Add capability grants for Taildrive (cap/drive) and peer relay (cap/relay) with automatic companion capabilities #​2180
  • Add per-viewer via route steering — grants with via tags control which subnet router or exit node handles traffic for each group of viewers #​2180
  • Enable Taildrive node attributes on all nodes; actual access is controlled by cap/drive grants #​2180
SSH Policy
  • Add support for localpart:*@&#8203;<domain> in SSH rule users field, mapping each matching user's email local-part as their OS username #​3091
  • Add SSH check action support with OIDC and CLI-based approval flows #​1850
CLI
  • Add headscale auth register, headscale auth approve, and headscale auth reject CLI commands #​1850
  • Deprecate headscale nodes register --key in favour of headscale auth register --auth-id #​1850
  • headscale policy check --bypass-grpc-and-access-database-directly validates user@ tokens against the live user database #​3160
  • Remove deprecated --namespace flag from nodes list, nodes register, and debug create-node commands (use --user instead) #​3093
  • Remove deprecated namespace/ns command aliases for users and machine/machines aliases for nodes #​3093
  • Fix DestroyUser deleting all pre-auth keys in the database instead of only the target user's keys #​3155
  • headscale policy check evaluates the tests block when invoked with --bypass-grpc-and-access-database-directly; without the flag it warns instead of running the tests against empty data #​1803
API
  • Add auth related routes. The auth/register endpoint now expects data as JSON #​1850
  • Remove gRPC reflection from the remote (TCP) server #​3180
OIDC
  • Add a confirmation page before completing node registration, showing the device hostname and machine key fingerprint #​3180
  • Generalise auth templates into reusable AuthSuccess and AuthWeb components #​1850
  • Unify auth pipeline with AuthVerdict type, supporting registration, reauthentication, and SSH checks #​1850
Configuration
  • Add node.expiry configuration option to set a default node key expiry for nodes registered via auth key #​3122
    • Tagged nodes (registered with tagged pre-auth keys) are exempt from default expiry
    • oidc.expiry has been removed; use node.expiry instead (applies to all registration methods including OIDC)
    • ephemeral_node_inactivity_timeout is deprecated in favour of node.ephemeral.inactivity_timeout
  • Add trusted_proxies to gate True-Client-IP / X-Real-IP / X-Forwarded-For (previously honoured from any client) #​3268
Debug
  • Add node connectivity ping page for verifying control-plane reachability #​3183
  • Omit secret fields (Pass, ClientSecret, APIKey) from /debug/config JSON output #​3180
  • Route statsviz through tsweb.Protected #​3180
Other
  • Remove old migrations for the debian package #​3185
  • Install config-example.yaml as example for the debian package #​3186
  • Fix user-owned re-registration with zero client expiry and no default storing 0001-01-01 00:00:00 in the database instead of NULL #​3199
  • Fix tailscaled restart on a node with no expiry resetting NULL to 0001-01-01 00:00:00 in the database, affecting both tagged and untagged nodes #​3197
  • Backfill nodes.expiry rows persisted by older versions as 0001-01-01 00:00:00 to NULL, so nodes upgraded from <0.28 stop reporting as expired #​3284
  • Update reverse proxy documentation for trusted_proxies configuration option #​3292

Upgrade

Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.

Changelog

v0.29.0

Compare Source

Minimum supported Tailscale client version: v1.80.0

Tailscale ACL compatibility improvements

Extensive test cases were systematically generated using Tailscale clients and the official SaaS
to understand how the packet filter should be generated. We discovered a few differences, but
overall our implementation was very close.
#​3036

SSH check action

SSH rules with "action": "check" are now supported. When a client initiates a SSH connection to a node
with a check action policy, the user is prompted to authenticate via OIDC or CLI approval before access
is granted. OIDC approval requires the authenticated user to own the source node; tagged source nodes
cannot use SSH check-mode.

A new headscale auth CLI command group supports the approval flow:

  • headscale auth approve --auth-id <id> approves a pending authentication request (SSH check or web auth).
  • headscale auth reject --auth-id <id> rejects a pending authentication request.
  • headscale auth register --auth-id <id> --user <user> registers a node (replaces deprecated headscale nodes register).

#​1850
#​3180

Policy tests (beta)

Headscale now evaluates the tests block in a policy file. Tests assert reachability between
named sources and destinations and cover the whole policy — both acls and grants rules
contribute. They run on user-initiated writes via headscale policy set, on SIGHUP reload
(systemctl reload headscale / kill -HUP $(pidof headscale)), and on headscale policy check.
A failing test rejects the write before it is applied, with the same error message Tailscale SaaS
would return for the same policy.

At boot a stored policy whose tests no longer pass — for example because a referenced user was
deleted while the server was offline — logs a warning and the server keeps running. Fix the
policy and reload.

This feature is beta while behavioural coverage against Tailscale SaaS broadens.

#​3229

SSH policy tests (beta)

Headscale now evaluates the sshTests block in a policy file. Each entry names a source, one or
more destination hosts, and three optional user lists: accept asserts the listed login users
reach every destination via an accept- or check-action SSH rule, deny asserts none of them
reach any destination, and check requires reachability specifically through a check-action
rule. Tests run on headscale policy set, on SIGHUP reload (systemctl reload headscale /
kill -HUP $(pidof headscale)), and on headscale policy check. A failing test rejects the
write before it is applied, with the same error message Tailscale SaaS would return for the same
policy.

At boot a stored policy whose sshTests no longer pass — for example because a referenced user was
deleted while the server was offline — logs a warning and the server keeps running. Fix the
policy and reload.

This feature is beta while behavioural coverage against Tailscale SaaS broadens.

#​3263

SSH rule validation

SSH rule parsing now trims surrounding whitespace on action, users, src, and dst,
rejects empty or wildcard entries in users, rejects empty acceptEnv, and rejects negative
checkPeriod. hosts: aliases are rejected as SSH destinations, non-ASCII tag names are
rejected at parse time, and the wording for group-nesting cycles matches Tailscale SaaS.
#​3263

Grants

We now support Tailscale grants
alongside ACLs. Grants extend what you can express in a policy beyond packet filtering: the app
field controls application-level features like Taildrive file sharing and peer relay, and the via
field steers traffic through specific tagged subnet routers or exit nodes. The ip field works like
an ACL rule. Grants can be mixed with ACLs in the same policy file.
#​2180

As part of this, we added autogroup:danger-all. It resolves to 0.0.0.0/0 and ::/0, all IP
addresses, including those outside the tailnet. This replaces the old behaviour where * matched
all IPs (see BREAKING below). The name is intentional: accepting traffic from the entire
internet is a security-sensitive choice. autogroup:danger-all can only be used as a source.

Node attributes (nodeAttrs)

ACL policies now accept a nodeAttrs block. Each entry hands a list of
Tailscale node capabilities to every node matching target. The accepted
target forms are the same as acls.src and grants.src: users, groups,
tags, hosts, prefixes, autogroup:member, autogroup:tagged, and *.

{
  "randomizeClientPort": true,
  "nodeAttrs": [
    { "target": ["autogroup:tagged"], "attr": ["disable-captive-portal-detection"] },
    { "target": ["alice@example.com"], "attr": ["nextdns:abc123"] },
  ],
}

Frequently requested capabilities this unlocks include magicdns-aaaa,
disable-relay-server, disable-captive-portal-detection,
nextdns:<profile> / nextdns:no-device-info, randomize-client-port,
and the Taildrive drive:share / drive:access pair. The set is not
limited to these. Any string-only cap an operator places in policy
reaches clients unchanged.

randomizeClientPort also lands as a top-level policy field that toggles
the default for every node, replacing the old server-config knob.

A new auto_update.enabled config option controls the tailnet-wide
default for client auto-update. When true, every node's CapMap carries
default-auto-update: [true] so fresh clients pick up the default
unless they make a local opt-in / opt-out choice.

Policies that use the funnel cap, ipPool blocks, or
autogroup:admin / autogroup:owner targets are rejected at load —
those features depend on machinery headscale does not yet ship.

#​3251

Taildrive

Taildrive (file-sync between
nodes
) is now
configurable through policy. Grant drive:share to the node that
hosts files and drive:access to nodes that read or write them; pair
with a tailscale.com/cap/drive grant to set the per-share access
mode:

{
  "nodeAttrs": [
    { "target": ["tag:fileserver"], "attr": ["drive:share"] },
    { "target": ["autogroup:member"], "attr": ["drive:access"] },
  ],
  "grants": [
    {
      "src": ["autogroup:member"],
      "dst": ["tag:fileserver"],
      "app": {
        "tailscale.com/cap/drive": [{ "shares": ["*"], "access": "rw" }],
      },
    },
  ],
}

A wildcard nodeAttrs ("target": ["*"]) hands the caps to every
node when fine-grained control is not needed.

Hostname sanitisation

Hostnames are now sanitised using Tailscale's magicdns sanitisation rules, matching Tailscale SaaS behavior. This means that hostnames with non-ASCII characters, special characters, or reserved DNS label characters are now transformed into valid DNS labels for MagicDNS. This improves our previously too strict sanitisation that rejected hostnames based on our guesswork and not based on the Tailscale upstream behaviour.

Examples that previously regressed and now work:

Input Raw (Hostname) DNS label (GivenName)
Joe's Mac mini Joe's Mac mini joes-mac-mini
Yuri's MacBook Pro Yuri's MacBook Pro yuris-macbook-pro
Test@Host Test@Host test-host
mail.server mail.server mail-server
My-PC! My-PC! my-pc
我的电脑 我的电脑 node

#​3202

HA subnet router health probing

Headscale now actively probes HA subnet routers to detect nodes that are connected but not
forwarding traffic. The control plane periodically pings HA subnet routers via the Noise
control channel and fails over to a healthy standby if the primary stops responding. This is
enabled by default (node.routes.ha.probe_interval: 10s, probe_timeout: 5s) and only
active when HA routes exist (2+ nodes advertising the same prefix). Set probe_interval to
0 to disable. This complements the existing disconnect-based failover, catching "zombie
connected" routers that maintain their control session but cannot route packets.
#​3194

BREAKING
Hostname handling
  • The GivenName collision policy changed from an 8-char random hash suffix (laptop-abc12xyz) to a monotonic numeric suffix (laptop, laptop-1, laptop-2, …), matching Tailscale SaaS. Empty / all-non-ASCII hostnames now fall back to the literal node instead of invalid-<rand>. MagicDNS names change on upgrade for any node whose previous label was a random-suffix form; the raw Hostname column is unchanged. #​3202
ACL Policy
  • Wildcard (*) in ACL sources now resolves to Tailscale's CGNAT range (100.64.0.0/10) and ULA range (fd7a:115c:a1e0::/48) instead of all IPs (0.0.0.0/0 and ::/0). #​3036
    • This better matches Tailscale's security model where * means "any node in the tailnet" rather than "any IP address".
    • Policies that need to match all IP addresses including non-Tailscale IPs should use autogroup:danger-all as a source. #​2180
    • autogroup:danger-all can only be used as a source. It cannot be used as a destination.
  • autogroup:self source restrictions are validated, matching Tailscale behavior. Tags, hosts, and IPs are rejected as sources for autogroup:self destinations. #​3036
    • Policies using tags, hosts, or IP addresses as sources for autogroup:self destinations will now fail validation.
  • The proto:icmp protocol name now only includes ICMPv4 (protocol 1), matching Tailscale behavior. #​3036
    • Previously, proto:icmp included both ICMPv4 and ICMPv6.
    • ICMPv6 needs proto:ipv6-icmp or protocol number 58 explicitly.
Upgrade Path
  • Headscale now enforces a strict version upgrade path. #​3083
    • Skipping minor versions (e.g. 0.27 → 0.29) is blocked. Upgrade one minor version at a time.
    • Downgrading to a previous minor version is blocked.
    • Patch version changes within the same minor are always allowed.
Configuration
  • The randomize_client_port server-config key was removed. The
    toggle now lives in the policy file as a top-level
    randomizeClientPort field, matching the Tailscale-hosted schema. #​3251
    Headscale refuses to start when the old key is set. Move it to the
    policy file referenced by policy.path:

    {
      "randomizeClientPort": true,
    }
    

    If you do not have a policy file yet, create one with that minimal
    content and point policy.path at it. The default carries over —
    empty / absent policy means randomizeClientPort: false, matching
    the previous behaviour for operators who never set the key. Per-node
    opt-in via nodeAttrs is also supported and stacks on top of the
    global default.

CLI
  • headscale nodes register is deprecated in favour of headscale auth register --auth-id <id> --user <user>. #​1850
    • The old command continues to work but will be removed in a future release.
Changes
ACL Policy
  • Subnet-to-subnet peer visibility works. Subnet routers now correctly become peers when ACL rules reference only subnet CIDRs as sources, without requiring node IP rules. #​3175
  • Filter rule reduction uses only approved subnet routes instead of all advertised routes, matching Tailscale SaaS behavior. #​3175
  • Default filter rules include ICMP and IPv6-ICMP protocols when no protocol is specified. #​3036
  • autogroup:self handling for tagged nodes is fixed. Tagged nodes no longer incorrectly receive autogroup:self filter rules. #​3036
  • autogroup:self destination IPs use CIDR format, matching Tailscale behavior. #​3036
  • Filter rules with identical SrcIPs and IPProto are merged, matching Tailscale behavior. Multiple ACL rules with the same source now produce a single FilterRule with combined DstPorts. #​3036
  • Exit nodes no longer incorrectly receive filter rules for destinations that only overlap via exit routes. #​3169 #​3175
  • Address-based aliases (hosts, raw IPs) no longer incorrectly expand to include the matching node's other address family. #​2180
  • Identity-based aliases (tags, users, groups) no longer resolve to IPv4 only. They now include both IPv4 and IPv6, matching Tailscale behavior. #​2180
  • Wildcard (*) source in ACLs now uses actually-approved subnet routes instead of autoApprover policy prefixes. #​2180
  • Non-wildcard source IPs are no longer dropped when combined with wildcard * in the same ACL rule. #​2180
  • Exit node approval triggers filter rule recalculation for peers. #​2180
  • Policy validation error messages now include field context (e.g., src=, dst=) and are more descriptive. #​2180
  • Policies whose user@ tokens match multiple DB users are rejected. Rename the duplicate via headscale users rename to load. #​3160
  • The policy tests block is evaluated on user-initiated writes across both acls and grants. Policies whose tests fail are rejected (beta). #​1803
Grants
  • Policy grants with ip, app, and via fields are supported. #​2180
  • autogroup:danger-all is a source-only autogroup resolving to all IP addresses. #​2180
  • Taildrive (cap/drive) and peer relay (cap/relay) have capability grants with automatic companion capabilities. #​2180
  • Via routes are steered per viewer. Grants with via tags control which subnet router or exit node handles traffic for each group of viewers. #​2180
  • Taildrive node attributes are enabled on all nodes. Actual access is controlled by cap/drive grants. #​2180
SSH Policy
  • The SSH rule users field supports localpart:*@&#8203;<domain>, mapping each matching user's email local-part as their OS username. #​3091
  • SSH supports the check action with OIDC and CLI-based approval flows. #​1850
CLI
  • headscale auth register, headscale auth approve, and headscale auth reject are new CLI commands. #​1850
  • headscale nodes register --key is deprecated in favour of headscale auth register --auth-id. #​1850
  • headscale policy check --bypass-grpc-and-access-database-directly validates user@ tokens against the live user database. #​3160
  • The deprecated --namespace flag is removed from nodes list, nodes register, and debug create-node commands (use --user instead). #​3093
  • The deprecated namespace/ns command aliases for users and machine/machines aliases for nodes are removed. #​3093
  • DestroyUser deletes only the target user's keys instead of all pre-auth keys in the database. #​3155
  • headscale policy check evaluates the tests block when invoked with --bypass-grpc-and-access-database-directly. Without the flag it warns instead of running the tests against empty data. #​1803
API
  • The API has auth related routes. The auth/register endpoint now expects data as JSON. #​1850
  • gRPC reflection is removed from the remote (TCP) server. #​3180
OIDC
  • A confirmation page before completing node registration shows the device hostname and machine key fingerprint. #​3180
  • Auth templates are generalised into reusable AuthSuccess and AuthWeb components. #​1850
  • The auth pipeline is unified with an AuthVerdict type, supporting registration, reauthentication, and SSH checks. #​1850
Configuration
  • The node.expiry configuration option sets a default node key expiry for nodes registered via auth key. #​3122
    • Tagged nodes (registered with tagged pre-auth keys) are exempt from default expiry.
    • oidc.expiry has been removed. Use node.expiry instead (applies to all registration methods including OIDC).
    • ephemeral_node_inactivity_timeout is deprecated in favour of node.ephemeral.inactivity_timeout.
  • trusted_proxies gates True-Client-IP / X-Real-IP / X-Forwarded-For (previously honoured from any client). #​3268
Debug
  • A node connectivity ping page verifies control-plane reachability. #​3183
  • /debug/config JSON output omits secret fields (Pass, ClientSecret, APIKey). #​3180
  • statsviz is routed through tsweb.Protected. #​3180
Other
  • Old migrations for the debian package are removed. #​3185
  • The debian package installs config-example.yaml as example. #​3186
  • User-owned re-registration with zero client expiry and no default stores NULL in the database instead of 0001-01-01 00:00:00. #​3199
  • A tailscaled restart on a node with no expiry no longer resets NULL to 0001-01-01 00:00:00 in the database. This affected both tagged and untagged nodes. #​3197
  • nodes.expiry rows persisted by older versions as 0001-01-01 00:00:00 are backfilled to NULL, so nodes upgraded from <0.28 stop reporting as expired. #​3284
  • The reverse proxy documentation covers the trusted_proxies configuration option. #​3292

v0.28.0

Compare Source

Minimum supported Tailscale client version: v1.74.0

Tags as identity

Tags are now implemented following the Tailscale model where tags and user ownership are mutually exclusive. Devices can be either
user-owned (authenticated via web/OIDC) or tagged (authenticated via tagged PreAuthKeys). Tagged devices receive their identity from
tags rather than users, making them suitable for servers and infrastructure. Applying a tag to a device removes user-based
ownership. See the Tailscale tags documentation for details on how tags work.

User-owned nodes can now request tags during registration using --advertise-tags. Tags are validated against the tagOwners policy
and applied at registration time. Tags can be managed via the CLI or API after registration. Tagged nodes can return to user-owned
by re-authenticating with tailscale up --advertise-tags= --force-reauth.

A one-time migration will validate and migrate any RequestTags (stored in hostinfo) to the tags column. Tags are validated against
your policy's tagOwners rules during migration. #​3011

Smarter map updates

The map update system has been rewritten to send smaller, partial updates instead of full network maps whenever possible. This reduces bandwidth usage and improves performance, especially for large networks. The system now properly tracks peer
changes and can send removal notifications when nodes are removed due to policy changes.
#​2856 #​2961

Pre-authentication key security improvements

Pre-authentication keys now use bcrypt hashing for improved security #​2853. Keys
are stored as a prefix and bcrypt hash instead of plaintext. The full key is only displayed once at creation time. When listing keys,
only the prefix is shown (e.g., hskey-auth-{prefix}-***). All new keys use the format hskey-auth-{prefix}-{secret}. Legacy plaintext keys in the format {secret} will continue to work for backwards compatibility.

Web registration templates redesign

The OIDC callback and device registration web pages have been updated to use the Material for MkDocs design system from the official
documentation. The templates now use consistent typography, spacing, and colours across all registration flows.

Database migration support removed for pre-0.25.0 databases

Headscale no longer supports direct upgrades from databases created before version 0.25.0. Users on older versions must upgrade
sequentially through each stable release, selecting the latest patch version available for each minor release.

BREAKING

  • API: The Node message in the gRPC/REST API has been simplified - the ForcedTags, InvalidTags, and ValidTags fields have been removed and replaced with a single Tags field that contains the node's applied tags #​2993

    • API clients should use the Tags field instead of ValidTags
    • The headscale nodes list CLI command now always shows a Tags column and the --tags flag has been removed
  • PreAuthKey CLI: Commands now use ID-based operations instead of user+key combinations #​2992

    • headscale preauthkeys create no longer requires --user flag (optional for tracking creation)
    • headscale preauthkeys list lists all keys (no longer filtered by user)
    • headscale preauthkeys expire --id <ID> replaces --user <USER> <KEY>
    • headscale preauthkeys delete --id <ID> replaces --user <USER> <KEY>

    Before:

    headscale preauthkeys create --user 1 --reusable --tags tag:server
    headscale preauthkeys list --user 1
    headscale preauthkeys expire --user 1 <KEY>
    headscale preauthkeys delete --user 1 <KEY>
    

    After:

    headscale preauthkeys create --reusable --tags tag:server
    headscale preauthkeys list
    headscale preauthkeys expire --id 123
    headscale preauthkeys delete --id 123
    
  • Tags: The gRPC SetTags endpoint now allows converting user-owned nodes to tagged nodes by setting tags. #​2885

  • Tags: Tags are now resolved from the node's stored Tags field only #​2931

    • --advertise-tags is processed during registration, not on every policy evaluation
    • PreAuthKey tagged devices ignore --advertise-tags from clients
    • User-owned nodes can use --advertise-tags if authorized by tagOwners policy
    • Tags can be managed via CLI (headscale nodes tag) or the SetTags API after registration
  • Database migration support removed for pre-0.25.0 databases #​2883

    • If you are running a version older than 0.25.0, you must upgrade to 0.25.1 first, then upgrade to this release
    • See the upgrade path documentation for detailed guidance
    • In version 0.29, all migrations before 0.28.0 will also be removed
  • Remove ability to move nodes between users #​2922

    • The headscale nodes move CLI command has been removed
    • The MoveNode API endpoint has been removed
    • Nodes are permanently associated with their user or tag at registration time
  • Add oidc.email_verified_required config option to control email verification requirement #​2860

    • When true (default), only verified emails can authenticate via OIDC in conjunction with oidc.allowed_domains or
      oidc.allowed_users. Previous versions allowed to authenticate with an unverified email but did not store the email
      address in the user profile. This is now rejected during authentication with an unverified email error.
    • When false, unverified emails are allowed for OIDC authentication and the email address is stored in the user
      profile regardless of its verification state.
  • SSH Policy: Wildcard (*) is no longer supported as an SSH destination #​3009

    • Use autogroup:member for user-owned devices
    • Use autogroup:tagged for tagged devices
    • Use specific tags (e.g., tag:server) for targeted access

    Before:

    { "action": "accept", "src": ["group:admins"], "dst": ["*"], "users": ["root"] }
    

    After:

    { "action": "accept", "src": ["group:admins"], "dst": ["autogroup:member", "autogroup:tagged"], "users": ["root"] }
    
  • SSH Policy: SSH source/destination validation now enforces Tailscale's security model #​3010

    Per Tailscale SSH documentation, the following rules are now enforced:

    1. Tags cannot SSH to user-owned devices: SSH rules with tag:* or autogroup:tagged as source cannot have username destinations (e.g., alice@) or autogroup:member/autogroup:self as destination
    2. Username destinations require same-user source: If destination is a specific username (e.g., alice@), the source must be that exact same user only. Use autogroup:self for same-user SSH access instead

    Invalid policies now rejected at load time:

    // INVALID: tag source to user destination
    {"src": ["tag:server"], "dst": ["alice@"], ...}
    
    // INVALID: autogroup:tagged to autogroup:member
    {"src": ["autogroup:tagged"], "dst": ["autogroup:member"], ...}
    
    // INVALID: group to specific user (use autogroup:self instead)
    {"src": ["group:admins"], "dst": ["alice@"], ...}
    

    Valid patterns:

    // Users/groups can SSH to their own devices via autogroup:self
    {"src": ["group:admins"], "dst": ["autogroup:self"], ...}
    
    // Users/groups can SSH to tagged devices
    {"src": ["group:admins"], "dst": ["autogroup:tagged"], ...}
    
    // Tagged devices can SSH to other tagged devices
    {"src": ["autogroup:tagged"], "dst": ["autogroup:tagged"], ...}
    
    // Same user can SSH to their own devices
    {"src": ["alice@"], "dst": ["alice@"], ...}
    

Changes

  • Smarter change notifications send partial map updates and node removals instead of full maps #​2961
    • Send lightweight endpoint and DERP region updates instead of full maps #​2856
  • Add NixOS module in repository for faster iteration #​2857
  • Add favicon to webpages #​2858
  • Redesign OIDC callback and registration web templates #​2832
  • Reclaim IPs from the IP allocator when nodes are deleted #​2831
  • Add bcrypt hashing for pre-authentication keys #​2853
  • Add prefix to API keys (hskey-api-{prefix}-{secret}) #​2853
  • Add prefix to registration keys for web authentication tracking (hskey-reg-{random}) #​2853
  • Tags can now be tagOwner of other tags #​2930
  • Add taildrop.enabled configuration option to enable/disable Taildrop file sharing #​2955
  • Allow disabling the metrics server by setting empty metrics_listen_addr #​2914
  • Log ACME/autocert errors for easier debugging #​2933
  • Improve CLI list output formatting #​2951
  • Use Debian 13 distroless base images for containers #​2944
  • Fix ACL policy not applied to new OIDC nodes until client restart #​2890
  • Fix autogroup:self preventing visibility of nodes matched by other ACL rules #​2882
  • Fix nodes being rejected after pre-authentication key expiration #​2917
  • Fix list-routes command respecting identifier filter with JSON output #​2927
  • Add --id flag to expire/delete commands as alternative to --prefix for API Keys #​3016

Upgrade

Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.

It's best to update from one stable version to the next (e.g., 0.24.0 → 0.25.1 → 0.26.1) in case you are multiple releases behind. You should always pick the latest available patch release.

Be sure to check the changelog above for version-specific upgrade instructions and breaking changes.

Backup Your Database

Always backup your database before upgrading. Here's how to backup a SQLite database:


# Stop headscale
systemctl stop headscale

# Backup sqlite database
cp /var/lib/headscale/db.sqlite /var/lib/headscale/db.sqlite.backup

# Backup sqlite WAL/SHM files (if they exist)
cp /var/lib/headscale/db.sqlite-wal /var/lib/headscale/db.sqlite-wal.backup
cp /var/lib/headscale/db.sqlite-shm /var/lib/headscale/db.sqlite-shm.backup

# Start headscale (migration will run automatically)
systemctl start headscale

Changelog

  • 7f003ec Add a page to describe supported registration methods
  • 5d30027 Add a tags page and describe a few common operations
  • d32f670 Add missing words
  • 89e436f Bump year/version for mkdocs
  • 49b70db Conversion from personal to tagged node is reversible
  • 04b4071 Fix node expiration success message
  • ee127ed Remove trace log for preauthkeys create
  • 2695d15 Use registration key instead of machine key
  • 44af046 all: update Go module dependencies
  • 4a744f4 changelog: change api key format
  • 97fa117 changelog: set 0.28 date
  • b5329ff flake.lock: update nixpkgs to 2026-02-03
  • eac8a57 flake.nix: update hashes for dependency changes
  • ca75e09 integration: add test for tagged→user-owned conversion panic
  • a09b0d1 policy/v2: add Caller() to log statements in compileACLWithAutogroupSelf
  • 1f32c8b policy/v2: add IsTagged() guards to prevent panics on tagged nodes
  • c2f28ef policy/v2: add test for issue #​2990 same-user tagged device
  • 11f0d4c policy/v2: include nodes with empty filters in BuildPeerMap
  • 362696a policy/v2: keep partial IPSet on SSH destination resolution errors
  • fb137a8 policy/v2: use partial IPSet on group resolution errors in autogroup:self path
  • df184e5 state: fix expiry handling during node tag conversion
  • 306aabb state: fix nil pointer panic when re-registering tagged node without user
  • 4912cea state: inline reauthExistingNode and convertTaggedNodeToUser
  • 46daa65 state: omit AuthKeyID/AuthKey in node Updates to prevent FK errors
  • 0630fd3 state: refactor HandleNodeFromAuthPath for clarity
  • ce7c256 state: set User pointer during tagged→user-owned conversion
  • d7f7f2c state: validate tags before UpdateNode to ensure consistency

v0.28.0

Compare Source

Minimum supported Tailscale client version: v1.74.0

Tags as identity

Tags now follow the Tailscale model, where tags and user ownership are mutually exclusive. A device is either
user-owned (authenticated via web/OIDC) or tagged (authenticated via tagged PreAuthKeys). Tagged devices take their identity from
tags rather than users, which suits servers and infrastructure. Applying a tag to a device removes user-based
ownership. See the Tailscale tags documentation for details on how tags work.

User-owned nodes can now request tags during registration using --advertise-tags. Tags are validated against the tagOwners policy
and applied at registration time. After registration, tags can be managed via the CLI or API. Tagged nodes can return to user-owned
by re-authenticating with tailscale up --advertise-tags= --force-reauth.

A one-time migration validates and migrates any RequestTags (stored in hostinfo) to the tags column. Tags are validated against
your policy's tagOwners rules during migration. #​3011

Smarter map updates

The map update system has been rewritten to send smaller, partial updates instead of full network maps whenever possible. This reduces bandwidth usage and improves performance, especially for large networks. The system now properly tracks peer
changes and can send removal notifications when nodes are removed due to policy changes.
#​2856 #​2961

Pre-authentication key security improvements

Pre-authentication keys now use bcrypt hashing for improved security. Keys
are stored as a prefix and bcrypt hash instead of plaintext. The full key is displayed only once, at creation time. Listing keys
shows only the prefix (e.g., hskey-auth-{prefix}-***). All new keys use the format hskey-auth-{prefix}-{secret}. Legacy plaintext keys in the format {secret} continue to work for backwards compatibility. #​2853

Web registration templates redesign

The OIDC callback and device registration web pages now use the Material for MkDocs design system from the official
documentation. The templates use consistent typography, spacing, and colours across all registration flows.

Database migration support removed for pre-0.25.0 databases

Headscale no longer supports direct upgrades from databases created before version 0.25.0. Users on older versions must upgrade
sequentially through each stable release, selecting the latest patch version available for each minor release.

BREAKING
  • API: The Node message in the gRPC/REST API is simplified. A single Tags field with the node's applied tags replaces the ForcedTags, InvalidTags, and ValidTags fields. #​2993

    • API clients should use the Tags field instead of ValidTags.
    • The headscale nodes list CLI command always shows a Tags column. The --tags flag is removed.
  • PreAuthKey CLI: Commands use ID-based operations instead of user+key combinations. #​2992

    • headscale preauthkeys create no longer requires the --user flag. It stays optional, for tracking creation.
    • headscale preauthkeys list lists all keys. It no longer filters by user.
    • headscale preauthkeys expire --id <ID> replaces --user <USER> <KEY>.
    • headscale preauthkeys delete --id <ID> replaces --user <USER> <KEY>.

    Before:

    headscale preauthkeys create --user 1 --reusable --tags tag:server
    headscale preauthkeys list --user 1
    headscale preauthkeys expire --user 1 <KEY>
    headscale preauthkeys delete --user 1 <KEY>
    

    After:

    headscale preauthkeys create --reusable --tags tag:server
    headscale preauthkeys list
    headscale preauthkeys expire --id 123
    headscale preauthkeys delete --id 123
    
  • Tags: The gRPC SetTags endpoint can convert user-owned nodes to tagged nodes by setting tags. #​2885

  • Tags: Tags are resolved only from the node's stored Tags field. #​2931

    • --advertise-tags is processed during registration, not on every policy evaluation.
    • Devices tagged by a PreAuthKey ignore --advertise-tags from clients.
    • User-owned nodes can use --advertise-tags if the tagOwners policy authorizes them.
    • After registration, tags can be managed via the CLI (headscale nodes tag) or the SetTags API.
  • Migrations for pre-0.25.0 databases are removed. #​2883

    • If you run a version older than 0.25.0, upgrade to 0.25.1 first, then to this release.
    • See the upgrade path documentation for detailed guidance.
    • In version 0.29, all migrations before 0.28.0 will also be removed.
  • Nodes can no longer move between users. #​2922

    • The headscale nodes move CLI command is removed.
    • The MoveNode API endpoint is removed.
    • Nodes are permanently tied to their user or tag at registration time.
  • The oidc.email_verified_required config option controls whether OIDC requires a verified email. #​2860

    • When true (default), only verified emails can authenticate via OIDC in conjunction with oidc.allowed_domains or
      oidc.allowed_users. Previous versions allowed authentication with an unverified email but did not store the email
      address in the user profile. Authentication now rejects this with an unverified email error.
    • When false, OIDC authentication allows unverified emails and stores the email address in the user
      profile regardless of its verification state.
  • SSH Policy: Wildcard (*) is no longer supported as an SSH destination. #​3009

    • Use autogroup:member for user-owned devices.
    • Use autogroup:tagged for tagged devices.
    • Use specific tags (e.g., tag:server) for targeted access.

    Before:

    { "action": "accept", "src": ["group:admins"], "dst": ["*"], "users": ["root"] }
    

    After:

    { "action": "accept", "src": ["group:admins"], "dst": ["autogroup:member", "autogroup:tagged"], "users": ["root"] }
    
  • SSH Policy: SSH source/destination validation enforces Tailscale's security model. #​3010

    Per Tailscale SSH documentation, these rules are now enforced:

    1. Tags cannot SSH to user-owned devices: SSH rules with tag:* or autogroup:tagged as source cannot have username destinations (e.g., alice@) or autogroup:member/autogroup:self as destination.
    2. Username destinations require same-user source: If the destination is a specific username (e.g., alice@), the source must be exactly that user. Use autogroup:self for same-user SSH access instead.

    Invalid policies are rejected at load time:

    // INVALID: tag source to user destination
    {"src": ["tag:server"], "dst": ["alice@"], ...}
    
    // INVALID: autogroup:tagged to autogroup:member
    {"src": ["autogroup:tagged"], "dst": ["autogroup:member"], ...}
    
    // INVALID: group to specific user (use autogroup:self instead)
    {"src": ["group:admins"], "dst": ["alice@"], ...}
    

    Valid patterns:

    // Users/groups can SSH to their own devices via autogroup:self
    {"src": ["group:admins"], "dst": ["autogroup:self"], ...}
    
    // Users/groups can SSH to tagged devices
    {"src": ["group:admins"], "dst": ["autogroup:tagged"], ...}
    
    // Tagged devices can SSH to other tagged devices
    {"src": ["autogroup:tagged"], "dst": ["autogroup:tagged"], ...}
    
    // Same user can SSH to their own devices
    {"src": ["alice@"], "dst": ["alice@"], ...}
    
Changes
  • Smarter change notifications send partial map updates and node removals instead of full maps. #​2961
    • Headscale sends lightweight endpoint and DERP region updates instead of full maps. #​2856
  • The repository includes a NixOS module for faster iteration. #​2857
  • Webpages have a favicon. #​2858
  • The OIDC callback and registration web templates are redesigned. #​2832
  • The IP allocator reclaims IPs when nodes are deleted. #​2831
  • Pre-authentication keys are hashed with bcrypt. #​2853
  • API keys have a prefix (hskey-api-{prefix}-{secret}). #​2853
  • Registration keys have a prefix for web authentication tracking (hskey-reg-{random}). #​2853
  • Tags can be tagOwner of other tags. #​2930
  • The taildrop.enabled configuration option enables or disables Taildrop file sharing. #​2955
  • An empty metrics_listen_addr disables the metrics server. #​2914
  • ACME/autocert errors are logged for easier debugging. #​2933
  • CLI list output formatting is improved. #​2951
  • Container images use Debian 13 distroless base images. #​2944
  • New OIDC nodes get the ACL policy without a client restart. #​2890
  • autogroup:self no longer prevents visibility of nodes matched by other ACL rules. #​2882
  • Nodes are no longer rejected after their pre-authentication key expires. #​2917
  • The list-routes command respects the identifier filter with JSON output. #​2927
  • API key expire/delete commands accept an --id flag as an alternative to --prefix. #​3016

v0.27.1

Compare Source

Minimum supported Tailscale client version: v1.64.0

Changes

  • Expire nodes with a custom timestamp
    #​2828
  • Fix issue where node expiry was reset when tailscaled restarts
    #​2875
  • Fix OIDC authentication when multiple login URLs are opened
    #​2861
  • Fix node re-registration failing with expired auth keys
    #​2859
  • Remove old unused database tables and indices
    #​2844
    #​2872
  • Ignore litestream tables during database validation
    #​2843
  • Fix exit node visibility to respect ACL rules
    #​2855
  • Fix SSH policy becoming empty when unknown user is referenced
    #​2874
  • Fix policy validation when using bypass-grpc mode
    #​2854
  • Fix autogroup:self interaction with other ACL rules
    #​2842
  • Fix flaky DERP map shuffle test
    #​2848
  • Use current stable base images for Debian and Alpine containers
    #​2827

Upgrade

Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.

It's best to update from one stable version to the next (e.g., 0.24.0 → 0.25.1 → 0.26.1) in case you are multiple releases behind. You should always pick the latest available patch release.

Be sure to check the changelog above for version-specific upgrade instructions and breaking changes.

Backup Your Database

Always backup your database before upgrading. Here's how to backup a SQLite database:


# Stop headscale
systemctl stop headscale

# Backup sqlite database
cp /var/lib/headscale/db.sqlite /var/lib/headscale/db.sqlite.backup

# Backup sqlite WAL/SHM files (if they exist)
cp /var/lib/headscale/db.sqlite-wal /var/lib/headscale/db.sqlite-wal.backup
cp /var/lib/headscale/db.sqlite-shm /var/lib/headscale/db.sqlite-shm.backup

# Start headscale (migration will run automatically)
systemctl start headscale

Changelog

  • abed534 Document how to restrict access to exit nodes per user/group
  • d23fa26 Fix flaky TestShuffleDERPMapDeterministic by ensuring deterministic map iteration (#​2848)
  • 0a43aab Use Debian 12 as minimum version for the deb package
  • 4bd614a Use current stable base images for Debian and Alpine
  • 785168a changelog: prepare for 0.27.1
  • 19a3339 changelog: set 0.27 date (#​2823)
  • af2de35 chore: fix autogroup:self with other acl rules (#​2842)
  • 02c7c1a cli: only validate bypass-grpc set policy (#​2854)
  • 5a2ee0c db: add comment about removing migrations
  • 28faf8c db: add defensive removal of old indicies
  • 456a5d5 db: ignore _litestream tables when validating (#​2843)
  • ddbd3e1 db: remove all old, unused tables (#​2844)
  • f9bb88a expire nodes with a custom timestamp (#​2828)
  • 5cd15c3 fix: make state cookies valid when client uses multiple login URLs
  • 3bd4ecd fix: preserve node expiry when tailscaled restarts
  • 3455d1c hscontrol/db: fix RenameUser to use Updates()
  • 4a8dc2d hscontrol/state,db: preserve node expiry on MapRequest updates
  • 4728a2b hscontrol/state: allow expired auth keys for node re-registration
  • ddd31ba hscontrol: use Updates() instead of Save() for partial updates
  • 773a46a integration: add test to replicate #​2862
  • 84fe3de integration: reduce TestAutoApproveMultiNetwork matrix to 3 tests (#​2815)
  • d9c3eaf matcher: Add func for comparing Dests and TheInternet
  • f658a8e mkdocs: 0.27.1
  • c649c89 policy: Reproduce exit node visibility issues
  • 21e3f25 policy: fix issue where non existent user results in empty ssh pol
  • a28d9be policy: reproduce 2863 in test
  • d7a43a7 state: use AllApprovedRoutes instead of SubnetRoutes
  • 2024219 types: Distinguish subnet and exit node access
  • bd9cf42 types: NodeView CanAccess uses internal
  • 1c0bb03 types: split SubnetRoutes and ExitRoutes

v0.27.1

Compare Source

Minimum supported Tailscale client version: v1.64.0

Changes
  • Nodes can be expired with a custom timestamp. #​2828
  • Node expiry is no longer reset when tailscaled restarts. #​2875
  • OIDC authentication works when multiple login URLs are opened. #​2861
  • Node re-registration no longer fails with expired auth keys. #​2859
  • Old unused database tables and indices are removed. #​2844 #​2872
  • Database validation ignores litestream tables. #​2843
  • Exit node visibility respects ACL rules. #​2855
  • The SSH policy no longer becomes empty when an unknown user is referenced. #​2874
  • Policy validation works in bypass-grpc mode. #​2854
  • autogroup:self interacts correctly with other ACL rules. #​2842
  • The DERP map shuffle test is no longer flaky. #​2848
  • Debian and Alpine containers use current stable base images. #​2827

v0.27.0

Compare Source

Minimum supported Tailscale client version: v1.64.0

Database integrity improvements

This release includes a significant database migration that addresses
longstanding issues with the database schema and data integrity that has
accumulated over the years. The migration introduces a schema.sql file as the
source of truth for the expected database schema to ensure new migrations that
will cause divergence does not occur again.

These issues arose from a combination of factors discovered over time: SQLite
foreign keys not being enforced for many early versions, all migrations being
run in one large function until version 0.23.0, and inconsistent use of GORM's
AutoMigrate feature. Moving forward, all new migrations will be explicit SQL
operations rather than relying on GORM AutoMigrate, and foreign keys will be
enforced throughout the migration process.

We are only improving SQLite databases with this change - PostgreSQL databases
are not affected.

Please read the
PR description for more
technical details about the issues and solutions.

SQLite Database Backup Example:


# Stop headscale
systemctl stop headscale

# Backup sqlite database
cp /var/lib/headscale/db.sqlite /var/lib/headscale/db.sqlite.backup

# Backup sqlite WAL/SHM files (if they exist)
cp /var/lib/headscale/db.sqlite-wal /var/lib/headscale/db.sqlite-wal.backup
cp /var/lib/headscale/db.sqlite-shm /var/lib/headscale/db.sqlite-shm.backup

# Start headscale (migration will run automatically)
systemctl start headscale
DERPMap update frequency

The default DERPMap update frequency has been changed from 24 hours to 3 hours.
If you set the derp.update_frequency configuration option, it is recommended
to change it to 3h to ensure that the headscale instance gets the latest
DERPMap updates when upstream is changed.

Autogroups

This release adds support for the three missing autogroups: self
(experimental), member, and tagged. Please refer to the
documentation for a detailed
explanation.

autogroup:self is marked as experimental and should be used with caution, but
we need help testing it. Experimental here means two things; first, generating
the packet filter from policies that use autogroup:self is very expensive, and
it might perform, or straight up not work on Headscale installations with a
large number of nodes. Second, the implementation might have bugs or edge cases
we are not aware of, meaning that nodes or users might gain more access than
expected. Please report bugs.

Node store (in memory database)

Under the hood, we have added a new datastructure to store nodes in memory. This
datastructure is called NodeStore and aims to reduce the reading and writing
of nodes to the database layer. We have not benchmarked it, but expect it to
improve performance for read heavy workloads. We think of it as, "worst case" we
have moved the bottle neck somewhere else, and "best case" we should see a good
improvement in compute resource usage at the expense of memory usage. We are
quite excited for this change and think it will make it easier for us to improve
the code base over time and make it more correct and efficient.

BREAKING
  • Remove support for 32-bit binaries
    #​2692
  • Policy: Zero or empty destination port is no longer allowed
    #​2606
  • Stricter hostname validation #​2383
    • Hostnames must be valid DNS labels (2-63 characters, alphanumeric and
      hyphens only, cannot start/end with hyphen)
    • Client Registration (New Nodes): Invalid hostnames are automatically
      renamed to invalid-XXXXXX format
      • my-laptop → accepted as-is
      • My-Laptop → my-laptop (lowercased)
      • my_laptop → invalid-a1b2c3 (underscore not allowed)
      • test@host → invalid-d4e5f6 (@​ not allowed)
      • laptop-🚀 → invalid-j1k2l3 (emoji not allowed)
    • Hostinfo Updates / CLI: Invalid hostnames are rejected with an error
      • Valid names are accepted or lowercased
      • Names with invalid characters, too short (<2), too long (>63), or
        starting/ending with hyphen are rejected
Changes
  • Database schema migration improvements for SQLite
    #​2617
    • IMPORTANT: Backup your SQLite database before upgrading
    • Introduces safer table renaming migration strategy
    • Addresses longstanding database integrity issues
  • Add flag to directly manipulate the policy in the database
    #​2765
  • DERPmap update frequency default changed from 24h to 3h
    #​2741
  • DERPmap update mechanism has been improved with retry, and is now failing
    conservatively, preserving the old map upon failure.
    #​2741
  • Add support for autogroup:member, autogroup:tagged
    #​2572
  • Fix bug where return routes were being removed by policy
    #​2767
  • Remove policy v1 code #​2600
  • Refactor Debian/Ubuntu packaging and drop support for Ubuntu 20.04.
    #​2614
  • Remove redundant check regarding noise config
    #​2658
  • Refactor OpenID Connect documentation
    #​2625
  • Don't crash if config file is missing
    #​2656
  • Adds /robots.txt endpoint to avoid crawlers
    #​2643
  • OIDC: Use group claim from UserInfo
    #​2663
  • OIDC: Update user with claims from UserInfo before comparing with allowed
    groups, email and domain
    #​2663
  • Policy will now reject invalid fields, making it easier to spot spelling
    errors #​2764
  • Add FAQ entry on how to recover from an invalid policy in the database
    #​2776
  • EXPERIMENTAL: Add support for autogroup:self
    #​2789
  • Add healthcheck command #​2659

Upgrade

Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.

It's best to update from one stable version to the next (e.g., 0.24.0 → 0.25.1 → 0.26.1) in case you are multiple releases behind. You should always pick the latest available patch release.

Be sure to check the changelog above for version-specific upgrade instructions and breaking changes.

Backup Your Database

Always backup your database before upgrading. Here's how to backup a SQLite database:


# Stop headscale
systemctl stop headscale

# Backup sqlite database
cp /var/lib/headscale/db.sqlite /var/lib/headscale/db.sqlite.backup

# Backup sqlite WAL/SHM files (if they exist)
cp /var/lib/headscale/db.sqlite-wal /var/lib/headscale/db.sqlite-wal.backup
cp /var/lib/headscale/db.sqlite-shm /var/lib/headscale/db.sqlite-shm.backup

# Start headscale (migration will run automatically)
systemctl start headscale

Changelog

v0.27.0

Compare Source

Minimum supported Tailscale client version: v1.64.0

Database integrity improvements

This release includes a significant database migration that addresses
longstanding issues with the database schema and data integrity that have
accumulated over the years. The migration introduces a schema.sql file as the
source of truth for the expected database schema, so that new migrations do not
cause divergence again.

These issues arose from several factors discovered over time: SQLite
foreign keys were not enforced for many early versions, all migrations ran in
one large function until version 0.23.0, and GORM's AutoMigrate feature was
used inconsistently. From now on, all new migrations will be explicit SQL
operations rather than relying on GORM AutoMigrate, and foreign keys will be
enforced throughout the migration process.

This change only improves SQLite databases. PostgreSQL databases
are not affected.

Read the
PR description for more
technical details about the issues and solutions.

SQLite Database Backup Example:


# Stop headscale
systemctl stop headscale

# Backup sqlite database
cp /var/lib/headscale/db.sqlite /var/lib/headscale/db.sqlite.backup

# Backup sqlite WAL/SHM files (if they exist)
cp /var/lib/headscale/db.sqlite-wal /var/lib/headscale/db.sqlite-wal.backup
cp /var/lib/headscale/db.sqlite-shm /var/lib/headscale/db.sqlite-shm.backup

# Start headscale (migration will run automatically)
systemctl start headscale
DERPMap update frequency

The default DERPMap update frequency changed from 24 hours to 3 hours.
If you set the derp.update_frequency configuration option, we recommend
changing it to 3h so that the headscale instance gets the latest
DERPMap updates when upstream changes.

Autogroups

This release adds the three missing autogroups: self
(experimental), member, and tagged. See the
documentation
for a detailed explanation.

autogroup:self is experimental and should be used with caution, but
we need help testing it. Experimental here means two things. First, generating
the packet filter from policies that use autogroup:self is very expensive, and
it might perform poorly, or not work at all, on Headscale installations with a
large number of nodes. Second, the implementation might have bugs or edge cases
we are not aware of, so nodes or users might gain more access than
expected. Please report bugs.

Node store (in memory database)

Under the hood, a new data structure stores nodes in memory. It
is called NodeStore and aims to reduce reads and writes
of nodes to the database layer. We have not benchmarked it, but expect it to
improve performance for read-heavy workloads. In the "worst case", we
have moved the bottleneck somewhere else. In the "best case", we should see a good
improvement in compute resource usage at the expense of memory usage. We are
excited about this change and think it will make it easier to improve
the code base over time and make it more correct and efficient.

BREAKING
  • 32-bit binaries are no longer supported. #​2692
  • Policy: Zero or empty destination ports are no longer allowed. #​2606
  • Hostname validation is stricter. #​2383
    • Hostnames must be valid DNS labels (2-63 characters, alphanumeric and
      hyphens only, cannot start/end with hyphen).
    • Client Registration (New Nodes): Invalid hostnames are automatically
      renamed to invalid-XXXXXX format.
      • my-laptop → accepted as-is
      • My-Laptop → my-laptop (lowercased)
      • my_laptop → invalid-a1b2c3 (underscore not allowed)
      • test@host → invalid-d4e5f6 (@​ not allowed)
      • laptop-🚀 → invalid-j1k2l3 (emoji not allowed)
    • Hostinfo Updates / CLI: Invalid hostnames are rejected with an error.
      • Valid names are accepted or lowercased.
      • Names with invalid characters, too short (<2), too long (>63), or
        starting/ending with hyphen are rejected.
Changes
  • Database schema migration improvements for SQLite #​2617
    • IMPORTANT: Back up your SQLite database before upgrading.
    • The migration uses a safer table renaming strategy.
    • The migration addresses longstanding database integrity issues.
  • A new flag manipulates the policy in the database directly. #​2765
  • The DERPmap update frequency default changed from 24h to 3h. #​2741
  • DERPmap updates retry, and fail conservatively by preserving the old map
    upon failure.
    #​2741
  • autogroup:member and autogroup:tagged are supported. #​2572
  • Policy no longer removes return routes. #​2767
  • Policy v1 code is removed. #​2600
  • Debian/Ubuntu packaging is refactored, and Ubuntu 20.04 is no longer supported. #​2614
  • A redundant check regarding noise config is removed. #​2658
  • The OpenID Connect documentation is refactored. #​2625
  • Headscale doesn't crash if the config file is missing. #​2656
  • A /robots.txt endpoint keeps crawlers away. #​2643
  • OIDC: Headscale uses the group claim from UserInfo. #​2663
  • OIDC: Headscale updates the user with claims from UserInfo before comparing
    with allowed groups, email and domain.
    #​2663
  • The policy rejects invalid fields, making spelling errors easier to
    spot. #​2764
  • The FAQ explains how to recover from an invalid policy in the database. #​2776
  • EXPERIMENTAL: Headscale supports autogroup:self. #​2789
  • Headscale has a healthcheck command. #​2659

v0.26.1

Compare Source

Security fix

  • Ensure nodes are matching both node key and machine key
    when connecting.
    #​2642

Commits

v0.26.1

Compare Source

Changes
  • Nodes must match both node key and machine key when connecting. #​2642

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/juanfont/headscale](https://github.com/juanfont/headscale) | minor | `0.26.0` → `v0.29.8` | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/11) for more information. --- ### Release Notes <details> <summary>juanfont/headscale (ghcr.io/juanfont/headscale)</summary> ### [`v0.29.8`](https://github.com/juanfont/headscale/releases/tag/v0.29.8) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.8...v0.29.8) **Minimum supported Tailscale client version: v1.80.0** ##### Changes - Peers now carry their own capability version, not the version of the node that receives the map. Tailscale v1.106 and newer use it to pick per-peer features such as hybrid WireGuard handshakes; with the wrong version, a v1.106 client could not connect to an older one [#&#8203;3724](https://github.com/juanfont/headscale/pull/3724) #### Upgrade Please follow the steps outlined in the [upgrade guide](https://headscale.net/stable/setup/upgrade/) to update your existing Headscale installation. #### Changelog - [`bfc57bf`](https://github.com/juanfont/headscale/commit/bfc57bf512b61ac473a6a809870425f48e50265e) CHANGELOG: add 0.29.8 capability version fix - [`5aeae67`](https://github.com/juanfont/headscale/commit/5aeae67c551d681f79e14be45eddac093c604de8) CHANGELOG: date 0.29.8 - [`985d446`](https://github.com/juanfont/headscale/commit/985d4460d605b7ceaa5bcef81b71a6d1d8557db6) github: add TestCurlMixedCapVer to integration jobs - [`173de2a`](https://github.com/juanfont/headscale/commit/173de2a1067cdc01a0124ef701af1f7a1f22c43c) integration: curl between head and v1.104 clients - [`ca93461`](https://github.com/juanfont/headscale/commit/ca9346171c5847b70cb09b3e74ce2ed10d02fea5) mapper, state: send each peer its own capability version - [`7d2e2ac`](https://github.com/juanfont/headscale/commit/7d2e2aca15633b8ed91a398545b126c23d26b49f) mapper: check peer Cap against a Tailscale SaaS capture - [`2322d6b`](https://github.com/juanfont/headscale/commit/2322d6b456ee352b5f5396974c65fe98a5ea5532) servertest: wait for each rapid reconnect to connect - [`697a88e`](https://github.com/juanfont/headscale/commit/697a88e83a4b2384c1b2ec2bc434e99475ce8bfe) servertest: wait for the client to see its own expiry - [`5247b95`](https://github.com/juanfont/headscale/commit/5247b950a5685dd20e2ea16967fdd0f9a6aca555) state: test that a repeated capability version stays quiet - [`4be88b0`](https://github.com/juanfont/headscale/commit/4be88b00bba77130a0c247ee2e848c06e30ea5ea) types: add runtime Node.CapVer, drop unused TailNodes ### [`v0.29.8`](https://github.com/juanfont/headscale/blob/HEAD/CHANGELOG.md#0298-2026-11-26) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.7...v0.29.8) **Minimum supported Tailscale client version: v1.80.0** ##### Changes - Peers carry their own capability version, not the version of the node that receives the map. Tailscale v1.106 and newer use it to pick per-peer features such as hybrid WireGuard handshakes. With the wrong version, a v1.106 client could not connect to an older one. [#&#8203;3724](https://github.com/juanfont/headscale/pull/3724) ### [`v0.29.7`](https://github.com/juanfont/headscale/releases/tag/v0.29.7) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.7...v0.29.7) **Minimum supported Tailscale client version: v1.80.0** ##### Security This is a security release. It fixes findings from Anthropic's oss-scanner project and the Tailworm report. None are critical, but some can cause denial of service in Headscale. We recommend that all users upgrade to Headscale 0.29.7 **and** Tailscale v1.104.4 or newer as soon as possible, especially those using Tailscale SSH. Tailscale v1.104.4 fixes vulnerabilities in SSH forwarding, SSH session handling and Serve. These fixes run in `tailscaled` on your nodes; upgrading Headscale alone does not apply them. See Tailscale's [security bulletins](https://tailscale.com/security-bulletins#ts-2026-014) and [Tailscale SSH: Findings and fixes](https://tailscale.com/blog/tailscale-ssh-findings-fixes). To disable SSH agent and port forwarding on a node, set `TS_SSH_DISABLE_FORWARDING=1` in the `tailscaled` service environment and restart the service. This setting applies to all Tailscale SSH sessions on that node and is also available in older clients. [#&#8203;3624](https://github.com/juanfont/headscale/pull/3624) This release also fixes the issues that [oss-scanner](https://github.com/anthropics/oss-scanner/tree/main/projects/headscale) reported in Headscale: ANT-2026-MLP8ZR5T, ANT-2026-LYVGXVSW, ANT-2026-AWGRB7O1, ANT-2026-QMCAFJ1Q, ANT-2026-RQS7JAPP, ANT-2026-5B6KE87K, ANT-2026-KFCFFM34, ANT-2026-K903ZEUA, ANT-2026-NM50ZP4N, ANT-2026-ZC18AF82, ANT-2026-NWTIBB02, ANT-2026-MX8FKG4K. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) ##### Changes - Metrics are no longer exposed to unregistered clients through the Noise protocol. They remain available only on the configured metrics listener; an empty `metrics_listen_addr` disables that listener [#&#8203;3623](https://github.com/juanfont/headscale/pull/3623) - Update the Tailscale dependency to v1.104.4, which bounds how much of an unexpected DERP HTTP response is read [#&#8203;3577](https://github.com/juanfont/headscale/pull/3577) - Keep pending registrations and OIDC logins at capacity instead of evicting ones awaiting approval; new requests get a retry response, and registered nodes keep capacity for SSH checks [#&#8203;3586](https://github.com/juanfont/headscale/pull/3586) - Cap stored pending registration data at 64 KiB, keeping tags and expiry; oversized interactive registrations are rejected [#&#8203;3586](https://github.com/juanfont/headscale/pull/3586) - Check the OIDC login type before storing anything, accept each OIDC callback only once, and free an SSH check's slot once the client has read its result [#&#8203;3586](https://github.com/juanfont/headscale/pull/3586) - Stop serving a route that is a single address inside the node IP ranges, such as `100.64.0.11/32` or `::ffff:100.64.0.11/128`, because it names a node, not a subnet; the route stays approved and listed, and wider routes are still served [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Require a valid pre-auth key to re-register an expired tagged node [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Another user's key or login on a tagged machine now creates a new device for that user instead of re-authenticating the tagged node [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Fix one node with a stored key expiry outside the years 0 to 9999 in UTC failing the map of every node that can see it; it is now left out of its peers' maps and the startup check names it with the fix command [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Refuse a key expiry outside the years 0 to 9999 in UTC on registration, on the OIDC token-expiry path and in `headscale nodes expire` / `POST /api/v1/node/{node_id}/expire` (HTTP 400); the latest accepted expiry no longer fails node listings on PostgreSQL in a zone east of UTC [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Keep the first 256 endpoints and 4096 announced routes from client reports; oversized hostnames, requested tags or other metadata return a registration error or HTTP 413 on map updates. Zoned IPv6 endpoints are refused [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - At startup, trim stored hostnames, endpoints and routes to the client-report limits and remove zoned endpoints. Hostinfo exceeding its size or tag limit is dropped until the next valid report [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Pending interactive registrations and follow-up waits keep only the hostname, OS and requested tags; other device details arrive with the first map request. Reauthentication preserves routes, services and endpoints [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Fix web reauthentication dropping the discovery key, so peers could not reach the device [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - A stalled request body, or a Noise tunnel with no open request, is closed after 30 seconds [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - A registration follow-up from a machine other than the one that started the registration is refused before it waits [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Only the newest follow-up waits on a pending registration or SSH check; older ones are answered at once [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Fix registration locks staying in memory after the registration ends [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Fix concurrent deletes of one node freeing its addresses and announcing its removal more than once [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - OIDC verifies an email against the document supplying it; an `email_verified` flag without an address no longer verifies another document's email [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Fix release builds reporting their version with a `+dirty` suffix [#&#8203;3584](https://github.com/juanfont/headscale/pull/3584) - Fix SSH policy `acceptEnv` having no effect, so allowed environment variables reach SSH sessions. Upgrade SSH destination nodes to Tailscale v1.104.4 or newer before using `acceptEnv`, because older clients can disclose forwarded values [#&#8203;3569](https://github.com/juanfont/headscale/pull/3569) #### Upgrade Please follow the steps outlined in the [upgrade guide](https://headscale.net/stable/setup/upgrade/) to update your existing Headscale installation. #### Changelog - [`c0a51b2`](https://github.com/juanfont/headscale/commit/c0a51b2cbd1bb17d604b506d5d6a06533a9c7b3f) .gitattributes: mark golden data as generated - [`c9cf210`](https://github.com/juanfont/headscale/commit/c9cf210b8bc84d13177e18b91f555788a44b47b6) CHANGELOG: align the 0.29.7 entries with earlier releases - [`3d9031c`](https://github.com/juanfont/headscale/commit/3d9031c075d287e9aa1b5c2264276a40e7335f8a) CHANGELOG: document SSH acceptEnv fix - [`5083559`](https://github.com/juanfont/headscale/commit/508355901605e89c020636daf911f5f09b702982) CHANGELOG: document the 0.29.7 security and patch release - [`8651eb9`](https://github.com/juanfont/headscale/commit/8651eb9b1a6170153838d16b39871aef6019a116) CHANGELOG: list the oss-scanner findings for 0.29.7 - [`abe807a`](https://github.com/juanfont/headscale/commit/abe807a9b5b50160618d6c3345f3a8d8055bce74) CHANGELOG: list the pending authentication bounds for 0.29.7 - [`3345493`](https://github.com/juanfont/headscale/commit/3345493f928745f14aa5cd21c1ae71f34ea47201) auth, state: keep only hostname, OS and tags in pending registrations - [`1b7435c`](https://github.com/juanfont/headscale/commit/1b7435c57f5d3c68ec4deba2576f819a30a7e853) auth: check the follow-up's machine key before it waits - [`99d10b9`](https://github.com/juanfont/headscale/commit/99d10b9b890737aedeeae049d820f00461326e81) db, state: let only the delete that removed a node free its addresses - [`151c852`](https://github.com/juanfont/headscale/commit/151c852d04a440f60d5eee6aa997ae77924a338e) go.mod: pin golang-lru/v2 to main for expirable.Close - [`718cbc3`](https://github.com/juanfont/headscale/commit/718cbc3b046dfa02e90640d90dabe355eb482f32) go.mod: tidy for Go 1.27 - [`044d8f5`](https://github.com/juanfont/headscale/commit/044d8f5a01f53c79403c8d092a37d34c8a6e1803) go.mod: update tailscale.com to v1.104.4 - [`37b4237`](https://github.com/juanfont/headscale/commit/37b4237ef617f4176b69d46c2c50bd347fa5b84c) hscontrol: bound pending authentication without evicting sessions - [`be114c0`](https://github.com/juanfont/headscale/commit/be114c0d632599f538a3f7c441a1cca92c80ac5c) hscontrol: refuse a key expiry that cannot be encoded - [`c32bf08`](https://github.com/juanfont/headscale/commit/c32bf08d0905a041ea768e2cd32cb8225ceae9e4) hscontrol: remove unused OIDC user change result - [`3bb6d3a`](https://github.com/juanfont/headscale/commit/3bb6d3a756556ed09cb203cfc1c4eb82d3be676c) integration/tsic: drop unused watchIPN - [`fd6547f`](https://github.com/juanfont/headscale/commit/fd6547f24941513c4679a56c007eff675cc3ce0e) integration: guard SSH acceptEnv forwarding - [`15af45c`](https://github.com/juanfont/headscale/commit/15af45ca08db05282650095eaaa541611a2736ec) mapper: skip peers whose key expiry cannot be encoded - [`2d881c5`](https://github.com/juanfont/headscale/commit/2d881c5e562fcc5681c2c18b659a432755d2c955) noise: restrict metrics to the metrics listener - [`bc3ac27`](https://github.com/juanfont/headscale/commit/bc3ac275b85a4f2bb0f26f0bcf4ffbacbb59ee70) noise: time out stalled bodies and idle tunnels - [`e1c6cb9`](https://github.com/juanfont/headscale/commit/e1c6cb9037ddfb1e0a6592519b233010b42fff6f) oidc: keep email\_verified with the address it came with - [`6e0d520`](https://github.com/juanfont/headscale/commit/6e0d520cb7a1a33cadf6930de767a106a0500dfc) policy/v2, servertest, hscontrol: add tailnet overlap route captures - [`02b1528`](https://github.com/juanfont/headscale/commit/02b1528025609f0cd714532585cee23cc75ef7e4) policy: pin SSH forwarding behavior and recommend upgrades - [`f193207`](https://github.com/juanfont/headscale/commit/f1932077bbaea75c6c34a2c722e7142fcd99a890) prek: exempt step captures from the large file check - [`93340a6`](https://github.com/juanfont/headscale/commit/93340a6b1b8c7890a0369c0b2f434f9443b8249c) release: reject dirty sources and build artifacts - [`9318ce4`](https://github.com/juanfont/headscale/commit/9318ce4df2d51856e1facbd7de9092bfd9d8da00) release: retry existing tags without the Docker downgrade - [`99cb5c1`](https://github.com/juanfont/headscale/commit/99cb5c1863297170ebe6c63c45ab01eb402a8a28) servertest: add login, profile, restart and register log helpers - [`c848c5a`](https://github.com/juanfont/headscale/commit/c848c5a1a1f50767ae62441a1ac7aed5342db403) servertest: add relogin and auth key helpers - [`7a51c8f`](https://github.com/juanfont/headscale/commit/7a51c8f30af362458e604491d180e26cfa305352) servertest: compare router self routes with captures - [`9ce0b28`](https://github.com/juanfont/headscale/commit/9ce0b28456e4417d22a341ddacbb3182e3426b39) servertest: compare user profiles in via captures - [`4647866`](https://github.com/juanfont/headscale/commit/46478663b9fc679a478c52290290c5c4ab5857f6) servertest: list passing via captures - [`e56661c`](https://github.com/juanfont/headscale/commit/e56661c38480cfd5bc1075a796466205ab1eafa0) state: bound client reports of nodes loaded at startup - [`4d04361`](https://github.com/juanfont/headscale/commit/4d0436128d2f2ac1d6b20706af77738b0788ea6e) state: drop registration locks once unused - [`c8fb25d`](https://github.com/juanfont/headscale/commit/c8fb25d4513280f402a028263acfbd74e232c3f9) state: give another user's key on a tagged machine a new device - [`e6219cd`](https://github.com/juanfont/headscale/commit/e6219cd1069dfe72cca233130c2249db096b0900) state: need a valid pre-auth key to re-register an expired tagged node - [`2852b65`](https://github.com/juanfont/headscale/commit/2852b6582878a06d96028c5641c7061276baf625) state: never serve a single address inside the node ranges - [`514979b`](https://github.com/juanfont/headscale/commit/514979b8ea6c64f69bf7b41e5096b97337540b5c) state: stop the auth cache TTL sweeper on Close - [`1d11be0`](https://github.com/juanfont/headscale/commit/1d11be02b38666c569a790224a9130f1e72b10ed) testcapture: record multi-step captures and API error detail - [`d116f2f`](https://github.com/juanfont/headscale/commit/d116f2f0002b10231c0172e3d935997e9cbbe45d) testcapture: refuse golden captures that name no tool commit - [`a4c0a09`](https://github.com/juanfont/headscale/commit/a4c0a097d3e1970ff4bee95c7c87a5f78e5815ad) types, auth, noise: let one request wait on each auth session - [`52ba6a3`](https://github.com/juanfont/headscale/commit/52ba6a3a196fe06cb3a248e8d078c577ebb265f1) types, noise: bound the Hostinfo and endpoints a client reports - [`f20366b`](https://github.com/juanfont/headscale/commit/f20366b3ddcbb1fe46eb21f513bc570152640b4c) types: emit SSH environment capability by default ### [`v0.29.7`](https://github.com/juanfont/headscale/blob/HEAD/CHANGELOG.md#0297-2026-10-30) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.6...v0.29.7) **Minimum supported Tailscale client version: v1.80.0** ##### Security This is a security release. It fixes findings from Anthropic's oss-scanner project and the Tailworm report. None are critical, but some can cause denial of service in Headscale. We recommend that all users upgrade to Headscale 0.29.7 **and** Tailscale v1.104.4 or newer as soon as possible, especially those using Tailscale SSH. Tailscale v1.104.4 fixes vulnerabilities in SSH forwarding, SSH session handling and Serve. These fixes run in `tailscaled` on your nodes; upgrading Headscale alone does not apply them. See Tailscale's [security bulletins](https://tailscale.com/security-bulletins#ts-2026-014) and [Tailscale SSH: Findings and fixes](https://tailscale.com/blog/tailscale-ssh-findings-fixes). To disable SSH agent and port forwarding on a node, set `TS_SSH_DISABLE_FORWARDING=1` in the `tailscaled` service environment and restart the service. This setting applies to all Tailscale SSH sessions on that node and is also available in older clients. [#&#8203;3624](https://github.com/juanfont/headscale/pull/3624) This release also fixes the issues that [oss-scanner](https://github.com/anthropics/oss-scanner/tree/main/projects/headscale) reported in Headscale: ANT-2026-MLP8ZR5T, ANT-2026-LYVGXVSW, ANT-2026-AWGRB7O1, ANT-2026-QMCAFJ1Q, ANT-2026-RQS7JAPP, ANT-2026-5B6KE87K, ANT-2026-KFCFFM34, ANT-2026-K903ZEUA, ANT-2026-NM50ZP4N, ANT-2026-ZC18AF82, ANT-2026-NWTIBB02, ANT-2026-MX8FKG4K. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) ##### Changes - Metrics are no longer exposed to unregistered clients through the Noise protocol. They remain available only on the configured metrics listener. An empty `metrics_listen_addr` disables that listener. [#&#8203;3623](https://github.com/juanfont/headscale/pull/3623) - The Tailscale dependency is updated to v1.104.4, which bounds how much of an unexpected DERP HTTP response is read. [#&#8203;3577](https://github.com/juanfont/headscale/pull/3577) - At capacity, pending registrations and OIDC logins awaiting approval are kept instead of evicted. New requests get a retry response, and registered nodes keep capacity for SSH checks. [#&#8203;3586](https://github.com/juanfont/headscale/pull/3586) - Stored pending registration data is capped at 64 KiB, keeping tags and expiry. Oversized interactive registrations are rejected. [#&#8203;3586](https://github.com/juanfont/headscale/pull/3586) - headscale checks the OIDC login type before storing anything, accepts each OIDC callback only once, and frees an SSH check's slot once the client has read its result. [#&#8203;3586](https://github.com/juanfont/headscale/pull/3586) - headscale no longer serves a route that is a single address inside the node IP ranges, such as `100.64.0.11/32` or `::ffff:100.64.0.11/128`, because it names a node, not a subnet. The route stays approved and listed, and wider routes are still served. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Re-registering an expired tagged node requires a valid pre-auth key. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Another user's key or login on a tagged machine now creates a new device for that user instead of re-authenticating the tagged node. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - One node with a stored key expiry outside the years 0 to 9999 in UTC no longer fails the map of every node that can see it. It is now left out of its peers' maps, and the startup check names it with the fix command. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - headscale refuses a key expiry outside the years 0 to 9999 in UTC on registration, on the OIDC token-expiry path and in `headscale nodes expire` / `POST /api/v1/node/{node_id}/expire` (HTTP 400). The latest accepted expiry no longer fails node listings on PostgreSQL in a zone east of UTC. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - headscale keeps the first 256 endpoints and 4096 announced routes from client reports. Oversized hostnames, requested tags or other metadata return a registration error or HTTP 413 on map updates. Zoned IPv6 endpoints are refused. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - At startup, headscale trims stored hostnames, endpoints and routes to the client-report limits and removes zoned endpoints. Hostinfo exceeding its size or tag limit is dropped until the next valid report. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Pending interactive registrations and follow-up waits keep only the hostname, OS and requested tags. Other device details arrive with the first map request. Reauthentication preserves routes, services and endpoints. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Web reauthentication no longer drops the discovery key, which left peers unable to reach the device. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - A stalled request body, or a Noise tunnel with no open request, is closed after 30 seconds. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - A registration follow-up from a machine other than the one that started the registration is refused before it waits. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Only the newest follow-up waits on a pending registration or SSH check. Older ones are answered at once. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Registration locks no longer stay in memory after the registration ends. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Concurrent deletes of one node no longer free its addresses and announce its removal more than once. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - OIDC verifies an email against the document supplying it. An `email_verified` flag without an address no longer verifies another document's email. [#&#8203;3603](https://github.com/juanfont/headscale/pull/3603) - Release builds no longer report their version with a `+dirty` suffix. [#&#8203;3584](https://github.com/juanfont/headscale/pull/3584) - SSH policy `acceptEnv` used to have no effect. Now allowed environment variables reach SSH sessions. Upgrade SSH destination nodes to Tailscale v1.104.4 or newer before using `acceptEnv`, because older clients can disclose forwarded values. [#&#8203;3569](https://github.com/juanfont/headscale/pull/3569) ### [`v0.29.6`](https://github.com/juanfont/headscale/releases/tag/v0.29.6) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.6...v0.29.6) **Minimum supported Tailscale client version: v1.80.0** ##### Security - Build with Go 1.27.3 to reject certificate chains containing the compromised eMudhra intermediate keys (CVE-2026-111943) [Go #&#8203;82345](https://github.com/golang/go/issues/82345) - Update and pin the normal and debug container bases to images whose CA bundles no longer include `emSign ECC Root CA - G3` [#&#8203;3579](https://github.com/juanfont/headscale/issues/3579) - Update `golang.org/x/net` to v0.60.0, `golang.org/x/text` to v0.42.0 and gRPC to v1.83.2 to address HTTP/2 denial-of-service and text-processing vulnerabilities ([x/net](https://pkg.go.dev/vuln/GO-2026-6617), [x/text](https://pkg.go.dev/vuln/GO-2026-6629), [gRPC](https://pkg.go.dev/vuln/GO-2026-6348)) Custom builds must be rebuilt with Go 1.27.3 or newer to receive the certificate-chain protection. ##### Changes - Speed up peer-map construction on large tailnets by finding each node's matching rules once, instead of checking every pair of nodes against every rule [#&#8203;3556](https://github.com/juanfont/headscale/pull/3556) - Build the peer map once per policy write instead of twice, and skip the rebuild when reloading an unchanged policy [#&#8203;3557](https://github.com/juanfont/headscale/pull/3557) - Reduce work when broadcasting map updates by avoiding repeated recipient filtering [#&#8203;3568](https://github.com/juanfont/headscale/pull/3568) - Avoid `INTERNAL_ERROR` stream errors when a node logs out or is deleted, or when Headscale shuts down; writes already in progress have a short grace period to finish, while clients that stop reading are still disconnected [#&#8203;3575](https://github.com/juanfont/headscale/pull/3575) - Return database-open errors instead of risking a panic or returning a partially initialized database handle [#&#8203;3496](https://github.com/juanfont/headscale/pull/3496) - Update the Tailscale dependency to v1.102.0 for Go 1.27 JSON compatibility in SSH check responses #### Upgrade Please follow the steps outlined in the [upgrade guide](https://headscale.net/stable/setup/upgrade/) to update your existing Headscale installation. #### Changelog - [`ee74ce4`](https://github.com/juanfont/headscale/commit/ee74ce4568d687598969c2051f111c21b3ed2d4c) CHANGELOG: document the 0.29.6 security and patch release - [`a2b1d78`](https://github.com/juanfont/headscale/commit/a2b1d7863926834e94479dcdd91ab344a9356bd0) CHANGELOG: set the 0.29.6 release date - [`f2b5f45`](https://github.com/juanfont/headscale/commit/f2b5f458361e3c5ad0ea69667d415688406a1489) all: prepare 0.29.6 security updates - [`c32e8e4`](https://github.com/juanfont/headscale/commit/c32e8e4c9746d0ada9f57f9a08e35e7ba382f868) db: return database-open errors for 0.29.6 - [`981f2eb`](https://github.com/juanfont/headscale/commit/981f2eb1b51d2e5fa0d39402ef2529e7359b1407) lint: retain the exhaustruct exclusion with the updated toolchain - [`f1499ce`](https://github.com/juanfont/headscale/commit/f1499ce280fa574b88380b444d035785bce497fe) mapper: avoid refiltering broadcast recipients - [`c618198`](https://github.com/juanfont/headscale/commit/c6181989b1856c1f70c4944d6ad5e7885df0d639) policy: backport peer-map optimizations for 0.29.6 - [`941d7ff`](https://github.com/juanfont/headscale/commit/941d7ff9ae152a1ed4cb2be0220bd58335294dea) poll: end stopped map sessions without resetting active streams ### [`v0.29.6`](https://github.com/juanfont/headscale/blob/HEAD/CHANGELOG.md#0296-2026-10-24) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.5...v0.29.6) **Minimum supported Tailscale client version: v1.80.0** ##### Security - headscale is built with Go 1.27.3, which rejects certificate chains containing the compromised eMudhra intermediate keys (CVE-2026-111943). [Go #&#8203;82345](https://github.com/golang/go/issues/82345) - The normal and debug container bases are updated and pinned to images whose CA bundles no longer include `emSign ECC Root CA - G3`. [#&#8203;3579](https://github.com/juanfont/headscale/issues/3579) - `golang.org/x/net` is updated to v0.60.0, `golang.org/x/text` to v0.42.0 and gRPC to v1.83.2, addressing HTTP/2 denial-of-service and text-processing vulnerabilities ([x/net](https://pkg.go.dev/vuln/GO-2026-6617), [x/text](https://pkg.go.dev/vuln/GO-2026-6629), [gRPC](https://pkg.go.dev/vuln/GO-2026-6348)). Custom builds must be rebuilt with Go 1.27.3 or newer to receive the certificate-chain protection. ##### Changes - Peer-map construction is faster on large tailnets: headscale finds each node's matching rules once, instead of checking every pair of nodes against every rule. [#&#8203;3556](https://github.com/juanfont/headscale/pull/3556) - headscale builds the peer map once per policy write instead of twice, and skips the rebuild when reloading an unchanged policy. [#&#8203;3557](https://github.com/juanfont/headscale/pull/3557) - Broadcasting map updates does less work by avoiding repeated recipient filtering. [#&#8203;3568](https://github.com/juanfont/headscale/pull/3568) - `INTERNAL_ERROR` stream errors no longer occur when a node logs out or is deleted, or when Headscale shuts down. Writes already in progress have a short grace period to finish, while clients that stop reading are still disconnected. [#&#8203;3575](https://github.com/juanfont/headscale/pull/3575) - Database-open errors are returned instead of risking a panic or returning a partially initialized database handle. [#&#8203;3496](https://github.com/juanfont/headscale/pull/3496) - The Tailscale dependency is updated to v1.102.0 for Go 1.27 JSON compatibility in SSH check responses. ### [`v0.29.5`](https://github.com/juanfont/headscale/releases/tag/v0.29.5) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.5...v0.29.5) - Fix `via` exit-node steering being undone by an unrelated ACL or grant rule that matches the viewer [#&#8203;3495](https://github.com/juanfont/headscale/pull/3495) - Fix `via` grants not offering exit nodes and subnet routes to a group that names an unknown user [#&#8203;3516](https://github.com/juanfont/headscale/pull/3516) - Fix SSH `check` periods and app grants dropping a group that names an unknown user [#&#8203;3516](https://github.com/juanfont/headscale/pull/3516) - Fix policy `tests` and `sshTests` failing for a group that names an unknown user [#&#8203;3516](https://github.com/juanfont/headscale/pull/3516) - Fix an unknown user in `nodeAttrs` rejecting the policy [#&#8203;3516](https://github.com/juanfont/headscale/pull/3516) - Fix every grant being fully resolved as if it had `via` when the policy has no `via` grants, slowing map generation on large tailnets [#&#8203;3538](https://github.com/juanfont/headscale/pull/3538) - Fix a data race in `via` route resolution when the policy has both `via` grants and ACLs [#&#8203;3515](https://github.com/juanfont/headscale/pull/3515) - Fix packet filters under `autogroup:self` not updating after a user is added or renamed [#&#8203;3501](https://github.com/juanfont/headscale/pull/3501) - Fix a rejected policy leaving its packet filter active [#&#8203;3501](https://github.com/juanfont/headscale/pull/3501) - Fix an exit node or subnet router not seeing its own approved routes until it reconnected, so `tailscale status` did not show it offering an exit node [#&#8203;3518](https://github.com/juanfont/headscale/pull/3518) - Fix deleted nodes, and peers hidden by a policy change, staying listed in the Tailscale Android app; removed peers are now sent as their own incremental map update [#&#8203;3492](https://github.com/juanfont/headscale/pull/3492) [#&#8203;3527](https://github.com/juanfont/headscale/pull/3527) - Policy changes no longer resend DNS configuration to every node, sparing clients a full netmap rebuild; a node gets its DNS configuration when its own NextDNS nodeAttrs, tags or hostname change, which also fixes NextDNS device metadata going stale after a hostname change [#&#8203;3492](https://github.com/juanfont/headscale/pull/3492) - Fix SSH access surviving the removal of its policy rules; clients kept their last SSH rules, and a pending SSH check could still be approved [#&#8203;3517](https://github.com/juanfont/headscale/pull/3517) - Fix SSH check periods coming from the first check rule for a node pair instead of the rule for the login user [#&#8203;3517](https://github.com/juanfont/headscale/pull/3517) - Policy changes resend a node's SSH policy only when it changed, sparing clients a full netmap rebuild [#&#8203;3517](https://github.com/juanfont/headscale/pull/3517) - Fix SSH check accepting a repeated follow-up for an already-decided session, even after a rejection [#&#8203;3526](https://github.com/juanfont/headscale/pull/3526) - Fix an ephemeral node being deleted while online, when it reconnected while its previous session was being marked offline [#&#8203;3539](https://github.com/juanfont/headscale/pull/3539) - Fix peers dropping traffic from a node that re-authenticates after its key expired [#&#8203;3541](https://github.com/juanfont/headscale/pull/3541) - Fix clients uploading logs to Tailscale Inc. while `logtail.enabled` is `false`; clients also granted the `data-plane-audit-logs` node attribute now go down until `tailscale up` [#&#8203;3522](https://github.com/juanfont/headscale/pull/3522) - Fix a node ping being lost when a full map update is queued at the same time [#&#8203;3523](https://github.com/juanfont/headscale/pull/3523) #### Upgrade Please follow the steps outlined in the [upgrade guide](https://headscale.net/stable/setup/upgrade/) to update your existing Headscale installation. #### Changelog - [`e279de9`](https://github.com/juanfont/headscale/commit/e279de9cd3475d1ce1d2e752051ce551269e8aec) Dockerfile: bump golang builders to 1.27.2 / 1.27.1 - [`ceac1c1`](https://github.com/juanfont/headscale/commit/ceac1c14cd3b0e8c0a123b4366855596ed0ed0c2) Dockerfile: bump rust 1.95-trixie to 1.99-trixie - [`755e6a1`](https://github.com/juanfont/headscale/commit/755e6a1e2d33b264b0c0aea15e862bf3e9679e5b) all: build with Go 1.26.8 - [`8d2ac4a`](https://github.com/juanfont/headscale/commit/8d2ac4ab9af3c1a232e6acc475c209865088432d) ci: regenerate the release integration test matrix - [`52e0180`](https://github.com/juanfont/headscale/commit/52e01807dbbe750f629ebefdab510f609e5e56bd) ci: reuse compiled integration tests and prebuilt images - [`733d544`](https://github.com/juanfont/headscale/commit/733d544b1cf61cc4958731cd60d0f746471ef0b6) docker: let the tailscale builders fetch a newer toolchain - [`d0cb5a5`](https://github.com/juanfont/headscale/commit/d0cb5a5a443c2dc6c5da5c030a82442e846979a7) go.mod: update dependencies - [`0a20796`](https://github.com/juanfont/headscale/commit/0a207969e7d0d282ea4d086c29999a50b8a73e71) hscontrol: preserve ephemeral nodes with live sessions - [`98ce49d`](https://github.com/juanfont/headscale/commit/98ce49defd584b6040b97c9cac1ac3ac937f65d7) mapper: deliver peer removals as separate deltas - [`a4f854f`](https://github.com/juanfont/headscale/commit/a4f854f721784961bbd3d2e77f3609754f183268) mapper: preserve node pings when a full update is queued - [`929e333`](https://github.com/juanfont/headscale/commit/929e3337f4a7ca9689eeb430a43863f8519250f5) mapper: refresh self when approved routes change - [`00f6702`](https://github.com/juanfont/headscale/commit/00f670213a4847753a78abd173cd8a691ea5811d) mapper: retain reconnect removals until delivery - [`d03d3a0`](https://github.com/juanfont/headscale/commit/d03d3a0231dd5014460c9f4014b8d958820ea87e) mapper: retain the logtail instruction across client restarts - [`fb61927`](https://github.com/juanfont/headscale/commit/fb619274a97841f95d895b1b8dfed88b50964014) mkdocs: bump version - [`4d42bc6`](https://github.com/juanfont/headscale/commit/4d42bc62ec54b1d63e971afcd92a4e29f99f76fd) noise: reject reused SSH check verdicts - [`bd8b8ce`](https://github.com/juanfont/headscale/commit/bd8b8ce757cffdbc64cf5801915d4db824c00097) policy/v2: invalidate per-node filters when users change - [`711d00d`](https://github.com/juanfont/headscale/commit/711d00d5ba31ca67a46772f7f8e428aa35eaabee) policy/v2: preserve via exit steering across unrelated rules - [`f079cf7`](https://github.com/juanfont/headscale/commit/f079cf7a591fa95700babda8d8284f162e45dd88) policy/v2: resolve unregistered users to an empty set - [`5ec1a5a`](https://github.com/juanfont/headscale/commit/5ec1a5abb82e28272c956e17dee10bb02dc6fbd6) policy/v2: restore the live policy after a rejected update - [`5fb2d4e`](https://github.com/juanfont/headscale/commit/5fb2d4e0898e466ddf5be3217e4d30f051696a24) policy/v2: revoke stale SSH access and recheck authentication - [`a4e56d7`](https://github.com/juanfont/headscale/commit/a4e56d7bf1d73a8738a1d390f0d864fa59e299d9) policy/v2: skip route resolution without via grants - [`6ed6dd8`](https://github.com/juanfont/headscale/commit/6ed6dd8db56f382b8500852f2d1e3e0b3e4c6136) policy/v2: stop ViaRoutesForPeer appending into pm.pol.Grants - [`940260c`](https://github.com/juanfont/headscale/commit/940260cfdc9ef204feb17ab0be4cb6fd38f077cb) servertest: bound fixture batching and await observable state - [`b16b705`](https://github.com/juanfont/headscale/commit/b16b705c1344043c160b6fd58105841322cc3ed0) servertest: wait for stable via-route netmaps - [`5c25a66`](https://github.com/juanfont/headscale/commit/5c25a6698388fe85cda02a583b05d6b177455b21) state: send relogins as whole nodes when peers need them ### [`v0.29.5`](https://github.com/juanfont/headscale/blob/HEAD/CHANGELOG.md#0295-2026-10-13) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.4...v0.29.5) **Minimum supported Tailscale client version: v1.80.0** ##### Changes - An unrelated ACL or grant rule that matches the viewer no longer undoes `via` exit-node steering. [#&#8203;3495](https://github.com/juanfont/headscale/pull/3495) - `via` grants offer exit nodes and subnet routes to a group that names an unknown user. [#&#8203;3516](https://github.com/juanfont/headscale/pull/3516) - SSH `check` periods and app grants no longer drop a group that names an unknown user. [#&#8203;3516](https://github.com/juanfont/headscale/pull/3516) - Policy `tests` and `sshTests` no longer fail for a group that names an unknown user. [#&#8203;3516](https://github.com/juanfont/headscale/pull/3516) - An unknown user in `nodeAttrs` no longer rejects the policy. [#&#8203;3516](https://github.com/juanfont/headscale/pull/3516) - When the policy has no `via` grants, grants are no longer fully resolved as if they had `via`, which slowed map generation on large tailnets. [#&#8203;3538](https://github.com/juanfont/headscale/pull/3538) - `via` route resolution no longer has a data race when the policy has both `via` grants and ACLs. [#&#8203;3515](https://github.com/juanfont/headscale/pull/3515) - Packet filters under `autogroup:self` update after a user is added or renamed. [#&#8203;3501](https://github.com/juanfont/headscale/pull/3501) - A rejected policy no longer leaves its packet filter active. [#&#8203;3501](https://github.com/juanfont/headscale/pull/3501) - An exit node or subnet router sees its own approved routes without reconnecting. Before, `tailscale status` did not show it offering an exit node. [#&#8203;3518](https://github.com/juanfont/headscale/pull/3518) - Deleted nodes, and peers hidden by a policy change, no longer stay listed in the Tailscale Android app. Removed peers are now sent as their own incremental map update. [#&#8203;3492](https://github.com/juanfont/headscale/pull/3492) [#&#8203;3527](https://github.com/juanfont/headscale/pull/3527) - Policy changes no longer resend DNS configuration to every node, sparing clients a full netmap rebuild. A node gets its DNS configuration when its own NextDNS nodeAttrs, tags or hostname change. This also fixes NextDNS device metadata going stale after a hostname change. [#&#8203;3492](https://github.com/juanfont/headscale/pull/3492) - SSH access no longer survives the removal of its policy rules. Clients used to keep their last SSH rules, and a pending SSH check could still be approved. [#&#8203;3517](https://github.com/juanfont/headscale/pull/3517) - SSH check periods come from the rule for the login user instead of the first check rule for a node pair. [#&#8203;3517](https://github.com/juanfont/headscale/pull/3517) - Policy changes resend a node's SSH policy only when it changed, sparing clients a full netmap rebuild. [#&#8203;3517](https://github.com/juanfont/headscale/pull/3517) - SSH check no longer accepts a repeated follow-up for an already-decided session, even after a rejection. [#&#8203;3526](https://github.com/juanfont/headscale/pull/3526) - An ephemeral node is no longer deleted while online when it reconnects while its previous session is being marked offline. [#&#8203;3539](https://github.com/juanfont/headscale/pull/3539) - Peers no longer drop traffic from a node that re-authenticates after its key expired. [#&#8203;3541](https://github.com/juanfont/headscale/pull/3541) - Clients no longer upload logs to Tailscale Inc. while `logtail.enabled` is `false`. Clients also granted the `data-plane-audit-logs` node attribute now go down until `tailscale up`. [#&#8203;3522](https://github.com/juanfont/headscale/pull/3522) - A node ping is no longer lost when a full map update is queued at the same time. [#&#8203;3523](https://github.com/juanfont/headscale/pull/3523) ### [`v0.29.4`](https://github.com/juanfont/headscale/releases/tag/v0.29.4) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.4...v0.29.4) **Minimum supported Tailscale client version: v1.80.0** ##### Changes - Fix a node being listed among its own peers in an incremental map update, which crashes the Tailscale Android app on the device list [#&#8203;3459](https://github.com/juanfont/headscale/pull/3459) - Fix deleting a node leaving its long poll open, so the client stayed connected instead of asking for a new login [#&#8203;3449](https://github.com/juanfont/headscale/pull/3449) - Fix interactive OIDC login 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 [#&#8203;3448](https://github.com/juanfont/headscale/pull/3448) - Harden the OIDC callback: 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 a missing `oidc.client_id`/`oidc.client_secret` now fails at startup [#&#8203;3334](https://github.com/juanfont/headscale/pull/3334) - Fix HTTP metrics only counting `OPTIONS` requests, so `http_requests_total` and `http_request_duration_seconds` now cover regular traffic [#&#8203;3414](https://github.com/juanfont/headscale/pull/3414) - Fix extra-records filewatcher hanging on shutdown after the watched file is deleted, and leaking the watcher when setup fails [#&#8203;3437](https://github.com/juanfont/headscale/pull/3437) - Lowercase DNS extra record names so mixed-case records resolve [#&#8203;3366](https://github.com/juanfont/headscale/pull/3366) - Fix `headscale users rename` sending the raw `--identifier` flag value instead of the matched user's identifier, so renaming by name works again [#&#8203;3442](https://github.com/juanfont/headscale/pull/3442) - Fix tailsql not shutting down with headscale, leaving the process hanging on graceful shutdown [#&#8203;3400](https://github.com/juanfont/headscale/pull/3400) - Fix tvOS setup instructions: install the VPN configuration before setting the coordination server URL [#&#8203;3431](https://github.com/juanfont/headscale/pull/3431) - Map requests that only bump LastSeen, endpoints or DERP region no longer resend the whole node to every peer, and health probes that change nothing no longer write. Adds `headscale_mapper_changes_dropped_total` and `headscale_ha_health_updates_total` [#&#8203;3417](https://github.com/juanfont/headscale/issues/3417) [#&#8203;3450](https://github.com/juanfont/headscale/pull/3450) - The peer map is keyed by node ID and reused for writes that cannot change peer visibility, so a routine map request no longer rebuilds it. Adds `headscale_nodestore_snapshot_builds_total` [#&#8203;3417](https://github.com/juanfont/headscale/issues/3417) [#&#8203;3450](https://github.com/juanfont/headscale/pull/3450) - Fix an expired node staying online forever, because expiring it updated the key deadline without ending its map session [#&#8203;3472](https://github.com/juanfont/headscale/pull/3472) - Fix ACME renewal stopping permanently after a `badNonce` reply, because the error logging middleware drained the response body the acme client needs to detect it [#&#8203;3461](https://github.com/juanfont/headscale/pull/3461) - Fix `#`-prefixed metadata fields being rejected outside `acls`, so policy editors can store metadata in grants, SSH rules and `nodeAttrs` [#&#8203;3481](https://github.com/juanfont/headscale/pull/3481) - Fix exit nodes not offered by recent macOS and iOS clients, which read the `suggest-exit-node` peer attribute rather than the advertised `0.0.0.0/0` routes [#&#8203;3487](https://github.com/juanfont/headscale/pull/3487) - Fix exit node not offered to viewers whose only matching rule is a `via` grant; peer visibility now comes from the peer map alone [#&#8203;3409](https://github.com/juanfont/headscale/pull/3409) #### Upgrade Please follow the steps outlined in the [upgrade guide](https://headscale.net/stable/setup/upgrade/) to update your existing Headscale installation. #### Changelog - [`3a2b133`](https://github.com/juanfont/headscale/commit/3a2b133a418d008e73b627b404c2b2465d10d4da) .github/workflows: regenerate the integration test matrix - [`bdfa340`](https://github.com/juanfont/headscale/commit/bdfa3401ff40af2ccd4ad8e1e96069640907460c) AGENTS.md: drop stale line numbers - [`8106636`](https://github.com/juanfont/headscale/commit/8106636c7f8d0cf8c9d4fb0beae94415069b768b) CHANGELOG: add 0.29.4 - [`b9b2beb`](https://github.com/juanfont/headscale/commit/b9b2beb78167888d3859eaf2f8dba942f6aec257) Update AppleTV configuration steps - [`2a76860`](https://github.com/juanfont/headscale/commit/2a76860bdb9dcc575e694448c14a50588b2846e7) build: bump test image Go to 1.27.1 - [`974becf`](https://github.com/juanfont/headscale/commit/974becf658e09cef54f243b1407f5008ba77a270) change, mapper: distinguish deleted nodes - [`b3b55cc`](https://github.com/juanfont/headscale/commit/b3b55cc472959113d457ca99aca06cd4cd0a401b) cli: fix users rename when resolved by name - [`46a80ea`](https://github.com/juanfont/headscale/commit/46a80ea8f915a8f27c870fe8a2c2ed8d97cf68b1) dns: cancel extra-records retry on shutdown and close watcher on setup error - [`33db8c6`](https://github.com/juanfont/headscale/commit/33db8c6b2940b716fb2e7bc5c848f98e8ba06b51) fix(metrics): collect metrics for non-OPTIONS requests - [`032470a`](https://github.com/juanfont/headscale/commit/032470a5d3ef04dd866f15a5f493b13e42a88e84) hscontrol: cancel tailsql on graceful shutdown - [`ebe18ce`](https://github.com/juanfont/headscale/commit/ebe18cebffb528efc53247054aa42994ece40fe5) hscontrol: keep the ACME error body readable in acmeLogger - [`c7d9d03`](https://github.com/juanfont/headscale/commit/c7d9d035006d3b44b05e8545022d4e62067a0319) hscontrol: replace tailscale line refs with doc links - [`1e528f7`](https://github.com/juanfont/headscale/commit/1e528f7f52c208b666d8884a1f24046fa148c324) integration: cover deletion across client versions - [`b9c7b4c`](https://github.com/juanfont/headscale/commit/b9c7b4c44beec953f15c92a8feadcbe8964807ce) integration: cover node deletion ending the long poll - [`7783e7f`](https://github.com/juanfont/headscale/commit/7783e7f679e6de1b5e28c13807e3276681725d39) integration: cover node expiry and recovery for every client - [`625fa86`](https://github.com/juanfont/headscale/commit/625fa86e1ac5129903765ec0bd2fcf664022b73e) integration: pin docker client to daemon API version - [`cc41593`](https://github.com/juanfont/headscale/commit/cc41593d9d48d99d5249f5a7bc4889a333faf7ba) integration: pin which Hostinfo changes reach peers - [`fc894aa`](https://github.com/juanfont/headscale/commit/fc894aa9da6c63f38a4b2bcea402c44f769110d2) linting issue fix - [`2b8dbea`](https://github.com/juanfont/headscale/commit/2b8dbea41278ce5e22d35400f55f30307f557b49) mapper: assert no map response lists the recipient as its own peer - [`b8da1c2`](https://github.com/juanfont/headscale/commit/b8da1c2d6f2ccb71812d3b095d9b9b50495c28df) mapper: drop empty changes before fan-out - [`397149e`](https://github.com/juanfont/headscale/commit/397149e9be086424447eb731593f6c49d2696132) mapper: stop a deleted node's map session - [`9fbf7b9`](https://github.com/juanfont/headscale/commit/9fbf7b9b6010f74c84598ac3dd973a1970b0a905) mapper: take peer visibility from the peer map only - [`d388244`](https://github.com/juanfont/headscale/commit/d3882440258b0dd4742b0209ed3fcfb722f2f565) noise: make deleted-node expiry clock independent - [`2b28f57`](https://github.com/juanfont/headscale/commit/2b28f5756b3b5b293568b1e03f5babc21f230079) oidc: harden callback CSRF cookies, state reuse, and issuer config - [`cbb9357`](https://github.com/juanfont/headscale/commit/cbb9357d1cb4ef43df37c7884a5fe4e826efad7b) oidc: harden reloadable confirmation flow - [`2da47a7`](https://github.com/juanfont/headscale/commit/2da47a77d66de2e5bd52a17b7be7fab5601578ea) oidc: serve the registration confirmation page from a reloadable URL - [`938c2bd`](https://github.com/juanfont/headscale/commit/938c2bd75303cd3f4b2c8cd3462c3a72b8e6cb8e) policy,state: key the peer map by node ID - [`bc5b9d5`](https://github.com/juanfont/headscale/commit/bc5b9d56b26178dee7ce9660b76fa44f9eef792c) policy,types: skip recompile when the user list is unchanged - [`8490631`](https://github.com/juanfont/headscale/commit/8490631f06226a719f4106689be9e43e96a16706) policy/v2: add via exit node capture - [`694bafe`](https://github.com/juanfont/headscale/commit/694bafee0a254a87e4dac629efc64d5d7b999bab) policy/v2: compare peer CapMap against SaaS route captures - [`5aded15`](https://github.com/juanfont/headscale/commit/5aded15bf2e53f21892decc702370346dd39876e) policy/v2: suggest approved exit nodes by default - [`aa4c952`](https://github.com/juanfont/headscale/commit/aa4c952bca9c8d55e79a930d474099b5674e4845) policy: ignore '#' metadata fields across the whole policy - [`fb197db`](https://github.com/juanfont/headscale/commit/fb197db16386ede870dad8d0cfb738940334fb5c) poll, noise: tell a deleted node to re-authenticate - [`83eff40`](https://github.com/juanfont/headscale/commit/83eff4000a97faae552b908fd08280e26e918a97) poll: interrupt blocked map writes - [`a7f7e6a`](https://github.com/juanfont/headscale/commit/a7f7e6a4016b3c1e8877e60a0eae2277811105b2) servertest: compare user-owned nodes in via compat tests - [`8973347`](https://github.com/juanfont/headscale/commit/8973347d228fbf92efc86af05c4cc2be95fc7b54) state: classify map requests before broadcasting - [`d4b073e`](https://github.com/juanfont/headscale/commit/d4b073e830f5782ebc3d637338e07e767bdc9598) state: exclude self from peers on the named peer-ID path - [`a91f708`](https://github.com/juanfont/headscale/commit/a91f708adc70c4fa615e8b10b82c58d086599ba5) state: mark expired nodes offline without ending the session - [`0fca2bb`](https://github.com/juanfont/headscale/commit/0fca2bb646bb89736443344468c7fa4e8d56d941) state: preserve committed node deletion changes - [`fdb782d`](https://github.com/juanfont/headscale/commit/fdb782daa5974b78868ae156cc81a5da9fce7870) state: rename persist helpers to say what they do - [`6a0f67d`](https://github.com/juanfont/headscale/commit/6a0f67d56e2d031ac4f0a2cc23b644c2563a00ab) state: resolve changed peers through adjacency - [`237dc74`](https://github.com/juanfont/headscale/commit/237dc74e73c5aca4716da9b11f0b462eb5ec007f) state: reuse peer adjacency for payload-only writes - [`8f7ee37`](https://github.com/juanfont/headscale/commit/8f7ee375e9a608614e43925017f7164b57015587) state: skip node health writes that change nothing - [`b972da3`](https://github.com/juanfont/headscale/commit/b972da3fe98e17338ad6dd01f64f10fb30a3c624) state: stop broadcasting a whole peer on disconnect - [`e3dba1f`](https://github.com/juanfont/headscale/commit/e3dba1fdf9a8e88bfdd7a58fc2d318c2cd7e2d3b) templates: apply the tvOS setup reorder to the served /apple page - [`2b6cb3a`](https://github.com/juanfont/headscale/commit/2b6cb3a2cceb08bed82d533c060d033e5540e330) types/change: drop unused VisibilityChange - [`4411264`](https://github.com/juanfont/headscale/commit/4411264ef992d69735e41469f51a098e778636f4) types: detect policy change on user identity and exit routes - [`b4f991b`](https://github.com/juanfont/headscale/commit/b4f991b3814144702371213b01152cb91b22a5b1) types: lowercase DNS extra record names - [`e6c0a8a`](https://github.com/juanfont/headscale/commit/e6c0a8adeeee30665c130e5c5c5468e5f4a82d6c) types: regenerate node view ### [`v0.29.4`](https://github.com/juanfont/headscale/blob/HEAD/CHANGELOG.md#0294-2026-09-23) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.3...v0.29.4) **Minimum supported Tailscale client version: v1.80.0** ##### Changes - A node is no longer listed among its own peers in an incremental map update, which crashes the Tailscale Android app on the device list. [#&#8203;3459](https://github.com/juanfont/headscale/pull/3459) - Deleting a node closes its long poll, so the client asks for a new login instead of staying connected. [#&#8203;3449](https://github.com/juanfont/headscale/pull/3449) - Interactive OIDC login works 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. [#&#8203;3448](https://github.com/juanfont/headscale/pull/3448) - The OIDC callback is hardened. State and nonce cookies take their Secure flag from `server_url`, so they survive a TLS-terminating proxy. A callback state is single-use. An invalid `oidc.issuer` or a missing `oidc.client_id`/`oidc.client_secret` now fails at startup. [#&#8203;3334](https://github.com/juanfont/headscale/pull/3334) - HTTP metrics no longer count only `OPTIONS` requests. `http_requests_total` and `http_request_duration_seconds` now cover regular traffic. [#&#8203;3414](https://github.com/juanfont/headscale/pull/3414) - The extra-records filewatcher no longer hangs on shutdown after the watched file is deleted, or leaks the watcher when setup fails. [#&#8203;3437](https://github.com/juanfont/headscale/pull/3437) - DNS extra record names are lowercased so mixed-case records resolve. [#&#8203;3366](https://github.com/juanfont/headscale/pull/3366) - `headscale users rename` sends the matched user's identifier instead of the raw `--identifier` flag value, so renaming by name works again. [#&#8203;3442](https://github.com/juanfont/headscale/pull/3442) - tailsql shuts down with headscale instead of leaving the process hanging on graceful shutdown. [#&#8203;3400](https://github.com/juanfont/headscale/pull/3400) - The tvOS setup instructions say to install the VPN configuration before setting the coordination server URL. [#&#8203;3431](https://github.com/juanfont/headscale/pull/3431) - Map requests that only bump LastSeen, endpoints or DERP region no longer resend the whole node to every peer, and health probes that change nothing no longer write. New metrics: `headscale_mapper_changes_dropped_total` and `headscale_ha_health_updates_total`. [#&#8203;3417](https://github.com/juanfont/headscale/issues/3417) [#&#8203;3450](https://github.com/juanfont/headscale/pull/3450) - The peer map is keyed by node ID and reused for writes that cannot change peer visibility, so a routine map request no longer rebuilds it. New metric: `headscale_nodestore_snapshot_builds_total`. [#&#8203;3417](https://github.com/juanfont/headscale/issues/3417) [#&#8203;3450](https://github.com/juanfont/headscale/pull/3450) - An expired node no longer stays online forever. Expiring it used to update the key deadline without ending its map session. [#&#8203;3472](https://github.com/juanfont/headscale/pull/3472) - ACME renewal no longer stops permanently after a `badNonce` reply. The error logging middleware used to drain the response body the acme client needs to detect it. [#&#8203;3461](https://github.com/juanfont/headscale/pull/3461) - `#`-prefixed metadata fields are accepted outside `acls`, so policy editors can store metadata in grants, SSH rules and `nodeAttrs`. [#&#8203;3481](https://github.com/juanfont/headscale/pull/3481) - Exit nodes are offered to recent macOS and iOS clients, which read the `suggest-exit-node` peer attribute rather than the advertised `0.0.0.0/0` routes. [#&#8203;3487](https://github.com/juanfont/headscale/pull/3487) - An exit node is offered to viewers whose only matching rule is a `via` grant. Peer visibility now comes from the peer map alone. [#&#8203;3409](https://github.com/juanfont/headscale/pull/3409) - Nodes no longer go offline on restart when they send a pre-auth key other than the one they joined with. [#&#8203;3681](https://github.com/juanfont/headscale/pull/3681) ### [`v0.29.3`](https://github.com/juanfont/headscale/releases/tag/v0.29.3) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.3...v0.29.3) **Minimum supported Tailscale client version: v1.80.0** ##### Changes - Fix tagged node stuck expired after `tailscale logout`, unable to re-authenticate [#&#8203;3394](https://github.com/juanfont/headscale/pull/3394) - Re-registering a tagged node with a different pre-auth key now applies the new key's tags instead of silently keeping the old ones [#&#8203;3394](https://github.com/juanfont/headscale/pull/3394) - Fix re-authenticating an already-tagged node with `--advertise-tags` being rejected when the authenticating user owns the tags [#&#8203;3394](https://github.com/juanfont/headscale/pull/3394) - Fix ephemeral nodes lingering as disconnected after reconnect churn [#&#8203;3383](https://github.com/juanfont/headscale/pull/3383) - Fix node registration falsely returning `401 registration timed out` when auth completes as the request context expires [#&#8203;3392](https://github.com/juanfont/headscale/pull/3392) - Check the machine key on the followup registration poll so a leaked auth ID cannot return the registering user's identity [#&#8203;3393](https://github.com/juanfont/headscale/pull/3393) - Reject `/key` requests below the supported capability version floor, matching `/ts2021` [#&#8203;3391](https://github.com/juanfont/headscale/pull/3391) #### Upgrade Please follow the steps outlined in the [upgrade guide](https://headscale.net/stable/setup/upgrade/) to update your existing Headscale installation. #### Changelog - [`235a57e`](https://github.com/juanfont/headscale/commit/235a57ec31388901a78d054b1adb9dff900658cc) CHANGELOG: add 0.29.3 - [`089d6c4`](https://github.com/juanfont/headscale/commit/089d6c41092c1c9da6c22a1493407747b9da0e15) Explicitly select lunr as search provider - [`fba84ca`](https://github.com/juanfont/headscale/commit/fba84ca2328330780433ce0ed45fa90e92559eac) auth: check machine key on the followup registration path - [`1292841`](https://github.com/juanfont/headscale/commit/12928418b8330a9ed3024045eb3199a90d01e9d1) build: bump Go toolchain to 1.26.5 - [`9609a0b`](https://github.com/juanfont/headscale/commit/9609a0b87ddc9cb28ec85244148bfed3b42f041a) hscontrol: gate /key on supported capability version - [`bdc3e99`](https://github.com/juanfont/headscale/commit/bdc3e996de162fb15149085b448d931e96c05eb9) hscontrol: prefer completed auth over expired ctx in followup wait - [`5aff68b`](https://github.com/juanfont/headscale/commit/5aff68b5b9921db5ccb88013bb1740077ab872fb) mkdocs: bump version - [`4a1e773`](https://github.com/juanfont/headscale/commit/4a1e77359d288f94dccfc63ea2d1e869bd8e1daf) policy,state: authorize reauth tags against the authenticating user - [`5fb514e`](https://github.com/juanfont/headscale/commit/5fb514e6e09648676c8bd850201b0f84a6123694) poll: do not cancel ephemeral GC until Connect succeeds - [`1fccdb1`](https://github.com/juanfont/headscale/commit/1fccdb18bda259e92b439a447191643d33e52277) state: apply a new pre-auth key's tags on re-registration - [`d202883`](https://github.com/juanfont/headscale/commit/d2028832007b6b4544b119967db9658c9be24c6a) state: do not expire tagged nodes on logout ### [`v0.29.3`](https://github.com/juanfont/headscale/blob/HEAD/CHANGELOG.md#0293-2026-07-29) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.2...v0.29.3) **Minimum supported Tailscale client version: v1.80.0** ##### Changes - A tagged node no longer gets stuck expired after `tailscale logout`, unable to re-authenticate. [#&#8203;3394](https://github.com/juanfont/headscale/pull/3394) - Re-registering a tagged node with a different pre-auth key now applies the new key's tags instead of silently keeping the old ones. [#&#8203;3394](https://github.com/juanfont/headscale/pull/3394) - Re-authenticating an already-tagged node with `--advertise-tags` is accepted when the authenticating user owns the tags. [#&#8203;3394](https://github.com/juanfont/headscale/pull/3394) - Ephemeral nodes no longer linger as disconnected after reconnect churn. [#&#8203;3383](https://github.com/juanfont/headscale/pull/3383) - Node registration no longer falsely returns `401 registration timed out` when auth completes as the request context expires. [#&#8203;3392](https://github.com/juanfont/headscale/pull/3392) - The followup registration poll checks the machine key, so a leaked auth ID cannot return the registering user's identity. [#&#8203;3393](https://github.com/juanfont/headscale/pull/3393) - `/key` requests below the supported capability version floor are rejected, matching `/ts2021`. [#&#8203;3391](https://github.com/juanfont/headscale/pull/3391) ### [`v0.29.2`](https://github.com/juanfont/headscale/releases/tag/v0.29.2) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.2...v0.29.2) #### Changes - Fix map generation serializing on the policy lock, so a mass reconnect on `autogroup:self`, via or relay policies no longer stalls clients into `unexpected EOF` retry loops [#&#8203;3358](https://github.com/juanfont/headscale/pull/3358) - Fix `/ts2021` rejecting the WebSocket `GET` upgrade with 405, which prevented Tailscale JS/WASM control clients from connecting [#&#8203;3359](https://github.com/juanfont/headscale/pull/3359) - Gracefully handle nodes with an invalid FQDN (empty or too long) instead of failing map delivery; offending names are logged at startup with the fix command [#&#8203;3349](https://github.com/juanfont/headscale/pull/3349) #### Upgrade Please follow the steps outlined in the [upgrade guide](https://headscale.net/stable/setup/upgrade/) to update your existing Headscale installation. #### Changelog - [`8eea894`](https://github.com/juanfont/headscale/commit/8eea89488c642f3d5f617fab5493d5f51f6f4ad0) CHANGELOG: drop unreleased 0.30.0 stub - [`f708c5b`](https://github.com/juanfont/headscale/commit/f708c5b0108ac2ba5ff384ae9b85bdef488e1ffc) CHANGELOG: note /ts2021 WebSocket GET fix - [`735742e`](https://github.com/juanfont/headscale/commit/735742e3eea9be93c42c2bd76c9641a74dc11e20) CHANGELOG: note 0.29.2 invalid-name map fix - [`3ac33cf`](https://github.com/juanfont/headscale/commit/3ac33cf1d5fa66bafcdf11fd0919d10f118ee8ea) CHANGELOG: shorten 0.29.2 invalid-name entry, set date - [`f885d87`](https://github.com/juanfont/headscale/commit/f885d87827bcae30a07063f2723cd03458144a00) Fix invalid ip syntax - [`1ec7b7f`](https://github.com/juanfont/headscale/commit/1ec7b7fb726ea6270a1eb459534753ef27eda736) hscontrol: register /ts2021 for WebSocket GET - [`8f4e69d`](https://github.com/juanfont/headscale/commit/8f4e69d2a643f41378275c1b33395448ba8a596d) integration: add TS2021 WebSocket tests to CI matrix - [`e7851ef`](https://github.com/juanfont/headscale/commit/e7851ef8815248699833ac82fc7bd4d127a05713) integration: test /ts2021 WebSocket GET with a real WASM client - [`9d13274`](https://github.com/juanfont/headscale/commit/9d1327458fb21b240ea8078e64aa09ed30b59a96) mapper,policy: add reconnect-storm and lock-concurrency regression tests - [`ec67197`](https://github.com/juanfont/headscale/commit/ec6719736806e53f1aad1e219670bb8b79476052) mapper: skip peers with invalid names instead of failing the map - [`d4f2acf`](https://github.com/juanfont/headscale/commit/d4f2acf3ab3cada875ab88eab4e0f81e4118cd12) policy: take RLock for reads so map generation runs concurrently - [`5fb76eb`](https://github.com/juanfont/headscale/commit/5fb76eb231f105c67ff38316958a889ab4b1534b) poll: return an HTTP error on long-poll setup failure - [`fd154fd`](https://github.com/juanfont/headscale/commit/fd154fdb663d4992fb15cd95796c4791e48b096f) state: log nodes with map-breaking data at startup - [`9c9206a`](https://github.com/juanfont/headscale/commit/9c9206a92b7b3ca416e955f472e7f002e9215b75) state: reject renames whose FQDN exceeds the hostname limit ### [`v0.29.2`](https://github.com/juanfont/headscale/blob/HEAD/CHANGELOG.md#0292-2026-07-01) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.1...v0.29.2) **Minimum supported Tailscale client version: v1.80.0** ##### Changes - Map generation no longer serializes on the policy lock, so a mass reconnect on `autogroup:self`, via or relay policies no longer stalls clients into `unexpected EOF` retry loops. [#&#8203;3358](https://github.com/juanfont/headscale/pull/3358) - `/ts2021` no longer rejects the WebSocket `GET` upgrade with 405, which prevented Tailscale JS/WASM control clients from connecting. [#&#8203;3359](https://github.com/juanfont/headscale/pull/3359) - Nodes with an invalid FQDN (empty or too long) are handled gracefully instead of failing map delivery. Offending names are logged at startup with the fix command. [#&#8203;3349](https://github.com/juanfont/headscale/pull/3349) ### [`v0.29.1`](https://github.com/juanfont/headscale/releases/tag/v0.29.1) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.1...v0.29.1) **Minimum supported Tailscale client version: v1.80.0** ##### Changes - Fix nodes with `tags='null'` losing their assigned user on upgrade [#&#8203;3325](https://github.com/juanfont/headscale/pull/3325) #### Upgrade Please follow the steps outlined in the [upgrade guide](https://headscale.net/stable/setup/upgrade/) to update your existing Headscale installation. #### Changelog - [`636f660`](https://github.com/juanfont/headscale/commit/636f660caf3ca995fad5a9ed6f1b6b0578637b55) db: preserve user\_id on untagged nodes with tags='null' ### [`v0.29.1`](https://github.com/juanfont/headscale/blob/HEAD/CHANGELOG.md#0291-2026-06-18) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.0...v0.29.1) **Minimum supported Tailscale client version: v1.80.0** ##### Changes - Nodes with `tags='null'` no longer lose their assigned user on upgrade. [#&#8203;3325](https://github.com/juanfont/headscale/pull/3325) ### [`v0.29.0`](https://github.com/juanfont/headscale/releases/tag/v0.29.0) [Compare Source](https://github.com/juanfont/headscale/compare/v0.29.0...v0.29.0) **Minimum supported Tailscale client version: v1.80.0** ##### Tailscale ACL compatibility improvements Extensive test cases were systematically generated using Tailscale clients and the official SaaS to understand how the packet filter should be generated. We discovered a few differences, but overall our implementation was very close. [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) ##### SSH check action SSH rules with `"action": "check"` are now supported. When a client initiates a SSH connection to a node with a `check` action policy, the user is prompted to authenticate via OIDC or CLI approval before access is granted. OIDC approval requires the authenticated user to own the source node; tagged source nodes cannot use SSH check-mode. A new `headscale auth` CLI command group supports the approval flow: - `headscale auth approve --auth-id <id>` approves a pending authentication request (SSH check or web auth) - `headscale auth reject --auth-id <id>` rejects a pending authentication request - `headscale auth register --auth-id <id> --user <user>` registers a node (replaces deprecated `headscale nodes register`) [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) [#&#8203;3180](https://github.com/juanfont/headscale/pull/3180) ##### Policy tests (beta) Headscale now evaluates the `tests` block in a policy file. Tests assert reachability between named sources and destinations and cover the whole policy — both `acls` and `grants` rules contribute. They run on user-initiated writes via `headscale policy set`, on SIGHUP reload (`systemctl reload headscale` / `kill -HUP $(pidof headscale)`), and on `headscale policy check`. A failing test rejects the write before it is applied, with the same error message Tailscale SaaS would return for the same policy. At boot a stored policy whose tests no longer pass — for example because a referenced user was deleted while the server was offline — logs a warning and the server keeps running. Fix the policy and reload. This feature is **beta** while behavioural coverage against Tailscale SaaS broadens. [#&#8203;3229](https://github.com/juanfont/headscale/pull/3229) ##### SSH policy tests (beta) Headscale now evaluates the `sshTests` block in a policy file. Each entry names a source, one or more destination hosts, and three optional user lists: `accept` asserts the listed login users reach every destination via an accept- or check-action SSH rule, `deny` asserts none of them reach any destination, and `check` requires reachability specifically through a check-action rule. Tests run on `headscale policy set`, on SIGHUP reload (`systemctl reload headscale` / `kill -HUP $(pidof headscale)`), and on `headscale policy check`. A failing test rejects the write before it is applied, with the same error message Tailscale SaaS would return for the same policy. At boot a stored policy whose sshTests no longer pass — for example because a referenced user was deleted while the server was offline — logs a warning and the server keeps running. Fix the policy and reload. This feature is **beta** while behavioural coverage against Tailscale SaaS broadens. [#&#8203;3263](https://github.com/juanfont/headscale/pull/3263) ##### SSH rule validation SSH rule parsing now trims surrounding whitespace on `action`, `users`, `src`, and `dst`, rejects empty or wildcard entries in `users`, rejects empty `acceptEnv`, and rejects negative `checkPeriod`. `hosts:` aliases are rejected as SSH destinations, non-ASCII tag names are rejected at parse time, and the wording for group-nesting cycles matches Tailscale SaaS. [#&#8203;3263](https://github.com/juanfont/headscale/pull/3263) ##### Grants We now support [Tailscale grants](https://tailscale.com/docs/features/access-control/grants) alongside ACLs. Grants extend what you can express in a policy beyond packet filtering: the `app` field controls application-level features like Taildrive file sharing and peer relay, and the `via` field steers traffic through specific tagged subnet routers or exit nodes. The `ip` field works like an ACL rule. Grants can be mixed with ACLs in the same policy file. [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) As part of this, we added `autogroup:danger-all`. It resolves to `0.0.0.0/0` and `::/0`, all IP addresses, including those outside the tailnet. This replaces the old behaviour where `*` matched all IPs (see BREAKING below). The name is intentional: accepting traffic from the entire internet is a security-sensitive choice. `autogroup:danger-all` can only be used as a source. ##### Node attributes (`nodeAttrs`) ACL policies now accept a `nodeAttrs` block. Each entry hands a list of Tailscale node capabilities to every node matching `target`. The accepted target forms are the same as `acls.src` and `grants.src`: users, groups, tags, hosts, prefixes, `autogroup:member`, `autogroup:tagged`, and `*`. ```jsonc { "randomizeClientPort": true, "nodeAttrs": [ { "target": ["autogroup:tagged"], "attr": ["disable-captive-portal-detection"] }, { "target": ["alice@example.com"], "attr": ["nextdns:abc123"] }, ], } ``` Frequently requested capabilities this unlocks include `magicdns-aaaa`, `disable-relay-server`, `disable-captive-portal-detection`, `nextdns:<profile>` / `nextdns:no-device-info`, `randomize-client-port`, and the Taildrive `drive:share` / `drive:access` pair. The set is not limited to these, any string-only cap an operator places in policy reaches clients unchanged. `randomizeClientPort` also lands as a top-level policy field that toggles the default for every node, replacing the old server-config knob. A new `auto_update.enabled` config option controls the tailnet-wide default for client auto-update. When true, every node's CapMap carries `default-auto-update: [true]` so fresh clients pick up the default unless they make a local opt-in / opt-out choice. Policies that use the `funnel` cap, `ipPool` blocks, or `autogroup:admin` / `autogroup:owner` targets are rejected at load — those features depend on machinery headscale does not yet ship. [#&#8203;3251](https://github.com/juanfont/headscale/pull/3251) ##### Taildrive Taildrive ([file-sync between nodes](https://tailscale.com/docs/features/taildrive)) is now configurable through policy. Grant `drive:share` to the node that hosts files and `drive:access` to nodes that read or write them; pair with a `tailscale.com/cap/drive` grant to set the per-share access mode: ```jsonc { "nodeAttrs": [ { "target": ["tag:fileserver"], "attr": ["drive:share"] }, { "target": ["autogroup:member"], "attr": ["drive:access"] }, ], "grants": [ { "src": ["autogroup:member"], "dst": ["tag:fileserver"], "app": { "tailscale.com/cap/drive": [{ "shares": ["*"], "access": "rw" }], }, }, ], } ``` A wildcard `nodeAttrs` (`"target": ["*"]`) hands the caps to every node when fine-grained control is not needed. ##### Hostname sanitisation Hostnames are now santised using Tailscales `magicdns` sanitisation rules, matching Tailscale SaaS behavior. This means that hostnames with non-ASCII characters, special characters, or reserved DNS label characters are now transformed into valid DNS labels for MagicDNS. This improves our previously too strict sanitisation that rejected hostnames based on our guesswork and not based on the Tailscale upstream behaviour. Examples that previously regressed and now work: | Input | Raw (Hostname) | DNS label (GivenName) | | -------------------- | -------------------- | --------------------- | | `Joe's Mac mini` | `Joe's Mac mini` | `joes-mac-mini` | | `Yuri's MacBook Pro` | `Yuri's MacBook Pro` | `yuris-macbook-pro` | | `Test@Host` | `Test@Host` | `test-host` | | `mail.server` | `mail.server` | `mail-server` | | `My-PC!` | `My-PC!` | `my-pc` | | `我的电脑` | `我的电脑` | `node` | [#&#8203;3202](https://github.com/juanfont/headscale/pull/3202) ##### HA subnet router health probing Headscale now actively probes HA subnet routers to detect nodes that are connected but not forwarding traffic. The control plane periodically pings HA subnet routers via the Noise control channel and fails over to a healthy standby if the primary stops responding. This is enabled by default (`node.routes.ha.probe_interval: 10s`, `probe_timeout: 5s`) and only active when HA routes exist (2+ nodes advertising the same prefix). Set `probe_interval` to `0` to disable. This complements the existing disconnect-based failover, catching "zombie connected" routers that maintain their control session but cannot route packets. [#&#8203;3194](https://github.com/juanfont/headscale/pull/3194) ##### BREAKING ##### Hostname handling - The `GivenName` collision policy changed from an 8-char random hash suffix (`laptop-abc12xyz`) to a monotonic numeric suffix (`laptop`, `laptop-1`, `laptop-2`, …), matching Tailscale SaaS. Empty / all-non-ASCII hostnames now fall back to the literal `node` instead of `invalid-<rand>`. MagicDNS names change on upgrade for any node whose previous label was a random-suffix form; the raw `Hostname` column is unchanged. [#&#8203;3202](https://github.com/juanfont/headscale/pull/3202) ##### ACL Policy - Wildcard (`*`) in ACL sources and destinations now resolves to Tailscale's CGNAT range (`100.64.0.0/10`) and ULA range (`fd7a:115c:a1e0::/48`) instead of all IPs (`0.0.0.0/0` and `::/0`) [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) - This better matches Tailscale's security model where `*` means "any node in the tailnet" rather than "any IP address" - Policies that need to match all IP addresses including non-Tailscale IPs should use `autogroup:danger-all` as a source, or explicit CIDR ranges as destinations [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - `autogroup:danger-all` can only be used as a source; it cannot be used as a destination - **Note**: Users with non-standard IP ranges configured in `prefixes.ipv4` or `prefixes.ipv6` (which is unsupported and produces a warning) will need to explicitly specify their CIDR ranges in ACL rules instead of using `*` - Validate `autogroup:self` source restrictions matching Tailscale behavior - tags, hosts, and IPs are rejected as sources for `autogroup:self` destinations [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) - Policies using tags, hosts, or IP addresses as sources for `autogroup:self` destinations will now fail validation - The `proto:icmp` protocol name now only includes ICMPv4 (protocol 1), matching Tailscale behavior [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) - Previously, `proto:icmp` included both ICMPv4 and ICMPv6 - Use `proto:ipv6-icmp` or protocol number `58` explicitly for ICMPv6 ##### Upgrade Path - Headscale now enforces a strict version upgrade path [#&#8203;3083](https://github.com/juanfont/headscale/pull/3083) - Skipping minor versions (e.g. 0.27 → 0.29) is blocked; upgrade one minor version at a time - Downgrading to a previous minor version is blocked - Patch version changes within the same minor are always allowed ##### Configuration - The `randomize_client_port` server-config key was removed; the toggle now lives in the policy file as a top-level `randomizeClientPort` field, matching the Tailscale-hosted schema. [#&#8203;3251](https://github.com/juanfont/headscale/pull/3251) Headscale refuses to start when the old key is set. Move it to the policy file referenced by `policy.path`: ```jsonc { "randomizeClientPort": true, } ``` If you do not have a policy file yet, create one with that minimal content and point `policy.path` at it. The default carries over — empty / absent policy means `randomizeClientPort: false`, matching the previous behaviour for operators who never set the key. Per-node opt-in via `nodeAttrs` is also supported and stacks on top of the global default. ##### CLI - `headscale nodes register` is deprecated in favour of `headscale auth register --auth-id <id> --user <user>` [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) - The old command continues to work but will be removed in a future release ##### Changes ##### ACL Policy - Fix subnet-to-subnet peer visibility — subnet routers now correctly become peers when ACL rules reference only subnet CIDRs as sources, without requiring node IP rules [#&#8203;3175](https://github.com/juanfont/headscale/pull/3175) - Fix filter rule reduction to use only approved subnet routes instead of all advertised routes, matching Tailscale SaaS behavior [#&#8203;3175](https://github.com/juanfont/headscale/pull/3175) - Add ICMP and IPv6-ICMP protocols to default filter rules when no protocol is specified [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) - Fix autogroup:self handling for tagged nodes - tagged nodes no longer incorrectly receive autogroup:self filter rules [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) - Use CIDR format for autogroup:self destination IPs matching Tailscale behavior [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) - Merge filter rules with identical SrcIPs and IPProto matching Tailscale behavior - multiple ACL rules with the same source now produce a single FilterRule with combined DstPorts [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) - Fix exit nodes incorrectly receiving filter rules for destinations that only overlap via exit routes [#&#8203;3169](https://github.com/juanfont/headscale/issues/3169) [#&#8203;3175](https://github.com/juanfont/headscale/pull/3175) - Fix address-based aliases (hosts, raw IPs) incorrectly expanding to include the matching node's other address family [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Fix identity-based aliases (tags, users, groups) resolving to IPv4 only; they now include both IPv4 and IPv6 matching Tailscale behavior [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Fix wildcard (`*`) source in ACLs now using actually-approved subnet routes instead of autoApprover policy prefixes [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Fix non-wildcard source IPs being dropped when combined with wildcard `*` in the same ACL rule [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Fix exit node approval not triggering filter rule recalculation for peers [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Policy validation error messages now include field context (e.g., `src=`, `dst=`) and are more descriptive [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Reject policies whose `user@` tokens match multiple DB users; rename the duplicate via `headscale users rename` to load [#&#8203;3160](https://github.com/juanfont/headscale/issues/3160) - Evaluate the policy `tests` block on user-initiated writes across both `acls` and `grants`; reject policies whose tests fail (beta) [#&#8203;1803](https://github.com/juanfont/headscale/issues/1803) ##### Grants - Add support for policy grants with `ip`, `app`, and `via` fields [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Add `autogroup:danger-all` as a source-only autogroup resolving to all IP addresses [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Add capability grants for Taildrive (`cap/drive`) and peer relay (`cap/relay`) with automatic companion capabilities [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Add per-viewer via route steering — grants with `via` tags control which subnet router or exit node handles traffic for each group of viewers [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Enable Taildrive node attributes on all nodes; actual access is controlled by `cap/drive` grants [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) ##### SSH Policy - Add support for `localpart:*@&#8203;<domain>` in SSH rule `users` field, mapping each matching user's email local-part as their OS username [#&#8203;3091](https://github.com/juanfont/headscale/pull/3091) - Add SSH `check` action support with OIDC and CLI-based approval flows [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) ##### CLI - Add `headscale auth register`, `headscale auth approve`, and `headscale auth reject` CLI commands [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) - Deprecate `headscale nodes register --key` in favour of `headscale auth register --auth-id` [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) - `headscale policy check --bypass-grpc-and-access-database-directly` validates `user@` tokens against the live user database [#&#8203;3160](https://github.com/juanfont/headscale/issues/3160) - Remove deprecated `--namespace` flag from `nodes list`, `nodes register`, and `debug create-node` commands (use `--user` instead) [#&#8203;3093](https://github.com/juanfont/headscale/pull/3093) - Remove deprecated `namespace`/`ns` command aliases for `users` and `machine`/`machines` aliases for `nodes` [#&#8203;3093](https://github.com/juanfont/headscale/pull/3093) - Fix `DestroyUser` deleting all pre-auth keys in the database instead of only the target user's keys [#&#8203;3155](https://github.com/juanfont/headscale/pull/3155) - `headscale policy check` evaluates the `tests` block when invoked with `--bypass-grpc-and-access-database-directly`; without the flag it warns instead of running the tests against empty data [#&#8203;1803](https://github.com/juanfont/headscale/issues/1803) ##### API - Add `auth` related routes. The `auth/register` endpoint now expects data as JSON [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) - Remove gRPC reflection from the remote (TCP) server [#&#8203;3180](https://github.com/juanfont/headscale/pull/3180) ##### OIDC - Add a confirmation page before completing node registration, showing the device hostname and machine key fingerprint [#&#8203;3180](https://github.com/juanfont/headscale/pull/3180) - Generalise auth templates into reusable `AuthSuccess` and `AuthWeb` components [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) - Unify auth pipeline with `AuthVerdict` type, supporting registration, reauthentication, and SSH checks [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) ##### Configuration - Add `node.expiry` configuration option to set a default node key expiry for nodes registered via auth key [#&#8203;3122](https://github.com/juanfont/headscale/pull/3122) - Tagged nodes (registered with tagged pre-auth keys) are exempt from default expiry - `oidc.expiry` has been removed; use `node.expiry` instead (applies to all registration methods including OIDC) - `ephemeral_node_inactivity_timeout` is deprecated in favour of `node.ephemeral.inactivity_timeout` - Add `trusted_proxies` to gate `True-Client-IP` / `X-Real-IP` / `X-Forwarded-For` (previously honoured from any client) [#&#8203;3268](https://github.com/juanfont/headscale/pull/3268) ##### Debug - Add node connectivity ping page for verifying control-plane reachability [#&#8203;3183](https://github.com/juanfont/headscale/pull/3183) - Omit secret fields (`Pass`, `ClientSecret`, `APIKey`) from `/debug/config` JSON output [#&#8203;3180](https://github.com/juanfont/headscale/pull/3180) - Route `statsviz` through `tsweb.Protected` [#&#8203;3180](https://github.com/juanfont/headscale/pull/3180) ##### Other - Remove old migrations for the debian package [#&#8203;3185](https://github.com/juanfont/headscale/pull/3185) - Install `config-example.yaml` as example for the debian package [#&#8203;3186](https://github.com/juanfont/headscale/pull/3186) - Fix user-owned re-registration with zero client expiry and no default storing `0001-01-01 00:00:00` in the database instead of `NULL` [#&#8203;3199](https://github.com/juanfont/headscale/pull/3199) - Fix `tailscaled` restart on a node with no expiry resetting `NULL` to `0001-01-01 00:00:00` in the database, affecting both tagged and untagged nodes [#&#8203;3197](https://github.com/juanfont/headscale/pull/3197) - Backfill `nodes.expiry` rows persisted by older versions as `0001-01-01 00:00:00` to `NULL`, so nodes upgraded from <0.28 stop reporting as expired [#&#8203;3284](https://github.com/juanfont/headscale/issues/3284) - Update reverse proxy documentation for `trusted_proxies` configuration option [#&#8203;3292](https://github.com/juanfont/headscale/pull/3292) #### Upgrade Please follow the steps outlined in the [upgrade guide](https://headscale.net/stable/setup/upgrade/) to update your existing Headscale installation. #### Changelog - [`b0c221f`](https://github.com/juanfont/headscale/commit/b0c221f3a167505f4337522ba16958701283f69d) changelog: set 0.29 date ### [`v0.29.0`](https://github.com/juanfont/headscale/blob/HEAD/CHANGELOG.md#0290-2026-06-17) [Compare Source](https://github.com/juanfont/headscale/compare/v0.28.0...v0.29.0) **Minimum supported Tailscale client version: v1.80.0** ##### Tailscale ACL compatibility improvements Extensive test cases were systematically generated using Tailscale clients and the official SaaS to understand how the packet filter should be generated. We discovered a few differences, but overall our implementation was very close. [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) ##### SSH check action SSH rules with `"action": "check"` are now supported. When a client initiates a SSH connection to a node with a `check` action policy, the user is prompted to authenticate via OIDC or CLI approval before access is granted. OIDC approval requires the authenticated user to own the source node; tagged source nodes cannot use SSH check-mode. A new `headscale auth` CLI command group supports the approval flow: - `headscale auth approve --auth-id <id>` approves a pending authentication request (SSH check or web auth). - `headscale auth reject --auth-id <id>` rejects a pending authentication request. - `headscale auth register --auth-id <id> --user <user>` registers a node (replaces deprecated `headscale nodes register`). [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) [#&#8203;3180](https://github.com/juanfont/headscale/pull/3180) ##### Policy tests (beta) Headscale now evaluates the `tests` block in a policy file. Tests assert reachability between named sources and destinations and cover the whole policy — both `acls` and `grants` rules contribute. They run on user-initiated writes via `headscale policy set`, on SIGHUP reload (`systemctl reload headscale` / `kill -HUP $(pidof headscale)`), and on `headscale policy check`. A failing test rejects the write before it is applied, with the same error message Tailscale SaaS would return for the same policy. At boot a stored policy whose tests no longer pass — for example because a referenced user was deleted while the server was offline — logs a warning and the server keeps running. Fix the policy and reload. This feature is **beta** while behavioural coverage against Tailscale SaaS broadens. [#&#8203;3229](https://github.com/juanfont/headscale/pull/3229) ##### SSH policy tests (beta) Headscale now evaluates the `sshTests` block in a policy file. Each entry names a source, one or more destination hosts, and three optional user lists: `accept` asserts the listed login users reach every destination via an accept- or check-action SSH rule, `deny` asserts none of them reach any destination, and `check` requires reachability specifically through a check-action rule. Tests run on `headscale policy set`, on SIGHUP reload (`systemctl reload headscale` / `kill -HUP $(pidof headscale)`), and on `headscale policy check`. A failing test rejects the write before it is applied, with the same error message Tailscale SaaS would return for the same policy. At boot a stored policy whose sshTests no longer pass — for example because a referenced user was deleted while the server was offline — logs a warning and the server keeps running. Fix the policy and reload. This feature is **beta** while behavioural coverage against Tailscale SaaS broadens. [#&#8203;3263](https://github.com/juanfont/headscale/pull/3263) ##### SSH rule validation SSH rule parsing now trims surrounding whitespace on `action`, `users`, `src`, and `dst`, rejects empty or wildcard entries in `users`, rejects empty `acceptEnv`, and rejects negative `checkPeriod`. `hosts:` aliases are rejected as SSH destinations, non-ASCII tag names are rejected at parse time, and the wording for group-nesting cycles matches Tailscale SaaS. [#&#8203;3263](https://github.com/juanfont/headscale/pull/3263) ##### Grants We now support [Tailscale grants](https://tailscale.com/docs/features/access-control/grants) alongside ACLs. Grants extend what you can express in a policy beyond packet filtering: the `app` field controls application-level features like Taildrive file sharing and peer relay, and the `via` field steers traffic through specific tagged subnet routers or exit nodes. The `ip` field works like an ACL rule. Grants can be mixed with ACLs in the same policy file. [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) As part of this, we added `autogroup:danger-all`. It resolves to `0.0.0.0/0` and `::/0`, all IP addresses, including those outside the tailnet. This replaces the old behaviour where `*` matched all IPs (see BREAKING below). The name is intentional: accepting traffic from the entire internet is a security-sensitive choice. `autogroup:danger-all` can only be used as a source. ##### Node attributes (`nodeAttrs`) ACL policies now accept a `nodeAttrs` block. Each entry hands a list of Tailscale node capabilities to every node matching `target`. The accepted target forms are the same as `acls.src` and `grants.src`: users, groups, tags, hosts, prefixes, `autogroup:member`, `autogroup:tagged`, and `*`. ```jsonc { "randomizeClientPort": true, "nodeAttrs": [ { "target": ["autogroup:tagged"], "attr": ["disable-captive-portal-detection"] }, { "target": ["alice@example.com"], "attr": ["nextdns:abc123"] }, ], } ``` Frequently requested capabilities this unlocks include `magicdns-aaaa`, `disable-relay-server`, `disable-captive-portal-detection`, `nextdns:<profile>` / `nextdns:no-device-info`, `randomize-client-port`, and the Taildrive `drive:share` / `drive:access` pair. The set is not limited to these. Any string-only cap an operator places in policy reaches clients unchanged. `randomizeClientPort` also lands as a top-level policy field that toggles the default for every node, replacing the old server-config knob. A new `auto_update.enabled` config option controls the tailnet-wide default for client auto-update. When true, every node's CapMap carries `default-auto-update: [true]` so fresh clients pick up the default unless they make a local opt-in / opt-out choice. Policies that use the `funnel` cap, `ipPool` blocks, or `autogroup:admin` / `autogroup:owner` targets are rejected at load — those features depend on machinery headscale does not yet ship. [#&#8203;3251](https://github.com/juanfont/headscale/pull/3251) ##### Taildrive Taildrive ([file-sync between nodes](https://tailscale.com/docs/features/taildrive)) is now configurable through policy. Grant `drive:share` to the node that hosts files and `drive:access` to nodes that read or write them; pair with a `tailscale.com/cap/drive` grant to set the per-share access mode: ```jsonc { "nodeAttrs": [ { "target": ["tag:fileserver"], "attr": ["drive:share"] }, { "target": ["autogroup:member"], "attr": ["drive:access"] }, ], "grants": [ { "src": ["autogroup:member"], "dst": ["tag:fileserver"], "app": { "tailscale.com/cap/drive": [{ "shares": ["*"], "access": "rw" }], }, }, ], } ``` A wildcard `nodeAttrs` (`"target": ["*"]`) hands the caps to every node when fine-grained control is not needed. ##### Hostname sanitisation Hostnames are now sanitised using Tailscale's `magicdns` sanitisation rules, matching Tailscale SaaS behavior. This means that hostnames with non-ASCII characters, special characters, or reserved DNS label characters are now transformed into valid DNS labels for MagicDNS. This improves our previously too strict sanitisation that rejected hostnames based on our guesswork and not based on the Tailscale upstream behaviour. Examples that previously regressed and now work: | Input | Raw (Hostname) | DNS label (GivenName) | | -------------------- | -------------------- | --------------------- | | `Joe's Mac mini` | `Joe's Mac mini` | `joes-mac-mini` | | `Yuri's MacBook Pro` | `Yuri's MacBook Pro` | `yuris-macbook-pro` | | `Test@Host` | `Test@Host` | `test-host` | | `mail.server` | `mail.server` | `mail-server` | | `My-PC!` | `My-PC!` | `my-pc` | | `我的电脑` | `我的电脑` | `node` | [#&#8203;3202](https://github.com/juanfont/headscale/pull/3202) ##### HA subnet router health probing Headscale now actively probes HA subnet routers to detect nodes that are connected but not forwarding traffic. The control plane periodically pings HA subnet routers via the Noise control channel and fails over to a healthy standby if the primary stops responding. This is enabled by default (`node.routes.ha.probe_interval: 10s`, `probe_timeout: 5s`) and only active when HA routes exist (2+ nodes advertising the same prefix). Set `probe_interval` to `0` to disable. This complements the existing disconnect-based failover, catching "zombie connected" routers that maintain their control session but cannot route packets. [#&#8203;3194](https://github.com/juanfont/headscale/pull/3194) ##### BREAKING ##### Hostname handling - The `GivenName` collision policy changed from an 8-char random hash suffix (`laptop-abc12xyz`) to a monotonic numeric suffix (`laptop`, `laptop-1`, `laptop-2`, …), matching Tailscale SaaS. Empty / all-non-ASCII hostnames now fall back to the literal `node` instead of `invalid-<rand>`. MagicDNS names change on upgrade for any node whose previous label was a random-suffix form; the raw `Hostname` column is unchanged. [#&#8203;3202](https://github.com/juanfont/headscale/pull/3202) ##### ACL Policy - Wildcard (`*`) in ACL sources now resolves to Tailscale's CGNAT range (`100.64.0.0/10`) and ULA range (`fd7a:115c:a1e0::/48`) instead of all IPs (`0.0.0.0/0` and `::/0`). [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) - This better matches Tailscale's security model where `*` means "any node in the tailnet" rather than "any IP address". - Policies that need to match all IP addresses including non-Tailscale IPs should use `autogroup:danger-all` as a source. [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - `autogroup:danger-all` can only be used as a source. It cannot be used as a destination. - `autogroup:self` source restrictions are validated, matching Tailscale behavior. Tags, hosts, and IPs are rejected as sources for `autogroup:self` destinations. [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) - Policies using tags, hosts, or IP addresses as sources for `autogroup:self` destinations will now fail validation. - The `proto:icmp` protocol name now only includes ICMPv4 (protocol 1), matching Tailscale behavior. [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) - Previously, `proto:icmp` included both ICMPv4 and ICMPv6. - ICMPv6 needs `proto:ipv6-icmp` or protocol number `58` explicitly. ##### Upgrade Path - Headscale now enforces a strict version upgrade path. [#&#8203;3083](https://github.com/juanfont/headscale/pull/3083) - Skipping minor versions (e.g. 0.27 → 0.29) is blocked. Upgrade one minor version at a time. - Downgrading to a previous minor version is blocked. - Patch version changes within the same minor are always allowed. ##### Configuration - The `randomize_client_port` server-config key was removed. The toggle now lives in the policy file as a top-level `randomizeClientPort` field, matching the Tailscale-hosted schema. [#&#8203;3251](https://github.com/juanfont/headscale/pull/3251) Headscale refuses to start when the old key is set. Move it to the policy file referenced by `policy.path`: ```jsonc { "randomizeClientPort": true, } ``` If you do not have a policy file yet, create one with that minimal content and point `policy.path` at it. The default carries over — empty / absent policy means `randomizeClientPort: false`, matching the previous behaviour for operators who never set the key. Per-node opt-in via `nodeAttrs` is also supported and stacks on top of the global default. ##### CLI - `headscale nodes register` is deprecated in favour of `headscale auth register --auth-id <id> --user <user>`. [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) - The old command continues to work but will be removed in a future release. ##### Changes ##### ACL Policy - Subnet-to-subnet peer visibility works. Subnet routers now correctly become peers when ACL rules reference only subnet CIDRs as sources, without requiring node IP rules. [#&#8203;3175](https://github.com/juanfont/headscale/pull/3175) - Filter rule reduction uses only approved subnet routes instead of all advertised routes, matching Tailscale SaaS behavior. [#&#8203;3175](https://github.com/juanfont/headscale/pull/3175) - Default filter rules include ICMP and IPv6-ICMP protocols when no protocol is specified. [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) - autogroup:self handling for tagged nodes is fixed. Tagged nodes no longer incorrectly receive autogroup:self filter rules. [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) - autogroup:self destination IPs use CIDR format, matching Tailscale behavior. [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) - Filter rules with identical SrcIPs and IPProto are merged, matching Tailscale behavior. Multiple ACL rules with the same source now produce a single FilterRule with combined DstPorts. [#&#8203;3036](https://github.com/juanfont/headscale/pull/3036) - Exit nodes no longer incorrectly receive filter rules for destinations that only overlap via exit routes. [#&#8203;3169](https://github.com/juanfont/headscale/issues/3169) [#&#8203;3175](https://github.com/juanfont/headscale/pull/3175) - Address-based aliases (hosts, raw IPs) no longer incorrectly expand to include the matching node's other address family. [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Identity-based aliases (tags, users, groups) no longer resolve to IPv4 only. They now include both IPv4 and IPv6, matching Tailscale behavior. [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Wildcard (`*`) source in ACLs now uses actually-approved subnet routes instead of autoApprover policy prefixes. [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Non-wildcard source IPs are no longer dropped when combined with wildcard `*` in the same ACL rule. [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Exit node approval triggers filter rule recalculation for peers. [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Policy validation error messages now include field context (e.g., `src=`, `dst=`) and are more descriptive. [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Policies whose `user@` tokens match multiple DB users are rejected. Rename the duplicate via `headscale users rename` to load. [#&#8203;3160](https://github.com/juanfont/headscale/issues/3160) - The policy `tests` block is evaluated on user-initiated writes across both `acls` and `grants`. Policies whose tests fail are rejected (beta). [#&#8203;1803](https://github.com/juanfont/headscale/issues/1803) ##### Grants - Policy grants with `ip`, `app`, and `via` fields are supported. [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - `autogroup:danger-all` is a source-only autogroup resolving to all IP addresses. [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Taildrive (`cap/drive`) and peer relay (`cap/relay`) have capability grants with automatic companion capabilities. [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Via routes are steered per viewer. Grants with `via` tags control which subnet router or exit node handles traffic for each group of viewers. [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) - Taildrive node attributes are enabled on all nodes. Actual access is controlled by `cap/drive` grants. [#&#8203;2180](https://github.com/juanfont/headscale/pull/2180) ##### SSH Policy - The SSH rule `users` field supports `localpart:*@&#8203;<domain>`, mapping each matching user's email local-part as their OS username. [#&#8203;3091](https://github.com/juanfont/headscale/pull/3091) - SSH supports the `check` action with OIDC and CLI-based approval flows. [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) ##### CLI - `headscale auth register`, `headscale auth approve`, and `headscale auth reject` are new CLI commands. [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) - `headscale nodes register --key` is deprecated in favour of `headscale auth register --auth-id`. [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) - `headscale policy check --bypass-grpc-and-access-database-directly` validates `user@` tokens against the live user database. [#&#8203;3160](https://github.com/juanfont/headscale/issues/3160) - The deprecated `--namespace` flag is removed from `nodes list`, `nodes register`, and `debug create-node` commands (use `--user` instead). [#&#8203;3093](https://github.com/juanfont/headscale/pull/3093) - The deprecated `namespace`/`ns` command aliases for `users` and `machine`/`machines` aliases for `nodes` are removed. [#&#8203;3093](https://github.com/juanfont/headscale/pull/3093) - `DestroyUser` deletes only the target user's keys instead of all pre-auth keys in the database. [#&#8203;3155](https://github.com/juanfont/headscale/pull/3155) - `headscale policy check` evaluates the `tests` block when invoked with `--bypass-grpc-and-access-database-directly`. Without the flag it warns instead of running the tests against empty data. [#&#8203;1803](https://github.com/juanfont/headscale/issues/1803) ##### API - The API has `auth` related routes. The `auth/register` endpoint now expects data as JSON. [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) - gRPC reflection is removed from the remote (TCP) server. [#&#8203;3180](https://github.com/juanfont/headscale/pull/3180) ##### OIDC - A confirmation page before completing node registration shows the device hostname and machine key fingerprint. [#&#8203;3180](https://github.com/juanfont/headscale/pull/3180) - Auth templates are generalised into reusable `AuthSuccess` and `AuthWeb` components. [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) - The auth pipeline is unified with an `AuthVerdict` type, supporting registration, reauthentication, and SSH checks. [#&#8203;1850](https://github.com/juanfont/headscale/pull/1850) ##### Configuration - The `node.expiry` configuration option sets a default node key expiry for nodes registered via auth key. [#&#8203;3122](https://github.com/juanfont/headscale/pull/3122) - Tagged nodes (registered with tagged pre-auth keys) are exempt from default expiry. - `oidc.expiry` has been removed. Use `node.expiry` instead (applies to all registration methods including OIDC). - `ephemeral_node_inactivity_timeout` is deprecated in favour of `node.ephemeral.inactivity_timeout`. - `trusted_proxies` gates `True-Client-IP` / `X-Real-IP` / `X-Forwarded-For` (previously honoured from any client). [#&#8203;3268](https://github.com/juanfont/headscale/pull/3268) ##### Debug - A node connectivity ping page verifies control-plane reachability. [#&#8203;3183](https://github.com/juanfont/headscale/pull/3183) - `/debug/config` JSON output omits secret fields (`Pass`, `ClientSecret`, `APIKey`). [#&#8203;3180](https://github.com/juanfont/headscale/pull/3180) - `statsviz` is routed through `tsweb.Protected`. [#&#8203;3180](https://github.com/juanfont/headscale/pull/3180) ##### Other - Old migrations for the debian package are removed. [#&#8203;3185](https://github.com/juanfont/headscale/pull/3185) - The debian package installs `config-example.yaml` as example. [#&#8203;3186](https://github.com/juanfont/headscale/pull/3186) - User-owned re-registration with zero client expiry and no default stores `NULL` in the database instead of `0001-01-01 00:00:00`. [#&#8203;3199](https://github.com/juanfont/headscale/pull/3199) - A `tailscaled` restart on a node with no expiry no longer resets `NULL` to `0001-01-01 00:00:00` in the database. This affected both tagged and untagged nodes. [#&#8203;3197](https://github.com/juanfont/headscale/pull/3197) - `nodes.expiry` rows persisted by older versions as `0001-01-01 00:00:00` are backfilled to `NULL`, so nodes upgraded from <0.28 stop reporting as expired. [#&#8203;3284](https://github.com/juanfont/headscale/issues/3284) - The reverse proxy documentation covers the `trusted_proxies` configuration option. [#&#8203;3292](https://github.com/juanfont/headscale/pull/3292) ### [`v0.28.0`](https://github.com/juanfont/headscale/releases/tag/v0.28.0) [Compare Source](https://github.com/juanfont/headscale/compare/v0.28.0...v0.28.0) **Minimum supported Tailscale client version: v1.74.0** #### Tags as identity Tags are now implemented following the Tailscale model where tags and user ownership are mutually exclusive. Devices can be either user-owned (authenticated via web/OIDC) or tagged (authenticated via tagged PreAuthKeys). Tagged devices receive their identity from tags rather than users, making them suitable for servers and infrastructure. Applying a tag to a device removes user-based ownership. See the [Tailscale tags documentation](https://tailscale.com/kb/1068/tags) for details on how tags work. User-owned nodes can now request tags during registration using `--advertise-tags`. Tags are validated against the `tagOwners` policy and applied at registration time. Tags can be managed via the CLI or API after registration. Tagged nodes can return to user-owned by re-authenticating with `tailscale up --advertise-tags= --force-reauth`. A one-time migration will validate and migrate any `RequestTags` (stored in hostinfo) to the tags column. Tags are validated against your policy's `tagOwners` rules during migration. [#&#8203;3011](https://github.com/juanfont/headscale/pull/3011) #### Smarter map updates The map update system has been rewritten to send smaller, partial updates instead of full network maps whenever possible. This reduces bandwidth usage and improves performance, especially for large networks. The system now properly tracks peer changes and can send removal notifications when nodes are removed due to policy changes. [#&#8203;2856](https://github.com/juanfont/headscale/pull/2856) [#&#8203;2961](https://github.com/juanfont/headscale/pull/2961) #### Pre-authentication key security improvements Pre-authentication keys now use bcrypt hashing for improved security [#&#8203;2853](https://github.com/juanfont/headscale/pull/2853). Keys are stored as a prefix and bcrypt hash instead of plaintext. The full key is only displayed once at creation time. When listing keys, only the prefix is shown (e.g., `hskey-auth-{prefix}-***`). All new keys use the format `hskey-auth-{prefix}-{secret}`. Legacy plaintext keys in the format `{secret}` will continue to work for backwards compatibility. #### Web registration templates redesign The OIDC callback and device registration web pages have been updated to use the Material for MkDocs design system from the official documentation. The templates now use consistent typography, spacing, and colours across all registration flows. #### Database migration support removed for pre-0.25.0 databases Headscale no longer supports direct upgrades from databases created before version 0.25.0. Users on older versions must upgrade sequentially through each stable release, selecting the latest patch version available for each minor release. #### BREAKING - **API**: The Node message in the gRPC/REST API has been simplified - the `ForcedTags`, `InvalidTags`, and `ValidTags` fields have been removed and replaced with a single `Tags` field that contains the node's applied tags [#&#8203;2993](https://github.com/juanfont/headscale/pull/2993) - API clients should use the `Tags` field instead of `ValidTags` - The `headscale nodes list` CLI command now always shows a Tags column and the `--tags` flag has been removed - **PreAuthKey CLI**: Commands now use ID-based operations instead of user+key combinations [#&#8203;2992](https://github.com/juanfont/headscale/pull/2992) - `headscale preauthkeys create` no longer requires `--user` flag (optional for tracking creation) - `headscale preauthkeys list` lists all keys (no longer filtered by user) - `headscale preauthkeys expire --id <ID>` replaces `--user <USER> <KEY>` - `headscale preauthkeys delete --id <ID>` replaces `--user <USER> <KEY>` **Before:** ```bash headscale preauthkeys create --user 1 --reusable --tags tag:server headscale preauthkeys list --user 1 headscale preauthkeys expire --user 1 <KEY> headscale preauthkeys delete --user 1 <KEY> ``` **After:** ```bash headscale preauthkeys create --reusable --tags tag:server headscale preauthkeys list headscale preauthkeys expire --id 123 headscale preauthkeys delete --id 123 ``` - **Tags**: The gRPC `SetTags` endpoint now allows converting user-owned nodes to tagged nodes by setting tags. [#&#8203;2885](https://github.com/juanfont/headscale/pull/2885) - **Tags**: Tags are now resolved from the node's stored Tags field only [#&#8203;2931](https://github.com/juanfont/headscale/pull/2931) - `--advertise-tags` is processed during registration, not on every policy evaluation - PreAuthKey tagged devices ignore `--advertise-tags` from clients - User-owned nodes can use `--advertise-tags` if authorized by `tagOwners` policy - Tags can be managed via CLI (`headscale nodes tag`) or the SetTags API after registration - Database migration support removed for pre-0.25.0 databases [#&#8203;2883](https://github.com/juanfont/headscale/pull/2883) - If you are running a version older than 0.25.0, you must upgrade to 0.25.1 first, then upgrade to this release - See the [upgrade path documentation](https://headscale.net/stable/about/faq/#what-is-the-recommended-update-path-can-i-skip-multiple-versions-while-updating) for detailed guidance - In version 0.29, all migrations before 0.28.0 will also be removed - Remove ability to move nodes between users [#&#8203;2922](https://github.com/juanfont/headscale/pull/2922) - The `headscale nodes move` CLI command has been removed - The `MoveNode` API endpoint has been removed - Nodes are permanently associated with their user or tag at registration time - Add `oidc.email_verified_required` config option to control email verification requirement [#&#8203;2860](https://github.com/juanfont/headscale/pull/2860) - When `true` (default), only verified emails can authenticate via OIDC in conjunction with `oidc.allowed_domains` or `oidc.allowed_users`. Previous versions allowed to authenticate with an unverified email but did not store the email address in the user profile. This is now rejected during authentication with an `unverified email` error. - When `false`, unverified emails are allowed for OIDC authentication and the email address is stored in the user profile regardless of its verification state. - **SSH Policy**: Wildcard (`*`) is no longer supported as an SSH destination [#&#8203;3009](https://github.com/juanfont/headscale/issues/3009) - Use `autogroup:member` for user-owned devices - Use `autogroup:tagged` for tagged devices - Use specific tags (e.g., `tag:server`) for targeted access **Before:** ```json { "action": "accept", "src": ["group:admins"], "dst": ["*"], "users": ["root"] } ``` **After:** ```json { "action": "accept", "src": ["group:admins"], "dst": ["autogroup:member", "autogroup:tagged"], "users": ["root"] } ``` - **SSH Policy**: SSH source/destination validation now enforces Tailscale's security model [#&#8203;3010](https://github.com/juanfont/headscale/issues/3010) Per [Tailscale SSH documentation](https://tailscale.com/kb/1193/tailscale-ssh), the following rules are now enforced: 1. **Tags cannot SSH to user-owned devices**: SSH rules with `tag:*` or `autogroup:tagged` as source cannot have username destinations (e.g., `alice@`) or `autogroup:member`/`autogroup:self` as destination 2. **Username destinations require same-user source**: If destination is a specific username (e.g., `alice@`), the source must be that exact same user only. Use `autogroup:self` for same-user SSH access instead **Invalid policies now rejected at load time:** ```json // INVALID: tag source to user destination {"src": ["tag:server"], "dst": ["alice@"], ...} // INVALID: autogroup:tagged to autogroup:member {"src": ["autogroup:tagged"], "dst": ["autogroup:member"], ...} // INVALID: group to specific user (use autogroup:self instead) {"src": ["group:admins"], "dst": ["alice@"], ...} ``` **Valid patterns:** ```json // Users/groups can SSH to their own devices via autogroup:self {"src": ["group:admins"], "dst": ["autogroup:self"], ...} // Users/groups can SSH to tagged devices {"src": ["group:admins"], "dst": ["autogroup:tagged"], ...} // Tagged devices can SSH to other tagged devices {"src": ["autogroup:tagged"], "dst": ["autogroup:tagged"], ...} // Same user can SSH to their own devices {"src": ["alice@"], "dst": ["alice@"], ...} ``` #### Changes - Smarter change notifications send partial map updates and node removals instead of full maps [#&#8203;2961](https://github.com/juanfont/headscale/pull/2961) - Send lightweight endpoint and DERP region updates instead of full maps [#&#8203;2856](https://github.com/juanfont/headscale/pull/2856) - Add NixOS module in repository for faster iteration [#&#8203;2857](https://github.com/juanfont/headscale/pull/2857) - Add favicon to webpages [#&#8203;2858](https://github.com/juanfont/headscale/pull/2858) - Redesign OIDC callback and registration web templates [#&#8203;2832](https://github.com/juanfont/headscale/pull/2832) - Reclaim IPs from the IP allocator when nodes are deleted [#&#8203;2831](https://github.com/juanfont/headscale/pull/2831) - Add bcrypt hashing for pre-authentication keys [#&#8203;2853](https://github.com/juanfont/headscale/pull/2853) - Add prefix to API keys (`hskey-api-{prefix}-{secret}`) [#&#8203;2853](https://github.com/juanfont/headscale/pull/2853) - Add prefix to registration keys for web authentication tracking (`hskey-reg-{random}`) [#&#8203;2853](https://github.com/juanfont/headscale/pull/2853) - Tags can now be tagOwner of other tags [#&#8203;2930](https://github.com/juanfont/headscale/pull/2930) - Add `taildrop.enabled` configuration option to enable/disable Taildrop file sharing [#&#8203;2955](https://github.com/juanfont/headscale/pull/2955) - Allow disabling the metrics server by setting empty `metrics_listen_addr` [#&#8203;2914](https://github.com/juanfont/headscale/pull/2914) - Log ACME/autocert errors for easier debugging [#&#8203;2933](https://github.com/juanfont/headscale/pull/2933) - Improve CLI list output formatting [#&#8203;2951](https://github.com/juanfont/headscale/pull/2951) - Use Debian 13 distroless base images for containers [#&#8203;2944](https://github.com/juanfont/headscale/pull/2944) - Fix ACL policy not applied to new OIDC nodes until client restart [#&#8203;2890](https://github.com/juanfont/headscale/pull/2890) - Fix autogroup:self preventing visibility of nodes matched by other ACL rules [#&#8203;2882](https://github.com/juanfont/headscale/pull/2882) - Fix nodes being rejected after pre-authentication key expiration [#&#8203;2917](https://github.com/juanfont/headscale/pull/2917) - Fix list-routes command respecting identifier filter with JSON output [#&#8203;2927](https://github.com/juanfont/headscale/pull/2927) - Add `--id` flag to expire/delete commands as alternative to `--prefix` for API Keys [#&#8203;3016](https://github.com/juanfont/headscale/pull/3016) #### Upgrade Please follow the steps outlined in the [upgrade guide](https://headscale.net/stable/setup/upgrade/) to update your existing Headscale installation. **It's best to update from one stable version to the next** (e.g., 0.24.0 → 0.25.1 → 0.26.1) in case you are multiple releases behind. You should always pick the latest available patch release. Be sure to check the changelog above for version-specific upgrade instructions and breaking changes. ##### Backup Your Database **Always backup your database before upgrading.** Here's how to backup a SQLite database: ```bash # Stop headscale systemctl stop headscale # Backup sqlite database cp /var/lib/headscale/db.sqlite /var/lib/headscale/db.sqlite.backup # Backup sqlite WAL/SHM files (if they exist) cp /var/lib/headscale/db.sqlite-wal /var/lib/headscale/db.sqlite-wal.backup cp /var/lib/headscale/db.sqlite-shm /var/lib/headscale/db.sqlite-shm.backup # Start headscale (migration will run automatically) systemctl start headscale ``` #### Changelog - [`7f003ec`](https://github.com/juanfont/headscale/commit/7f003ecafff59e627fda3f9597bd3e7d28cacf53) Add a page to describe supported registration methods - [`5d30027`](https://github.com/juanfont/headscale/commit/5d300273dc57d552c64d9ebd0142f1bce8a1bf66) Add a tags page and describe a few common operations - [`d32f670`](https://github.com/juanfont/headscale/commit/d32f6707f7e2f8e670a6aadf155817bb1ebcb194) Add missing words - [`89e436f`](https://github.com/juanfont/headscale/commit/89e436f0e6abdb4aa259425699aca8c046c332f4) Bump year/version for mkdocs - [`49b70db`](https://github.com/juanfont/headscale/commit/49b70db7f2997a0a13a68ba50390feac937dd488) Conversion from personal to tagged node is reversible - [`04b4071`](https://github.com/juanfont/headscale/commit/04b4071888980f7944d231487790158553d2c9a1) Fix node expiration success message - [`ee127ed`](https://github.com/juanfont/headscale/commit/ee127edbf7fcbfc949fbcce56e4307730ae72c51) Remove trace log for preauthkeys create - [`2695d15`](https://github.com/juanfont/headscale/commit/2695d1527e6edb76a151b4a72e1cebb0d349a228) Use registration key instead of machine key - [`44af046`](https://github.com/juanfont/headscale/commit/44af046196e9824394f3cca4c8c0329279bb9b5e) all: update Go module dependencies - [`4a744f4`](https://github.com/juanfont/headscale/commit/4a744f423b7cd47c4432b8d174057a60b58cd111) changelog: change api key format - [`97fa117`](https://github.com/juanfont/headscale/commit/97fa117c48a58bee3941e5e8b4393873501afe14) changelog: set 0.28 date - [`b5329ff`](https://github.com/juanfont/headscale/commit/b5329ff0f3acf0d4fbbc8457c05ac8e8a5cdc2a1) flake.lock: update nixpkgs to 2026-02-03 - [`eac8a57`](https://github.com/juanfont/headscale/commit/eac8a57bce7688efddaa4ad0b3ca07244a9712c5) flake.nix: update hashes for dependency changes - [`ca75e09`](https://github.com/juanfont/headscale/commit/ca75e096e6833c0a01d14381a1b9cacf12e7272f) integration: add test for tagged→user-owned conversion panic - [`a09b0d1`](https://github.com/juanfont/headscale/commit/a09b0d1d6919058de6ed58557032bcd7a671bb22) policy/v2: add Caller() to log statements in compileACLWithAutogroupSelf - [`1f32c8b`](https://github.com/juanfont/headscale/commit/1f32c8bf615ce97b21bdb29dc920c1227f058df1) policy/v2: add IsTagged() guards to prevent panics on tagged nodes - [`c2f28ef`](https://github.com/juanfont/headscale/commit/c2f28efbd710c129b1c62dcffa9041e99860b0b3) policy/v2: add test for issue [#&#8203;2990](https://github.com/juanfont/headscale/issues/2990) same-user tagged device - [`11f0d4c`](https://github.com/juanfont/headscale/commit/11f0d4cfdd935b3cc7612eab48a75a29c9c910b4) policy/v2: include nodes with empty filters in BuildPeerMap - [`362696a`](https://github.com/juanfont/headscale/commit/362696a5ef220a09b10459f6a899d2a5720bcab7) policy/v2: keep partial IPSet on SSH destination resolution errors - [`fb137a8`](https://github.com/juanfont/headscale/commit/fb137a8fe3bfc7e4c739bceb30a5297ebe8b11eb) policy/v2: use partial IPSet on group resolution errors in autogroup:self path - [`df184e5`](https://github.com/juanfont/headscale/commit/df184e5276ae2ea827955f9d4332386734cc4367) state: fix expiry handling during node tag conversion - [`306aabb`](https://github.com/juanfont/headscale/commit/306aabbbce1fbcedad8e74b180490b266d993667) state: fix nil pointer panic when re-registering tagged node without user - [`4912cea`](https://github.com/juanfont/headscale/commit/4912ceaaf5f8576ef7270f91c3b568caa74b7f92) state: inline reauthExistingNode and convertTaggedNodeToUser - [`46daa65`](https://github.com/juanfont/headscale/commit/46daa659e23278751063001a402f308f35693dc3) state: omit AuthKeyID/AuthKey in node Updates to prevent FK errors - [`0630fd3`](https://github.com/juanfont/headscale/commit/0630fd32e5f5abf73f04daf5b282da904c7c4734) state: refactor HandleNodeFromAuthPath for clarity - [`ce7c256`](https://github.com/juanfont/headscale/commit/ce7c256d1e30dc2583e32d557432879bea6ef9b0) state: set User pointer during tagged→user-owned conversion - [`d7f7f2c`](https://github.com/juanfont/headscale/commit/d7f7f2c85e762bba3f11cae10a31f7099af960ce) state: validate tags before UpdateNode to ensure consistency ### [`v0.28.0`](https://github.com/juanfont/headscale/blob/HEAD/CHANGELOG.md#0280-2026-02-04) [Compare Source](https://github.com/juanfont/headscale/compare/v0.27.1...v0.28.0) **Minimum supported Tailscale client version: v1.74.0** ##### Tags as identity Tags now follow the Tailscale model, where tags and user ownership are mutually exclusive. A device is either user-owned (authenticated via web/OIDC) or tagged (authenticated via tagged PreAuthKeys). Tagged devices take their identity from tags rather than users, which suits servers and infrastructure. Applying a tag to a device removes user-based ownership. See the [Tailscale tags documentation](https://tailscale.com/docs/features/tags) for details on how tags work. User-owned nodes can now request tags during registration using `--advertise-tags`. Tags are validated against the `tagOwners` policy and applied at registration time. After registration, tags can be managed via the CLI or API. Tagged nodes can return to user-owned by re-authenticating with `tailscale up --advertise-tags= --force-reauth`. A one-time migration validates and migrates any `RequestTags` (stored in hostinfo) to the tags column. Tags are validated against your policy's `tagOwners` rules during migration. [#&#8203;3011](https://github.com/juanfont/headscale/pull/3011) ##### Smarter map updates The map update system has been rewritten to send smaller, partial updates instead of full network maps whenever possible. This reduces bandwidth usage and improves performance, especially for large networks. The system now properly tracks peer changes and can send removal notifications when nodes are removed due to policy changes. [#&#8203;2856](https://github.com/juanfont/headscale/pull/2856) [#&#8203;2961](https://github.com/juanfont/headscale/pull/2961) ##### Pre-authentication key security improvements Pre-authentication keys now use bcrypt hashing for improved security. Keys are stored as a prefix and bcrypt hash instead of plaintext. The full key is displayed only once, at creation time. Listing keys shows only the prefix (e.g., `hskey-auth-{prefix}-***`). All new keys use the format `hskey-auth-{prefix}-{secret}`. Legacy plaintext keys in the format `{secret}` continue to work for backwards compatibility. [#&#8203;2853](https://github.com/juanfont/headscale/pull/2853) ##### Web registration templates redesign The OIDC callback and device registration web pages now use the Material for MkDocs design system from the official documentation. The templates use consistent typography, spacing, and colours across all registration flows. ##### Database migration support removed for pre-0.25.0 databases Headscale no longer supports direct upgrades from databases created before version 0.25.0. Users on older versions must upgrade sequentially through each stable release, selecting the latest patch version available for each minor release. ##### BREAKING - **API**: The Node message in the gRPC/REST API is simplified. A single `Tags` field with the node's applied tags replaces the `ForcedTags`, `InvalidTags`, and `ValidTags` fields. [#&#8203;2993](https://github.com/juanfont/headscale/pull/2993) - API clients should use the `Tags` field instead of `ValidTags`. - The `headscale nodes list` CLI command always shows a Tags column. The `--tags` flag is removed. - **PreAuthKey CLI**: Commands use ID-based operations instead of user+key combinations. [#&#8203;2992](https://github.com/juanfont/headscale/pull/2992) - `headscale preauthkeys create` no longer requires the `--user` flag. It stays optional, for tracking creation. - `headscale preauthkeys list` lists all keys. It no longer filters by user. - `headscale preauthkeys expire --id <ID>` replaces `--user <USER> <KEY>`. - `headscale preauthkeys delete --id <ID>` replaces `--user <USER> <KEY>`. **Before:** ```bash headscale preauthkeys create --user 1 --reusable --tags tag:server headscale preauthkeys list --user 1 headscale preauthkeys expire --user 1 <KEY> headscale preauthkeys delete --user 1 <KEY> ``` **After:** ```bash headscale preauthkeys create --reusable --tags tag:server headscale preauthkeys list headscale preauthkeys expire --id 123 headscale preauthkeys delete --id 123 ``` - **Tags**: The gRPC `SetTags` endpoint can convert user-owned nodes to tagged nodes by setting tags. [#&#8203;2885](https://github.com/juanfont/headscale/pull/2885) - **Tags**: Tags are resolved only from the node's stored Tags field. [#&#8203;2931](https://github.com/juanfont/headscale/pull/2931) - `--advertise-tags` is processed during registration, not on every policy evaluation. - Devices tagged by a PreAuthKey ignore `--advertise-tags` from clients. - User-owned nodes can use `--advertise-tags` if the `tagOwners` policy authorizes them. - After registration, tags can be managed via the CLI (`headscale nodes tag`) or the SetTags API. - Migrations for pre-0.25.0 databases are removed. [#&#8203;2883](https://github.com/juanfont/headscale/pull/2883) - If you run a version older than 0.25.0, upgrade to 0.25.1 first, then to this release. - See the [upgrade path documentation](https://headscale.net/stable/about/faq/#what-is-the-recommended-update-path-can-i-skip-multiple-versions-while-updating) for detailed guidance. - In version 0.29, all migrations before 0.28.0 will also be removed. - Nodes can no longer move between users. [#&#8203;2922](https://github.com/juanfont/headscale/pull/2922) - The `headscale nodes move` CLI command is removed. - The `MoveNode` API endpoint is removed. - Nodes are permanently tied to their user or tag at registration time. - The `oidc.email_verified_required` config option controls whether OIDC requires a verified email. [#&#8203;2860](https://github.com/juanfont/headscale/pull/2860) - When `true` (default), only verified emails can authenticate via OIDC in conjunction with `oidc.allowed_domains` or `oidc.allowed_users`. Previous versions allowed authentication with an unverified email but did not store the email address in the user profile. Authentication now rejects this with an `unverified email` error. - When `false`, OIDC authentication allows unverified emails and stores the email address in the user profile regardless of its verification state. - **SSH Policy**: Wildcard (`*`) is no longer supported as an SSH destination. [#&#8203;3009](https://github.com/juanfont/headscale/issues/3009) - Use `autogroup:member` for user-owned devices. - Use `autogroup:tagged` for tagged devices. - Use specific tags (e.g., `tag:server`) for targeted access. **Before:** ```json { "action": "accept", "src": ["group:admins"], "dst": ["*"], "users": ["root"] } ``` **After:** ```json { "action": "accept", "src": ["group:admins"], "dst": ["autogroup:member", "autogroup:tagged"], "users": ["root"] } ``` - **SSH Policy**: SSH source/destination validation enforces Tailscale's security model. [#&#8203;3010](https://github.com/juanfont/headscale/issues/3010) Per [Tailscale SSH documentation](https://tailscale.com/docs/features/tailscale-ssh), these rules are now enforced: 1. **Tags cannot SSH to user-owned devices**: SSH rules with `tag:*` or `autogroup:tagged` as source cannot have username destinations (e.g., `alice@`) or `autogroup:member`/`autogroup:self` as destination. 2. **Username destinations require same-user source**: If the destination is a specific username (e.g., `alice@`), the source must be exactly that user. Use `autogroup:self` for same-user SSH access instead. **Invalid policies are rejected at load time:** ```json // INVALID: tag source to user destination {"src": ["tag:server"], "dst": ["alice@"], ...} // INVALID: autogroup:tagged to autogroup:member {"src": ["autogroup:tagged"], "dst": ["autogroup:member"], ...} // INVALID: group to specific user (use autogroup:self instead) {"src": ["group:admins"], "dst": ["alice@"], ...} ``` **Valid patterns:** ```json // Users/groups can SSH to their own devices via autogroup:self {"src": ["group:admins"], "dst": ["autogroup:self"], ...} // Users/groups can SSH to tagged devices {"src": ["group:admins"], "dst": ["autogroup:tagged"], ...} // Tagged devices can SSH to other tagged devices {"src": ["autogroup:tagged"], "dst": ["autogroup:tagged"], ...} // Same user can SSH to their own devices {"src": ["alice@"], "dst": ["alice@"], ...} ``` ##### Changes - Smarter change notifications send partial map updates and node removals instead of full maps. [#&#8203;2961](https://github.com/juanfont/headscale/pull/2961) - Headscale sends lightweight endpoint and DERP region updates instead of full maps. [#&#8203;2856](https://github.com/juanfont/headscale/pull/2856) - The repository includes a NixOS module for faster iteration. [#&#8203;2857](https://github.com/juanfont/headscale/pull/2857) - Webpages have a favicon. [#&#8203;2858](https://github.com/juanfont/headscale/pull/2858) - The OIDC callback and registration web templates are redesigned. [#&#8203;2832](https://github.com/juanfont/headscale/pull/2832) - The IP allocator reclaims IPs when nodes are deleted. [#&#8203;2831](https://github.com/juanfont/headscale/pull/2831) - Pre-authentication keys are hashed with bcrypt. [#&#8203;2853](https://github.com/juanfont/headscale/pull/2853) - API keys have a prefix (`hskey-api-{prefix}-{secret}`). [#&#8203;2853](https://github.com/juanfont/headscale/pull/2853) - Registration keys have a prefix for web authentication tracking (`hskey-reg-{random}`). [#&#8203;2853](https://github.com/juanfont/headscale/pull/2853) - Tags can be tagOwner of other tags. [#&#8203;2930](https://github.com/juanfont/headscale/pull/2930) - The `taildrop.enabled` configuration option enables or disables Taildrop file sharing. [#&#8203;2955](https://github.com/juanfont/headscale/pull/2955) - An empty `metrics_listen_addr` disables the metrics server. [#&#8203;2914](https://github.com/juanfont/headscale/pull/2914) - ACME/autocert errors are logged for easier debugging. [#&#8203;2933](https://github.com/juanfont/headscale/pull/2933) - CLI list output formatting is improved. [#&#8203;2951](https://github.com/juanfont/headscale/pull/2951) - Container images use Debian 13 distroless base images. [#&#8203;2944](https://github.com/juanfont/headscale/pull/2944) - New OIDC nodes get the ACL policy without a client restart. [#&#8203;2890](https://github.com/juanfont/headscale/pull/2890) - autogroup:self no longer prevents visibility of nodes matched by other ACL rules. [#&#8203;2882](https://github.com/juanfont/headscale/pull/2882) - Nodes are no longer rejected after their pre-authentication key expires. [#&#8203;2917](https://github.com/juanfont/headscale/pull/2917) - The list-routes command respects the identifier filter with JSON output. [#&#8203;2927](https://github.com/juanfont/headscale/pull/2927) - API key expire/delete commands accept an `--id` flag as an alternative to `--prefix`. [#&#8203;3016](https://github.com/juanfont/headscale/pull/3016) ### [`v0.27.1`](https://github.com/juanfont/headscale/releases/tag/v0.27.1) [Compare Source](https://github.com/juanfont/headscale/compare/v0.27.1...v0.27.1) **Minimum supported Tailscale client version: v1.64.0** #### Changes - Expire nodes with a custom timestamp [#&#8203;2828](https://github.com/juanfont/headscale/pull/2828) - Fix issue where node expiry was reset when tailscaled restarts [#&#8203;2875](https://github.com/juanfont/headscale/pull/2875) - Fix OIDC authentication when multiple login URLs are opened [#&#8203;2861](https://github.com/juanfont/headscale/pull/2861) - Fix node re-registration failing with expired auth keys [#&#8203;2859](https://github.com/juanfont/headscale/pull/2859) - Remove old unused database tables and indices [#&#8203;2844](https://github.com/juanfont/headscale/pull/2844) [#&#8203;2872](https://github.com/juanfont/headscale/pull/2872) - Ignore litestream tables during database validation [#&#8203;2843](https://github.com/juanfont/headscale/pull/2843) - Fix exit node visibility to respect ACL rules [#&#8203;2855](https://github.com/juanfont/headscale/pull/2855) - Fix SSH policy becoming empty when unknown user is referenced [#&#8203;2874](https://github.com/juanfont/headscale/pull/2874) - Fix policy validation when using bypass-grpc mode [#&#8203;2854](https://github.com/juanfont/headscale/pull/2854) - Fix autogroup:self interaction with other ACL rules [#&#8203;2842](https://github.com/juanfont/headscale/pull/2842) - Fix flaky DERP map shuffle test [#&#8203;2848](https://github.com/juanfont/headscale/pull/2848) - Use current stable base images for Debian and Alpine containers [#&#8203;2827](https://github.com/juanfont/headscale/pull/2827) #### Upgrade Please follow the steps outlined in the [upgrade guide](https://headscale.net/stable/setup/upgrade/) to update your existing Headscale installation. **It's best to update from one stable version to the next** (e.g., 0.24.0 → 0.25.1 → 0.26.1) in case you are multiple releases behind. You should always pick the latest available patch release. Be sure to check the changelog above for version-specific upgrade instructions and breaking changes. ##### Backup Your Database **Always backup your database before upgrading.** Here's how to backup a SQLite database: ```bash # Stop headscale systemctl stop headscale # Backup sqlite database cp /var/lib/headscale/db.sqlite /var/lib/headscale/db.sqlite.backup # Backup sqlite WAL/SHM files (if they exist) cp /var/lib/headscale/db.sqlite-wal /var/lib/headscale/db.sqlite-wal.backup cp /var/lib/headscale/db.sqlite-shm /var/lib/headscale/db.sqlite-shm.backup # Start headscale (migration will run automatically) systemctl start headscale ``` #### Changelog - [`abed534`](https://github.com/juanfont/headscale/commit/abed5346289cf6984363f495d8c073868522796d) Document how to restrict access to exit nodes per user/group - [`d23fa26`](https://github.com/juanfont/headscale/commit/d23fa26395ce64cf41aa0c47f38060c4fec03942) Fix flaky TestShuffleDERPMapDeterministic by ensuring deterministic map iteration ([#&#8203;2848](https://github.com/juanfont/headscale/issues/2848)) - [`0a43aab`](https://github.com/juanfont/headscale/commit/0a43aab8f5c876935f84ab9725f0e8b47dffe809) Use Debian 12 as minimum version for the deb package - [`4bd614a`](https://github.com/juanfont/headscale/commit/4bd614a559ea52bb7c77983b61247d23299237df) Use current stable base images for Debian and Alpine - [`785168a`](https://github.com/juanfont/headscale/commit/785168a7b862c6b41c61cc61d6220395eb4fe6a2) changelog: prepare for 0.27.1 - [`19a3339`](https://github.com/juanfont/headscale/commit/19a33394f6e0924e2fb63d2d68ad38d5c61b6630) changelog: set 0.27 date ([#&#8203;2823](https://github.com/juanfont/headscale/issues/2823)) - [`af2de35`](https://github.com/juanfont/headscale/commit/af2de35b6caebd4665f2fcc74a0f3fe1b1b094fe) chore: fix autogroup:self with other acl rules ([#&#8203;2842](https://github.com/juanfont/headscale/issues/2842)) - [`02c7c1a`](https://github.com/juanfont/headscale/commit/02c7c1a0e7eb09de9af74fc39098a034ef3d77a0) cli: only validate bypass-grpc set policy ([#&#8203;2854](https://github.com/juanfont/headscale/issues/2854)) - [`5a2ee0c`](https://github.com/juanfont/headscale/commit/5a2ee0c391eef946a2fa8afa9d09a913ea490cf5) db: add comment about removing migrations - [`28faf8c`](https://github.com/juanfont/headscale/commit/28faf8cd712657394e889bc02255af8ee8000230) db: add defensive removal of old indicies - [`456a5d5`](https://github.com/juanfont/headscale/commit/456a5d5cceea654b8c7c9b4a5db2336b62de8bec) db: ignore \_litestream tables when validating ([#&#8203;2843](https://github.com/juanfont/headscale/issues/2843)) - [`ddbd3e1`](https://github.com/juanfont/headscale/commit/ddbd3e14ba6fb26468a7ae4925551b09fda0eda5) db: remove all old, unused tables ([#&#8203;2844](https://github.com/juanfont/headscale/issues/2844)) - [`f9bb88a`](https://github.com/juanfont/headscale/commit/f9bb88ad24d95c2dc35fae6e433e1e8eb8faa926) expire nodes with a custom timestamp ([#&#8203;2828](https://github.com/juanfont/headscale/issues/2828)) - [`5cd15c3`](https://github.com/juanfont/headscale/commit/5cd15c36568acc562ca6639176b38969c64308a7) fix: make state cookies valid when client uses multiple login URLs - [`3bd4ecd`](https://github.com/juanfont/headscale/commit/3bd4ecd9cd8ae0e349e3e3d728a9e066642931c1) fix: preserve node expiry when tailscaled restarts - [`3455d1c`](https://github.com/juanfont/headscale/commit/3455d1cb59d10c86150182c13fb203a68f68125a) hscontrol/db: fix RenameUser to use Updates() - [`4a8dc2d`](https://github.com/juanfont/headscale/commit/4a8dc2d445fefe745bc5564cf1a751b4b38d2e04) hscontrol/state,db: preserve node expiry on MapRequest updates - [`4728a2b`](https://github.com/juanfont/headscale/commit/4728a2ba9ea664205d07a84584a86aef8caf5a1a) hscontrol/state: allow expired auth keys for node re-registration - [`ddd31ba`](https://github.com/juanfont/headscale/commit/ddd31ba774a78eaae845c52eae0260692d8e31c4) hscontrol: use Updates() instead of Save() for partial updates - [`773a46a`](https://github.com/juanfont/headscale/commit/773a46a9688b8c7117f8e59e9dee9d4cf915754b) integration: add test to replicate [#&#8203;2862](https://github.com/juanfont/headscale/issues/2862) - [`84fe3de`](https://github.com/juanfont/headscale/commit/84fe3de251eb05302832b038740e08efebd09163) integration: reduce TestAutoApproveMultiNetwork matrix to 3 tests ([#&#8203;2815](https://github.com/juanfont/headscale/issues/2815)) - [`d9c3eaf`](https://github.com/juanfont/headscale/commit/d9c3eaf8c8208a408be67695f48798b195b2109a) matcher: Add func for comparing Dests and TheInternet - [`f658a8e`](https://github.com/juanfont/headscale/commit/f658a8eacd4d86edc65424b50635afed46ca4b2a) mkdocs: 0.27.1 - [`c649c89`](https://github.com/juanfont/headscale/commit/c649c89e00851e39b102cc3d6fd8816618d86565) policy: Reproduce exit node visibility issues - [`21e3f25`](https://github.com/juanfont/headscale/commit/21e3f2598de6d0fc4d79230ca1e0e1f9e2d6a2b2) policy: fix issue where non existent user results in empty ssh pol - [`a28d9be`](https://github.com/juanfont/headscale/commit/a28d9bed6d42c486201949d6eee140ab9af876d5) policy: reproduce 2863 in test - [`d7a43a7`](https://github.com/juanfont/headscale/commit/d7a43a7cf11d8bfe72b3fcf38ebf974e2a040c4d) state: use AllApprovedRoutes instead of SubnetRoutes - [`2024219`](https://github.com/juanfont/headscale/commit/2024219bd10adbb5c0d29f900ed0961ace8cc15c) types: Distinguish subnet and exit node access - [`bd9cf42`](https://github.com/juanfont/headscale/commit/bd9cf42b96dd11c9483cadc3018b23a1adf671bf) types: NodeView CanAccess uses internal - [`1c0bb03`](https://github.com/juanfont/headscale/commit/1c0bb0338d20d3c91ad83685cb4530fd084d0a03) types: split SubnetRoutes and ExitRoutes ### [`v0.27.1`](https://github.com/juanfont/headscale/blob/HEAD/CHANGELOG.md#0271-2025-11-11) [Compare Source](https://github.com/juanfont/headscale/compare/v0.27.0...v0.27.1) **Minimum supported Tailscale client version: v1.64.0** ##### Changes - Nodes can be expired with a custom timestamp. [#&#8203;2828](https://github.com/juanfont/headscale/pull/2828) - Node expiry is no longer reset when tailscaled restarts. [#&#8203;2875](https://github.com/juanfont/headscale/pull/2875) - OIDC authentication works when multiple login URLs are opened. [#&#8203;2861](https://github.com/juanfont/headscale/pull/2861) - Node re-registration no longer fails with expired auth keys. [#&#8203;2859](https://github.com/juanfont/headscale/pull/2859) - Old unused database tables and indices are removed. [#&#8203;2844](https://github.com/juanfont/headscale/pull/2844) [#&#8203;2872](https://github.com/juanfont/headscale/pull/2872) - Database validation ignores litestream tables. [#&#8203;2843](https://github.com/juanfont/headscale/pull/2843) - Exit node visibility respects ACL rules. [#&#8203;2855](https://github.com/juanfont/headscale/pull/2855) - The SSH policy no longer becomes empty when an unknown user is referenced. [#&#8203;2874](https://github.com/juanfont/headscale/pull/2874) - Policy validation works in bypass-grpc mode. [#&#8203;2854](https://github.com/juanfont/headscale/pull/2854) - autogroup:self interacts correctly with other ACL rules. [#&#8203;2842](https://github.com/juanfont/headscale/pull/2842) - The DERP map shuffle test is no longer flaky. [#&#8203;2848](https://github.com/juanfont/headscale/pull/2848) - Debian and Alpine containers use current stable base images. [#&#8203;2827](https://github.com/juanfont/headscale/pull/2827) ### [`v0.27.0`](https://github.com/juanfont/headscale/releases/tag/v0.27.0) [Compare Source](https://github.com/juanfont/headscale/compare/v0.27.0...v0.27.0) **Minimum supported Tailscale client version: v1.64.0** ##### Database integrity improvements This release includes a significant database migration that addresses longstanding issues with the database schema and data integrity that has accumulated over the years. The migration introduces a `schema.sql` file as the source of truth for the expected database schema to ensure new migrations that will cause divergence does not occur again. These issues arose from a combination of factors discovered over time: SQLite foreign keys not being enforced for many early versions, all migrations being run in one large function until version 0.23.0, and inconsistent use of GORM's AutoMigrate feature. Moving forward, all new migrations will be explicit SQL operations rather than relying on GORM AutoMigrate, and foreign keys will be enforced throughout the migration process. We are only improving SQLite databases with this change - PostgreSQL databases are not affected. Please read the [PR description](https://github.com/juanfont/headscale/pull/2617) for more technical details about the issues and solutions. **SQLite Database Backup Example:** ```bash # Stop headscale systemctl stop headscale # Backup sqlite database cp /var/lib/headscale/db.sqlite /var/lib/headscale/db.sqlite.backup # Backup sqlite WAL/SHM files (if they exist) cp /var/lib/headscale/db.sqlite-wal /var/lib/headscale/db.sqlite-wal.backup cp /var/lib/headscale/db.sqlite-shm /var/lib/headscale/db.sqlite-shm.backup # Start headscale (migration will run automatically) systemctl start headscale ``` ##### DERPMap update frequency The default DERPMap update frequency has been changed from 24 hours to 3 hours. If you set the `derp.update_frequency` configuration option, it is recommended to change it to `3h` to ensure that the headscale instance gets the latest DERPMap updates when upstream is changed. ##### Autogroups This release adds support for the three missing autogroups: `self` (experimental), `member`, and `tagged`. Please refer to the [documentation](https://tailscale.com/kb/1018/autogroups/) for a detailed explanation. `autogroup:self` is marked as experimental and should be used with caution, but we need help testing it. Experimental here means two things; first, generating the packet filter from policies that use `autogroup:self` is very expensive, and it might perform, or straight up not work on Headscale installations with a large number of nodes. Second, the implementation might have bugs or edge cases we are not aware of, meaning that nodes or users might gain *more* access than expected. Please report bugs. ##### Node store (in memory database) Under the hood, we have added a new datastructure to store nodes in memory. This datastructure is called `NodeStore` and aims to reduce the reading and writing of nodes to the database layer. We have not benchmarked it, but expect it to improve performance for read heavy workloads. We think of it as, "worst case" we have moved the bottle neck somewhere else, and "best case" we should see a good improvement in compute resource usage at the expense of memory usage. We are quite excited for this change and think it will make it easier for us to improve the code base over time and make it more correct and efficient. ##### BREAKING - Remove support for 32-bit binaries [#&#8203;2692](https://github.com/juanfont/headscale/pull/2692) - Policy: Zero or empty destination port is no longer allowed [#&#8203;2606](https://github.com/juanfont/headscale/pull/2606) - Stricter hostname validation [#&#8203;2383](https://github.com/juanfont/headscale/pull/2383) - Hostnames must be valid DNS labels (2-63 characters, alphanumeric and hyphens only, cannot start/end with hyphen) - **Client Registration (New Nodes)**: Invalid hostnames are automatically renamed to `invalid-XXXXXX` format - `my-laptop` → accepted as-is - `My-Laptop` → `my-laptop` (lowercased) - `my_laptop` → `invalid-a1b2c3` (underscore not allowed) - `test@host` → `invalid-d4e5f6` (@&#8203; not allowed) - `laptop-🚀` → `invalid-j1k2l3` (emoji not allowed) - **Hostinfo Updates / CLI**: Invalid hostnames are rejected with an error - Valid names are accepted or lowercased - Names with invalid characters, too short (<2), too long (>63), or starting/ending with hyphen are rejected ##### Changes - **Database schema migration improvements for SQLite** [#&#8203;2617](https://github.com/juanfont/headscale/pull/2617) - **IMPORTANT: Backup your SQLite database before upgrading** - Introduces safer table renaming migration strategy - Addresses longstanding database integrity issues - Add flag to directly manipulate the policy in the database [#&#8203;2765](https://github.com/juanfont/headscale/pull/2765) - DERPmap update frequency default changed from 24h to 3h [#&#8203;2741](https://github.com/juanfont/headscale/pull/2741) - DERPmap update mechanism has been improved with retry, and is now failing conservatively, preserving the old map upon failure. [#&#8203;2741](https://github.com/juanfont/headscale/pull/2741) - Add support for `autogroup:member`, `autogroup:tagged` [#&#8203;2572](https://github.com/juanfont/headscale/pull/2572) - Fix bug where return routes were being removed by policy [#&#8203;2767](https://github.com/juanfont/headscale/pull/2767) - Remove policy v1 code [#&#8203;2600](https://github.com/juanfont/headscale/pull/2600) - Refactor Debian/Ubuntu packaging and drop support for Ubuntu 20.04. [#&#8203;2614](https://github.com/juanfont/headscale/pull/2614) - Remove redundant check regarding `noise` config [#&#8203;2658](https://github.com/juanfont/headscale/pull/2658) - Refactor OpenID Connect documentation [#&#8203;2625](https://github.com/juanfont/headscale/pull/2625) - Don't crash if config file is missing [#&#8203;2656](https://github.com/juanfont/headscale/pull/2656) - Adds `/robots.txt` endpoint to avoid crawlers [#&#8203;2643](https://github.com/juanfont/headscale/pull/2643) - OIDC: Use group claim from UserInfo [#&#8203;2663](https://github.com/juanfont/headscale/pull/2663) - OIDC: Update user with claims from UserInfo *before* comparing with allowed groups, email and domain [#&#8203;2663](https://github.com/juanfont/headscale/pull/2663) - Policy will now reject invalid fields, making it easier to spot spelling errors [#&#8203;2764](https://github.com/juanfont/headscale/pull/2764) - Add FAQ entry on how to recover from an invalid policy in the database [#&#8203;2776](https://github.com/juanfont/headscale/pull/2776) - EXPERIMENTAL: Add support for `autogroup:self` [#&#8203;2789](https://github.com/juanfont/headscale/pull/2789) - Add healthcheck command [#&#8203;2659](https://github.com/juanfont/headscale/pull/2659) #### Upgrade Please follow the steps outlined in the [upgrade guide](https://headscale.net/stable/setup/upgrade/) to update your existing Headscale installation. **It's best to update from one stable version to the next** (e.g., 0.24.0 → 0.25.1 → 0.26.1) in case you are multiple releases behind. You should always pick the latest available patch release. Be sure to check the changelog above for version-specific upgrade instructions and breaking changes. ##### Backup Your Database **Always backup your database before upgrading.** Here's how to backup a SQLite database: ```bash # Stop headscale systemctl stop headscale # Backup sqlite database cp /var/lib/headscale/db.sqlite /var/lib/headscale/db.sqlite.backup # Backup sqlite WAL/SHM files (if they exist) cp /var/lib/headscale/db.sqlite-wal /var/lib/headscale/db.sqlite-wal.backup cp /var/lib/headscale/db.sqlite-shm /var/lib/headscale/db.sqlite-shm.backup # Start headscale (migration will run automatically) systemctl start headscale ``` #### Changelog - [`450a7b1`](https://github.com/juanfont/headscale/commit/450a7b15ec7b08926738e308bd11ec17753d06ab) [#&#8203;2796](https://github.com/juanfont/headscale/issues/2796): Add creation\_time and ko\_data\_creation\_time to goreleaser.yml kos - [`64b7142`](https://github.com/juanfont/headscale/commit/64b7142e224129d5cae201882b405a356a2f6e4f) .goreleaser: add upgrade section ([#&#8203;2820](https://github.com/juanfont/headscale/issues/2820)) - [`c808587`](https://github.com/juanfont/headscale/commit/c808587de0e78bae1af0e610346c5cfcf8a99032) cli: do not show new pre-releases on stable ([#&#8203;2813](https://github.com/juanfont/headscale/issues/2813)) - [`e68e228`](https://github.com/juanfont/headscale/commit/e68e2288f799011983da4c275c3230bfdaaa9a0b) gen: test-integration ([#&#8203;2814](https://github.com/juanfont/headscale/issues/2814)) - [`52d27d5`](https://github.com/juanfont/headscale/commit/52d27d58f0595628b90929e4dbe46b45467af8cd) hscontrol: add /version HTTP endpoint ([#&#8203;2821](https://github.com/juanfont/headscale/issues/2821)) ### [`v0.27.0`](https://github.com/juanfont/headscale/blob/HEAD/CHANGELOG.md#0270-2025-10-27) [Compare Source](https://github.com/juanfont/headscale/compare/v0.26.1...v0.27.0) **Minimum supported Tailscale client version: v1.64.0** ##### Database integrity improvements This release includes a significant database migration that addresses longstanding issues with the database schema and data integrity that have accumulated over the years. The migration introduces a `schema.sql` file as the source of truth for the expected database schema, so that new migrations do not cause divergence again. These issues arose from several factors discovered over time: SQLite foreign keys were not enforced for many early versions, all migrations ran in one large function until version 0.23.0, and GORM's AutoMigrate feature was used inconsistently. From now on, all new migrations will be explicit SQL operations rather than relying on GORM AutoMigrate, and foreign keys will be enforced throughout the migration process. This change only improves SQLite databases. PostgreSQL databases are not affected. Read the [PR description](https://github.com/juanfont/headscale/pull/2617) for more technical details about the issues and solutions. **SQLite Database Backup Example:** ```bash # Stop headscale systemctl stop headscale # Backup sqlite database cp /var/lib/headscale/db.sqlite /var/lib/headscale/db.sqlite.backup # Backup sqlite WAL/SHM files (if they exist) cp /var/lib/headscale/db.sqlite-wal /var/lib/headscale/db.sqlite-wal.backup cp /var/lib/headscale/db.sqlite-shm /var/lib/headscale/db.sqlite-shm.backup # Start headscale (migration will run automatically) systemctl start headscale ``` ##### DERPMap update frequency The default DERPMap update frequency changed from 24 hours to 3 hours. If you set the `derp.update_frequency` configuration option, we recommend changing it to `3h` so that the headscale instance gets the latest DERPMap updates when upstream changes. ##### Autogroups This release adds the three missing autogroups: `self` (experimental), `member`, and `tagged`. See the [documentation](https://tailscale.com/docs/reference/targets-and-selectors#autogroups) for a detailed explanation. `autogroup:self` is experimental and should be used with caution, but we need help testing it. Experimental here means two things. First, generating the packet filter from policies that use `autogroup:self` is very expensive, and it might perform poorly, or not work at all, on Headscale installations with a large number of nodes. Second, the implementation might have bugs or edge cases we are not aware of, so nodes or users might gain *more* access than expected. Please report bugs. ##### Node store (in memory database) Under the hood, a new data structure stores nodes in memory. It is called `NodeStore` and aims to reduce reads and writes of nodes to the database layer. We have not benchmarked it, but expect it to improve performance for read-heavy workloads. In the "worst case", we have moved the bottleneck somewhere else. In the "best case", we should see a good improvement in compute resource usage at the expense of memory usage. We are excited about this change and think it will make it easier to improve the code base over time and make it more correct and efficient. ##### BREAKING - 32-bit binaries are no longer supported. [#&#8203;2692](https://github.com/juanfont/headscale/pull/2692) - Policy: Zero or empty destination ports are no longer allowed. [#&#8203;2606](https://github.com/juanfont/headscale/pull/2606) - Hostname validation is stricter. [#&#8203;2383](https://github.com/juanfont/headscale/pull/2383) - Hostnames must be valid DNS labels (2-63 characters, alphanumeric and hyphens only, cannot start/end with hyphen). - **Client Registration (New Nodes)**: Invalid hostnames are automatically renamed to `invalid-XXXXXX` format. - `my-laptop` → accepted as-is - `My-Laptop` → `my-laptop` (lowercased) - `my_laptop` → `invalid-a1b2c3` (underscore not allowed) - `test@host` → `invalid-d4e5f6` (@&#8203; not allowed) - `laptop-🚀` → `invalid-j1k2l3` (emoji not allowed) - **Hostinfo Updates / CLI**: Invalid hostnames are rejected with an error. - Valid names are accepted or lowercased. - Names with invalid characters, too short (<2), too long (>63), or starting/ending with hyphen are rejected. ##### Changes - **Database schema migration improvements for SQLite** [#&#8203;2617](https://github.com/juanfont/headscale/pull/2617) - **IMPORTANT: Back up your SQLite database before upgrading.** - The migration uses a safer table renaming strategy. - The migration addresses longstanding database integrity issues. - A new flag manipulates the policy in the database directly. [#&#8203;2765](https://github.com/juanfont/headscale/pull/2765) - The DERPmap update frequency default changed from 24h to 3h. [#&#8203;2741](https://github.com/juanfont/headscale/pull/2741) - DERPmap updates retry, and fail conservatively by preserving the old map upon failure. [#&#8203;2741](https://github.com/juanfont/headscale/pull/2741) - `autogroup:member` and `autogroup:tagged` are supported. [#&#8203;2572](https://github.com/juanfont/headscale/pull/2572) - Policy no longer removes return routes. [#&#8203;2767](https://github.com/juanfont/headscale/pull/2767) - Policy v1 code is removed. [#&#8203;2600](https://github.com/juanfont/headscale/pull/2600) - Debian/Ubuntu packaging is refactored, and Ubuntu 20.04 is no longer supported. [#&#8203;2614](https://github.com/juanfont/headscale/pull/2614) - A redundant check regarding `noise` config is removed. [#&#8203;2658](https://github.com/juanfont/headscale/pull/2658) - The OpenID Connect documentation is refactored. [#&#8203;2625](https://github.com/juanfont/headscale/pull/2625) - Headscale doesn't crash if the config file is missing. [#&#8203;2656](https://github.com/juanfont/headscale/pull/2656) - A `/robots.txt` endpoint keeps crawlers away. [#&#8203;2643](https://github.com/juanfont/headscale/pull/2643) - OIDC: Headscale uses the group claim from UserInfo. [#&#8203;2663](https://github.com/juanfont/headscale/pull/2663) - OIDC: Headscale updates the user with claims from UserInfo *before* comparing with allowed groups, email and domain. [#&#8203;2663](https://github.com/juanfont/headscale/pull/2663) - The policy rejects invalid fields, making spelling errors easier to spot. [#&#8203;2764](https://github.com/juanfont/headscale/pull/2764) - The FAQ explains how to recover from an invalid policy in the database. [#&#8203;2776](https://github.com/juanfont/headscale/pull/2776) - EXPERIMENTAL: Headscale supports `autogroup:self`. [#&#8203;2789](https://github.com/juanfont/headscale/pull/2789) - Headscale has a healthcheck command. [#&#8203;2659](https://github.com/juanfont/headscale/pull/2659) ### [`v0.26.1`](https://github.com/juanfont/headscale/releases/tag/v0.26.1) [Compare Source](https://github.com/juanfont/headscale/compare/v0.26.1...v0.26.1) #### Security fix - Ensure nodes are matching both node key and machine key when connecting. [#&#8203;2642](https://github.com/juanfont/headscale/pull/2642) #### Commits - [`474ea23`](https://github.com/juanfont/headscale/commit/474ea236d0c6d393dbcf7baa98da240ad20c1b66) Fix `/machine/map` endpoint vulnerability ([#&#8203;2642](https://github.com/juanfont/headscale/issues/2642)) ### [`v0.26.1`](https://github.com/juanfont/headscale/blob/HEAD/CHANGELOG.md#0261-2025-06-06) [Compare Source](https://github.com/juanfont/headscale/compare/v0.26.0...v0.26.1) ##### Changes - Nodes must match both node key and machine key when connecting. [#&#8203;2642](https://github.com/juanfont/headscale/pull/2642) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMjQuMCIsInVwZGF0ZWRJblZlciI6IjQzLjIyNC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->
renovate-bot force-pushed renovate/ghcr.io-juanfont-headscale-0.x from 053b63fb4e to fdcd1bed21 2026-06-15 14:19:01 +02:00 Compare
renovate-bot changed title from Update ghcr.io/juanfont/headscale Docker tag to v0.28.0 to Update ghcr.io/juanfont/headscale Docker tag to v0.29.0 2026-06-17 14:02:24 +02:00
renovate-bot force-pushed renovate/ghcr.io-juanfont-headscale-0.x from fdcd1bed21 to cb91deb5e1 2026-06-17 14:02:25 +02:00 Compare
renovate-bot changed title from Update ghcr.io/juanfont/headscale Docker tag to v0.29.0 to Update ghcr.io/juanfont/headscale Docker tag to v0.29.1 2026-06-19 14:02:04 +02:00
renovate-bot force-pushed renovate/ghcr.io-juanfont-headscale-0.x from cb91deb5e1 to fd6722c871 2026-06-19 14:02:05 +02:00 Compare
renovate-bot changed title from Update ghcr.io/juanfont/headscale Docker tag to v0.29.1 to Update ghcr.io/juanfont/headscale Docker tag to v0.29.2 2026-07-02 14:03:18 +02:00
renovate-bot force-pushed renovate/ghcr.io-juanfont-headscale-0.x from fd6722c871 to a985bbcf6c 2026-07-02 14:03:20 +02:00 Compare
renovate-bot force-pushed renovate/ghcr.io-juanfont-headscale-0.x from a985bbcf6c to cf05351615 2026-07-30 14:04:41 +02:00 Compare
renovate-bot changed title from Update ghcr.io/juanfont/headscale Docker tag to v0.29.2 to Update ghcr.io/juanfont/headscale Docker tag to v0.29.3 2026-07-30 14:04:42 +02:00
renovate-bot force-pushed renovate/ghcr.io-juanfont-headscale-0.x from cf05351615 to 0d061d27f8 2026-09-24 14:02:51 +02:00 Compare
renovate-bot changed title from Update ghcr.io/juanfont/headscale Docker tag to v0.29.3 to Update ghcr.io/juanfont/headscale Docker tag to v0.29.4 2026-09-24 14:02:53 +02:00
renovate-bot force-pushed renovate/ghcr.io-juanfont-headscale-0.x from 0d061d27f8 to eb03806a1c 2026-10-14 14:02:02 +02:00 Compare
renovate-bot changed title from Update ghcr.io/juanfont/headscale Docker tag to v0.29.4 to Update ghcr.io/juanfont/headscale Docker tag to v0.29.5 2026-10-14 14:02:03 +02:00
renovate-bot force-pushed renovate/ghcr.io-juanfont-headscale-0.x from eb03806a1c to d50b47643a 2026-10-24 14:02:16 +02:00 Compare
renovate-bot changed title from Update ghcr.io/juanfont/headscale Docker tag to v0.29.5 to Update ghcr.io/juanfont/headscale Docker tag to v0.29.6 2026-10-24 14:02:18 +02:00
renovate-bot force-pushed renovate/ghcr.io-juanfont-headscale-0.x from d50b47643a to 9930a43c51 2026-10-30 13:02:07 +01:00 Compare
renovate-bot changed title from Update ghcr.io/juanfont/headscale Docker tag to v0.29.6 to Update ghcr.io/juanfont/headscale Docker tag to v0.29.7 2026-10-30 13:02:10 +01:00
renovate-bot force-pushed renovate/ghcr.io-juanfont-headscale-0.x from 9930a43c51 to de2b0ce113 2026-11-27 13:01:40 +01:00 Compare
renovate-bot changed title from Update ghcr.io/juanfont/headscale Docker tag to v0.29.7 to Update ghcr.io/juanfont/headscale Docker tag to v0.29.8 2026-11-27 13:01:44 +01:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/ghcr.io-juanfont-headscale-0.x:renovate/ghcr.io-juanfont-headscale-0.x
git switch renovate/ghcr.io-juanfont-headscale-0.x

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff renovate/ghcr.io-juanfont-headscale-0.x
git switch renovate/ghcr.io-juanfont-headscale-0.x
git rebase main
git switch main
git merge --ff-only renovate/ghcr.io-juanfont-headscale-0.x
git switch renovate/ghcr.io-juanfont-headscale-0.x
git rebase main
git switch main
git merge --no-ff renovate/ghcr.io-juanfont-headscale-0.x
git switch main
git merge --squash renovate/ghcr.io-juanfont-headscale-0.x
git switch main
git merge --ff-only renovate/ghcr.io-juanfont-headscale-0.x
git switch main
git merge renovate/ghcr.io-juanfont-headscale-0.x
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
simon511000/homelab!8
No description provided.