Update ghcr.io/juanfont/headscale Docker tag to v0.29.8 #8
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
simon511000/homelab!8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/ghcr.io-juanfont-headscale-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
0.26.0→v0.29.8Release Notes
juanfont/headscale (ghcr.io/juanfont/headscale)
v0.29.8Compare Source
Minimum supported Tailscale client version: v1.80.0
Changes
Upgrade
Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.
Changelog
bfc57bfCHANGELOG: add 0.29.8 capability version fix5aeae67CHANGELOG: date 0.29.8985d446github: add TestCurlMixedCapVer to integration jobs173de2aintegration: curl between head and v1.104 clientsca93461mapper, state: send each peer its own capability version7d2e2acmapper: check peer Cap against a Tailscale SaaS capture2322d6bservertest: wait for each rapid reconnect to connect697a88eservertest: wait for the client to see its own expiry5247b95state: test that a repeated capability version stays quiet4be88b0types: add runtime Node.CapVer, drop unused TailNodesv0.29.8Compare Source
Minimum supported Tailscale client version: v1.80.0
Changes
v0.29.7Compare 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
tailscaledon your nodes; upgrading Headscale alone doesnot 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=1in thetailscaledservice environment and restartthe 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_listen_addrdisables that listener #3623100.64.0.11/32or::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 #3603headscale 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 #3603email_verifiedflag without an address no longer verifies another document's email #3603+dirtysuffix #3584acceptEnvhaving no effect, so allowed environment variables reach SSH sessions. Upgrade SSH destination nodes to Tailscale v1.104.4 or newer before usingacceptEnv, because older clients can disclose forwarded values #3569Upgrade
Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.
Changelog
c0a51b2.gitattributes: mark golden data as generatedc9cf210CHANGELOG: align the 0.29.7 entries with earlier releases3d9031cCHANGELOG: document SSH acceptEnv fix5083559CHANGELOG: document the 0.29.7 security and patch release8651eb9CHANGELOG: list the oss-scanner findings for 0.29.7abe807aCHANGELOG: list the pending authentication bounds for 0.29.73345493auth, state: keep only hostname, OS and tags in pending registrations1b7435cauth: check the follow-up's machine key before it waits99d10b9db, state: let only the delete that removed a node free its addresses151c852go.mod: pin golang-lru/v2 to main for expirable.Close718cbc3go.mod: tidy for Go 1.27044d8f5go.mod: update tailscale.com to v1.104.437b4237hscontrol: bound pending authentication without evicting sessionsbe114c0hscontrol: refuse a key expiry that cannot be encodedc32bf08hscontrol: remove unused OIDC user change result3bb6d3aintegration/tsic: drop unused watchIPNfd6547fintegration: guard SSH acceptEnv forwarding15af45cmapper: skip peers whose key expiry cannot be encoded2d881c5noise: restrict metrics to the metrics listenerbc3ac27noise: time out stalled bodies and idle tunnelse1c6cb9oidc: keep email_verified with the address it came with6e0d520policy/v2, servertest, hscontrol: add tailnet overlap route captures02b1528policy: pin SSH forwarding behavior and recommend upgradesf193207prek: exempt step captures from the large file check93340a6release: reject dirty sources and build artifacts9318ce4release: retry existing tags without the Docker downgrade99cb5c1servertest: add login, profile, restart and register log helpersc848c5aservertest: add relogin and auth key helpers7a51c8fservertest: compare router self routes with captures9ce0b28servertest: compare user profiles in via captures4647866servertest: list passing via capturese56661cstate: bound client reports of nodes loaded at startup4d04361state: drop registration locks once unusedc8fb25dstate: give another user's key on a tagged machine a new devicee6219cdstate: need a valid pre-auth key to re-register an expired tagged node2852b65state: never serve a single address inside the node ranges514979bstate: stop the auth cache TTL sweeper on Close1d11be0testcapture: record multi-step captures and API error detaild116f2ftestcapture: refuse golden captures that name no tool commita4c0a09types, auth, noise: let one request wait on each auth session52ba6a3types, noise: bound the Hostinfo and endpoints a client reportsf20366btypes: emit SSH environment capability by defaultv0.29.7Compare 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
tailscaledon your nodes; upgrading Headscale alone doesnot 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=1in thetailscaledservice environment and restartthe 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_listen_addrdisables that listener. #3623100.64.0.11/32or::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. #3603headscale 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. #3603email_verifiedflag without an address no longer verifies another document's email. #3603+dirtysuffix. #3584acceptEnvused to have no effect. Now allowed environment variables reach SSH sessions. Upgrade SSH destination nodes to Tailscale v1.104.4 or newer before usingacceptEnv, because older clients can disclose forwarded values. #3569v0.29.6Compare Source
Minimum supported Tailscale client version: v1.80.0
Security
emSign ECC Root CA - G3#3579golang.org/x/netto v0.60.0,golang.org/x/textto 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
INTERNAL_ERRORstream 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 #3575Upgrade
Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.
Changelog
ee74ce4CHANGELOG: document the 0.29.6 security and patch releasea2b1d78CHANGELOG: set the 0.29.6 release datef2b5f45all: prepare 0.29.6 security updatesc32e8e4db: return database-open errors for 0.29.6981f2eblint: retain the exhaustruct exclusion with the updated toolchainf1499cemapper: avoid refiltering broadcast recipientsc618198policy: backport peer-map optimizations for 0.29.6941d7ffpoll: end stopped map sessions without resetting active streamsv0.29.6Compare Source
Minimum supported Tailscale client version: v1.80.0
Security
emSign ECC Root CA - G3. #3579golang.org/x/netis updated to v0.60.0,golang.org/x/textto 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
INTERNAL_ERRORstream 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. #3575v0.29.5Compare Source
viaexit-node steering being undone by an unrelated ACL or grant rule that matches the viewer #3495viagrants not offering exit nodes and subnet routes to a group that names an unknown user #3516checkperiods and app grants dropping a group that names an unknown user #3516testsandsshTestsfailing for a group that names an unknown user #3516nodeAttrsrejecting the policy #3516viawhen the policy has noviagrants, slowing map generation on large tailnets #3538viaroute resolution when the policy has bothviagrants and ACLs #3515autogroup:selfnot updating after a user is added or renamed #3501tailscale statusdid not show it offering an exit node #3518logtail.enabledisfalse; clients also granted thedata-plane-audit-logsnode attribute now go down untiltailscale up#3522Upgrade
Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.
Changelog
e279de9Dockerfile: bump golang builders to 1.27.2 / 1.27.1ceac1c1Dockerfile: bump rust 1.95-trixie to 1.99-trixie755e6a1all: build with Go 1.26.88d2ac4aci: regenerate the release integration test matrix52e0180ci: reuse compiled integration tests and prebuilt images733d544docker: let the tailscale builders fetch a newer toolchaind0cb5a5go.mod: update dependencies0a20796hscontrol: preserve ephemeral nodes with live sessions98ce49dmapper: deliver peer removals as separate deltasa4f854fmapper: preserve node pings when a full update is queued929e333mapper: refresh self when approved routes change00f6702mapper: retain reconnect removals until deliveryd03d3a0mapper: retain the logtail instruction across client restartsfb61927mkdocs: bump version4d42bc6noise: reject reused SSH check verdictsbd8b8cepolicy/v2: invalidate per-node filters when users change711d00dpolicy/v2: preserve via exit steering across unrelated rulesf079cf7policy/v2: resolve unregistered users to an empty set5ec1a5apolicy/v2: restore the live policy after a rejected update5fb2d4epolicy/v2: revoke stale SSH access and recheck authenticationa4e56d7policy/v2: skip route resolution without via grants6ed6dd8policy/v2: stop ViaRoutesForPeer appending into pm.pol.Grants940260cservertest: bound fixture batching and await observable stateb16b705servertest: wait for stable via-route netmaps5c25a66state: send relogins as whole nodes when peers need themv0.29.5Compare Source
Minimum supported Tailscale client version: v1.80.0
Changes
viaexit-node steering. #3495viagrants offer exit nodes and subnet routes to a group that names an unknown user. #3516checkperiods and app grants no longer drop a group that names an unknown user. #3516testsandsshTestsno longer fail for a group that names an unknown user. #3516nodeAttrsno longer rejects the policy. #3516viagrants, grants are no longer fully resolved as if they hadvia, which slowed map generation on large tailnets. #3538viaroute resolution no longer has a data race when the policy has bothviagrants and ACLs. #3515autogroup:selfupdate after a user is added or renamed. #3501tailscale statusdid not show it offering an exit node. #3518logtail.enabledisfalse. Clients also granted thedata-plane-audit-logsnode attribute now go down untiltailscale up. #3522v0.29.4Compare Source
Minimum supported Tailscale client version: v1.80.0
Changes
server_urlso they survive a TLS-terminating proxy, a callback state is single-use, and an invalidoidc.issueror a missingoidc.client_id/oidc.client_secretnow fails at startup #3334OPTIONSrequests, sohttp_requests_totalandhttp_request_duration_secondsnow cover regular traffic #3414headscale users renamesending the raw--identifierflag value instead of the matched user's identifier, so renaming by name works again #3442headscale_mapper_changes_dropped_totalandheadscale_ha_health_updates_total#3417 #3450headscale_nodestore_snapshot_builds_total#3417 #3450badNoncereply, because the error logging middleware drained the response body the acme client needs to detect it #3461#-prefixed metadata fields being rejected outsideacls, so policy editors can store metadata in grants, SSH rules andnodeAttrs#3481suggest-exit-nodepeer attribute rather than the advertised0.0.0.0/0routes #3487viagrant; peer visibility now comes from the peer map alone #3409Upgrade
Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.
Changelog
3a2b133.github/workflows: regenerate the integration test matrixbdfa340AGENTS.md: drop stale line numbers8106636CHANGELOG: add 0.29.4b9b2bebUpdate AppleTV configuration steps2a76860build: bump test image Go to 1.27.1974becfchange, mapper: distinguish deleted nodesb3b55cccli: fix users rename when resolved by name46a80eadns: cancel extra-records retry on shutdown and close watcher on setup error33db8c6fix(metrics): collect metrics for non-OPTIONS requests032470ahscontrol: cancel tailsql on graceful shutdownebe18cehscontrol: keep the ACME error body readable in acmeLoggerc7d9d03hscontrol: replace tailscale line refs with doc links1e528f7integration: cover deletion across client versionsb9c7b4cintegration: cover node deletion ending the long poll7783e7fintegration: cover node expiry and recovery for every client625fa86integration: pin docker client to daemon API versioncc41593integration: pin which Hostinfo changes reach peersfc894aalinting issue fix2b8dbeamapper: assert no map response lists the recipient as its own peerb8da1c2mapper: drop empty changes before fan-out397149emapper: stop a deleted node's map session9fbf7b9mapper: take peer visibility from the peer map onlyd388244noise: make deleted-node expiry clock independent2b28f57oidc: harden callback CSRF cookies, state reuse, and issuer configcbb9357oidc: harden reloadable confirmation flow2da47a7oidc: serve the registration confirmation page from a reloadable URL938c2bdpolicy,state: key the peer map by node IDbc5b9d5policy,types: skip recompile when the user list is unchanged8490631policy/v2: add via exit node capture694bafepolicy/v2: compare peer CapMap against SaaS route captures5aded15policy/v2: suggest approved exit nodes by defaultaa4c952policy: ignore '#' metadata fields across the whole policyfb197dbpoll, noise: tell a deleted node to re-authenticate83eff40poll: interrupt blocked map writesa7f7e6aservertest: compare user-owned nodes in via compat tests8973347state: classify map requests before broadcastingd4b073estate: exclude self from peers on the named peer-ID patha91f708state: mark expired nodes offline without ending the session0fca2bbstate: preserve committed node deletion changesfdb782dstate: rename persist helpers to say what they do6a0f67dstate: resolve changed peers through adjacency237dc74state: reuse peer adjacency for payload-only writes8f7ee37state: skip node health writes that change nothingb972da3state: stop broadcasting a whole peer on disconnecte3dba1ftemplates: apply the tvOS setup reorder to the served /apple page2b6cb3atypes/change: drop unused VisibilityChange4411264types: detect policy change on user identity and exit routesb4f991btypes: lowercase DNS extra record namese6c0a8atypes: regenerate node viewv0.29.4Compare Source
Minimum supported Tailscale client version: v1.80.0
Changes
server_url, so they survive a TLS-terminating proxy. A callback state is single-use. An invalidoidc.issueror a missingoidc.client_id/oidc.client_secretnow fails at startup. #3334OPTIONSrequests.http_requests_totalandhttp_request_duration_secondsnow cover regular traffic. #3414headscale users renamesends the matched user's identifier instead of the raw--identifierflag value, so renaming by name works again. #3442headscale_mapper_changes_dropped_totalandheadscale_ha_health_updates_total. #3417 #3450headscale_nodestore_snapshot_builds_total. #3417 #3450badNoncereply. The error logging middleware used to drain the response body the acme client needs to detect it. #3461#-prefixed metadata fields are accepted outsideacls, so policy editors can store metadata in grants, SSH rules andnodeAttrs. #3481suggest-exit-nodepeer attribute rather than the advertised0.0.0.0/0routes. #3487viagrant. Peer visibility now comes from the peer map alone. #3409v0.29.3Compare Source
Minimum supported Tailscale client version: v1.80.0
Changes
tailscale logout, unable to re-authenticate #3394--advertise-tagsbeing rejected when the authenticating user owns the tags #3394401 registration timed outwhen auth completes as the request context expires #3392/keyrequests below the supported capability version floor, matching/ts2021#3391Upgrade
Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.
Changelog
235a57eCHANGELOG: add 0.29.3089d6c4Explicitly select lunr as search providerfba84caauth: check machine key on the followup registration path1292841build: bump Go toolchain to 1.26.59609a0bhscontrol: gate /key on supported capability versionbdc3e99hscontrol: prefer completed auth over expired ctx in followup wait5aff68bmkdocs: bump version4a1e773policy,state: authorize reauth tags against the authenticating user5fb514epoll: do not cancel ephemeral GC until Connect succeeds1fccdb1state: apply a new pre-auth key's tags on re-registrationd202883state: do not expire tagged nodes on logoutv0.29.3Compare Source
Minimum supported Tailscale client version: v1.80.0
Changes
tailscale logout, unable to re-authenticate. #3394--advertise-tagsis accepted when the authenticating user owns the tags. #3394401 registration timed outwhen auth completes as the request context expires. #3392/keyrequests below the supported capability version floor are rejected, matching/ts2021. #3391v0.29.2Compare Source
Changes
autogroup:self, via or relay policies no longer stalls clients intounexpected EOFretry loops #3358/ts2021rejecting the WebSocketGETupgrade with 405, which prevented Tailscale JS/WASM control clients from connecting #3359Upgrade
Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.
Changelog
8eea894CHANGELOG: drop unreleased 0.30.0 stubf708c5bCHANGELOG: note /ts2021 WebSocket GET fix735742eCHANGELOG: note 0.29.2 invalid-name map fix3ac33cfCHANGELOG: shorten 0.29.2 invalid-name entry, set datef885d87Fix invalid ip syntax1ec7b7fhscontrol: register /ts2021 for WebSocket GET8f4e69dintegration: add TS2021 WebSocket tests to CI matrixe7851efintegration: test /ts2021 WebSocket GET with a real WASM client9d13274mapper,policy: add reconnect-storm and lock-concurrency regression testsec67197mapper: skip peers with invalid names instead of failing the mapd4f2acfpolicy: take RLock for reads so map generation runs concurrently5fb76ebpoll: return an HTTP error on long-poll setup failurefd154fdstate: log nodes with map-breaking data at startup9c9206astate: reject renames whose FQDN exceeds the hostname limitv0.29.2Compare Source
Minimum supported Tailscale client version: v1.80.0
Changes
autogroup:self, via or relay policies no longer stalls clients intounexpected EOFretry loops. #3358/ts2021no longer rejects the WebSocketGETupgrade with 405, which prevented Tailscale JS/WASM control clients from connecting. #3359v0.29.1Compare Source
Minimum supported Tailscale client version: v1.80.0
Changes
tags='null'losing their assigned user on upgrade #3325Upgrade
Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.
Changelog
636f660db: preserve user_id on untagged nodes with tags='null'v0.29.1Compare Source
Minimum supported Tailscale client version: v1.80.0
Changes
tags='null'no longer lose their assigned user on upgrade. #3325v0.29.0Compare 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 nodewith a
checkaction policy, the user is prompted to authenticate via OIDC or CLI approval before accessis granted. OIDC approval requires the authenticated user to own the source node; tagged source nodes
cannot use SSH check-mode.
A new
headscale authCLI 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 requestheadscale auth register --auth-id <id> --user <user>registers a node (replaces deprecatedheadscale nodes register)#1850
#3180
Policy tests (beta)
Headscale now evaluates the
testsblock in a policy file. Tests assert reachability betweennamed sources and destinations and cover the whole policy — both
aclsandgrantsrulescontribute. They run on user-initiated writes via
headscale policy set, on SIGHUP reload(
systemctl reload headscale/kill -HUP $(pidof headscale)), and onheadscale 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
sshTestsblock in a policy file. Each entry names a source, one ormore destination hosts, and three optional user lists:
acceptasserts the listed login usersreach every destination via an accept- or check-action SSH rule,
denyasserts none of themreach any destination, and
checkrequires reachability specifically through a check-actionrule. Tests run on
headscale policy set, on SIGHUP reload (systemctl reload headscale/kill -HUP $(pidof headscale)), and onheadscale policy check. A failing test rejects thewrite 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, anddst,rejects empty or wildcard entries in
users, rejects emptyacceptEnv, and rejects negativecheckPeriod.hosts:aliases are rejected as SSH destinations, non-ASCII tag names arerejected 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
appfield controls application-level features like Taildrive file sharing and peer relay, and the
viafield steers traffic through specific tagged subnet routers or exit nodes. The
ipfield works likean 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 to0.0.0.0/0and::/0, all IPaddresses, including those outside the tailnet. This replaces the old behaviour where
*matchedall IPs (see BREAKING below). The name is intentional: accepting traffic from the entire
internet is a security-sensitive choice.
autogroup:danger-allcan only be used as a source.Node attributes (
nodeAttrs)ACL policies now accept a
nodeAttrsblock. Each entry hands a list ofTailscale node capabilities to every node matching
target. The acceptedtarget forms are the same as
acls.srcandgrants.src: users, groups,tags, hosts, prefixes,
autogroup:member,autogroup:tagged, and*.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:accesspair. The set is notlimited to these, any string-only cap an operator places in policy
reaches clients unchanged.
randomizeClientPortalso lands as a top-level policy field that togglesthe default for every node, replacing the old server-config knob.
A new
auto_update.enabledconfig option controls the tailnet-widedefault for client auto-update. When true, every node's CapMap carries
default-auto-update: [true]so fresh clients pick up the defaultunless they make a local opt-in / opt-out choice.
Policies that use the
funnelcap,ipPoolblocks, orautogroup:admin/autogroup:ownertargets 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:shareto the node thathosts files and
drive:accessto nodes that read or write them; pairwith a
tailscale.com/cap/drivegrant to set the per-share accessmode:
A wildcard
nodeAttrs("target": ["*"]) hands the caps to everynode when fine-grained control is not needed.
Hostname sanitisation
Hostnames are now santised using Tailscales
magicdnssanitisation 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:
Joe's Mac miniJoe's Mac minijoes-mac-miniYuri's MacBook ProYuri's MacBook Proyuris-macbook-proTest@HostTest@Hosttest-hostmail.servermail.servermail-serverMy-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 onlyactive when HA routes exist (2+ nodes advertising the same prefix). Set
probe_intervalto0to disable. This complements the existing disconnect-based failover, catching "zombieconnected" routers that maintain their control session but cannot route packets.
#3194
BREAKING
Hostname handling
GivenNamecollision 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 literalnodeinstead ofinvalid-<rand>. MagicDNS names change on upgrade for any node whose previous label was a random-suffix form; the rawHostnamecolumn is unchanged. #3202ACL Policy
*) 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/0and::/0) #3036*means "any node in the tailnet" rather than "any IP address"autogroup:danger-allas a source, or explicit CIDR ranges as destinations #2180autogroup:danger-allcan only be used as a source; it cannot be used as a destinationprefixes.ipv4orprefixes.ipv6(which is unsupported and produces a warning) will need to explicitly specify their CIDR ranges in ACL rules instead of using*autogroup:selfsource restrictions matching Tailscale behavior - tags, hosts, and IPs are rejected as sources forautogroup:selfdestinations #3036autogroup:selfdestinations will now fail validationproto:icmpprotocol name now only includes ICMPv4 (protocol 1), matching Tailscale behavior #3036proto:icmpincluded both ICMPv4 and ICMPv6proto:ipv6-icmpor protocol number58explicitly for ICMPv6Upgrade Path
Configuration
The
randomize_client_portserver-config key was removed; thetoggle now lives in the policy file as a top-level
randomizeClientPortfield, matching the Tailscale-hosted schema. #3251Headscale refuses to start when the old key is set. Move it to the
policy file referenced by
policy.path:If you do not have a policy file yet, create one with that minimal
content and point
policy.pathat it. The default carries over —empty / absent policy means
randomizeClientPort: false, matchingthe previous behaviour for operators who never set the key. Per-node
opt-in via
nodeAttrsis also supported and stacks on top of theglobal default.
CLI
headscale nodes registeris deprecated in favour ofheadscale auth register --auth-id <id> --user <user>#1850Changes
ACL Policy
*) source in ACLs now using actually-approved subnet routes instead of autoApprover policy prefixes #2180*in the same ACL rule #2180src=,dst=) and are more descriptive #2180user@tokens match multiple DB users; rename the duplicate viaheadscale users renameto load #3160testsblock on user-initiated writes across bothaclsandgrants; reject policies whose tests fail (beta) #1803Grants
ip,app, andviafields #2180autogroup:danger-allas a source-only autogroup resolving to all IP addresses #2180cap/drive) and peer relay (cap/relay) with automatic companion capabilities #2180viatags control which subnet router or exit node handles traffic for each group of viewers #2180cap/drivegrants #2180SSH Policy
localpart:*@​<domain>in SSH ruleusersfield, mapping each matching user's email local-part as their OS username #3091checkaction support with OIDC and CLI-based approval flows #1850CLI
headscale auth register,headscale auth approve, andheadscale auth rejectCLI commands #1850headscale nodes register --keyin favour ofheadscale auth register --auth-id#1850headscale policy check --bypass-grpc-and-access-database-directlyvalidatesuser@tokens against the live user database #3160--namespaceflag fromnodes list,nodes register, anddebug create-nodecommands (use--userinstead) #3093namespace/nscommand aliases forusersandmachine/machinesaliases fornodes#3093DestroyUserdeleting all pre-auth keys in the database instead of only the target user's keys #3155headscale policy checkevaluates thetestsblock when invoked with--bypass-grpc-and-access-database-directly; without the flag it warns instead of running the tests against empty data #1803API
authrelated routes. Theauth/registerendpoint now expects data as JSON #1850OIDC
AuthSuccessandAuthWebcomponents #1850AuthVerdicttype, supporting registration, reauthentication, and SSH checks #1850Configuration
node.expiryconfiguration option to set a default node key expiry for nodes registered via auth key #3122oidc.expiryhas been removed; usenode.expiryinstead (applies to all registration methods including OIDC)ephemeral_node_inactivity_timeoutis deprecated in favour ofnode.ephemeral.inactivity_timeouttrusted_proxiesto gateTrue-Client-IP/X-Real-IP/X-Forwarded-For(previously honoured from any client) #3268Debug
Pass,ClientSecret,APIKey) from/debug/configJSON output #3180statsvizthroughtsweb.Protected#3180Other
config-example.yamlas example for the debian package #31860001-01-01 00:00:00in the database instead ofNULL#3199tailscaledrestart on a node with no expiry resettingNULLto0001-01-01 00:00:00in the database, affecting both tagged and untagged nodes #3197nodes.expiryrows persisted by older versions as0001-01-01 00:00:00toNULL, so nodes upgraded from <0.28 stop reporting as expired #3284trusted_proxiesconfiguration option #3292Upgrade
Please follow the steps outlined in the upgrade guide to update your existing Headscale installation.
Changelog
b0c221fchangelog: set 0.29 datev0.29.0Compare 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 nodewith a
checkaction policy, the user is prompted to authenticate via OIDC or CLI approval before accessis granted. OIDC approval requires the authenticated user to own the source node; tagged source nodes
cannot use SSH check-mode.
A new
headscale authCLI 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 deprecatedheadscale nodes register).#1850
#3180
Policy tests (beta)
Headscale now evaluates the
testsblock in a policy file. Tests assert reachability betweennamed sources and destinations and cover the whole policy — both
aclsandgrantsrulescontribute. They run on user-initiated writes via
headscale policy set, on SIGHUP reload(
systemctl reload headscale/kill -HUP $(pidof headscale)), and onheadscale 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
sshTestsblock in a policy file. Each entry names a source, one ormore destination hosts, and three optional user lists:
acceptasserts the listed login usersreach every destination via an accept- or check-action SSH rule,
denyasserts none of themreach any destination, and
checkrequires reachability specifically through a check-actionrule. Tests run on
headscale policy set, on SIGHUP reload (systemctl reload headscale/kill -HUP $(pidof headscale)), and onheadscale policy check. A failing test rejects thewrite 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, anddst,rejects empty or wildcard entries in
users, rejects emptyacceptEnv, and rejects negativecheckPeriod.hosts:aliases are rejected as SSH destinations, non-ASCII tag names arerejected 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
appfield controls application-level features like Taildrive file sharing and peer relay, and the
viafield steers traffic through specific tagged subnet routers or exit nodes. The
ipfield works likean 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 to0.0.0.0/0and::/0, all IPaddresses, including those outside the tailnet. This replaces the old behaviour where
*matchedall IPs (see BREAKING below). The name is intentional: accepting traffic from the entire
internet is a security-sensitive choice.
autogroup:danger-allcan only be used as a source.Node attributes (
nodeAttrs)ACL policies now accept a
nodeAttrsblock. Each entry hands a list ofTailscale node capabilities to every node matching
target. The acceptedtarget forms are the same as
acls.srcandgrants.src: users, groups,tags, hosts, prefixes,
autogroup:member,autogroup:tagged, and*.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:accesspair. The set is notlimited to these. Any string-only cap an operator places in policy
reaches clients unchanged.
randomizeClientPortalso lands as a top-level policy field that togglesthe default for every node, replacing the old server-config knob.
A new
auto_update.enabledconfig option controls the tailnet-widedefault for client auto-update. When true, every node's CapMap carries
default-auto-update: [true]so fresh clients pick up the defaultunless they make a local opt-in / opt-out choice.
Policies that use the
funnelcap,ipPoolblocks, orautogroup:admin/autogroup:ownertargets 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:shareto the node thathosts files and
drive:accessto nodes that read or write them; pairwith a
tailscale.com/cap/drivegrant to set the per-share accessmode:
A wildcard
nodeAttrs("target": ["*"]) hands the caps to everynode when fine-grained control is not needed.
Hostname sanitisation
Hostnames are now sanitised using Tailscale's
magicdnssanitisation 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:
Joe's Mac miniJoe's Mac minijoes-mac-miniYuri's MacBook ProYuri's MacBook Proyuris-macbook-proTest@HostTest@Hosttest-hostmail.servermail.servermail-serverMy-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 onlyactive when HA routes exist (2+ nodes advertising the same prefix). Set
probe_intervalto0to disable. This complements the existing disconnect-based failover, catching "zombieconnected" routers that maintain their control session but cannot route packets.
#3194
BREAKING
Hostname handling
GivenNamecollision 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 literalnodeinstead ofinvalid-<rand>. MagicDNS names change on upgrade for any node whose previous label was a random-suffix form; the rawHostnamecolumn is unchanged. #3202ACL Policy
*) 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/0and::/0). #3036*means "any node in the tailnet" rather than "any IP address".autogroup:danger-allas a source. #2180autogroup:danger-allcan only be used as a source. It cannot be used as a destination.autogroup:selfsource restrictions are validated, matching Tailscale behavior. Tags, hosts, and IPs are rejected as sources forautogroup:selfdestinations. #3036autogroup:selfdestinations will now fail validation.proto:icmpprotocol name now only includes ICMPv4 (protocol 1), matching Tailscale behavior. #3036proto:icmpincluded both ICMPv4 and ICMPv6.proto:ipv6-icmpor protocol number58explicitly.Upgrade Path
Configuration
The
randomize_client_portserver-config key was removed. Thetoggle now lives in the policy file as a top-level
randomizeClientPortfield, matching the Tailscale-hosted schema. #3251Headscale refuses to start when the old key is set. Move it to the
policy file referenced by
policy.path:If you do not have a policy file yet, create one with that minimal
content and point
policy.pathat it. The default carries over —empty / absent policy means
randomizeClientPort: false, matchingthe previous behaviour for operators who never set the key. Per-node
opt-in via
nodeAttrsis also supported and stacks on top of theglobal default.
CLI
headscale nodes registeris deprecated in favour ofheadscale auth register --auth-id <id> --user <user>. #1850Changes
ACL Policy
*) source in ACLs now uses actually-approved subnet routes instead of autoApprover policy prefixes. #2180*in the same ACL rule. #2180src=,dst=) and are more descriptive. #2180user@tokens match multiple DB users are rejected. Rename the duplicate viaheadscale users renameto load. #3160testsblock is evaluated on user-initiated writes across bothaclsandgrants. Policies whose tests fail are rejected (beta). #1803Grants
ip,app, andviafields are supported. #2180autogroup:danger-allis a source-only autogroup resolving to all IP addresses. #2180cap/drive) and peer relay (cap/relay) have capability grants with automatic companion capabilities. #2180viatags control which subnet router or exit node handles traffic for each group of viewers. #2180cap/drivegrants. #2180SSH Policy
usersfield supportslocalpart:*@​<domain>, mapping each matching user's email local-part as their OS username. #3091checkaction with OIDC and CLI-based approval flows. #1850CLI
headscale auth register,headscale auth approve, andheadscale auth rejectare new CLI commands. #1850headscale nodes register --keyis deprecated in favour ofheadscale auth register --auth-id. #1850headscale policy check --bypass-grpc-and-access-database-directlyvalidatesuser@tokens against the live user database. #3160--namespaceflag is removed fromnodes list,nodes register, anddebug create-nodecommands (use--userinstead). #3093namespace/nscommand aliases forusersandmachine/machinesaliases fornodesare removed. #3093DestroyUserdeletes only the target user's keys instead of all pre-auth keys in the database. #3155headscale policy checkevaluates thetestsblock when invoked with--bypass-grpc-and-access-database-directly. Without the flag it warns instead of running the tests against empty data. #1803API
authrelated routes. Theauth/registerendpoint now expects data as JSON. #1850OIDC
AuthSuccessandAuthWebcomponents. #1850AuthVerdicttype, supporting registration, reauthentication, and SSH checks. #1850Configuration
node.expiryconfiguration option sets a default node key expiry for nodes registered via auth key. #3122oidc.expiryhas been removed. Usenode.expiryinstead (applies to all registration methods including OIDC).ephemeral_node_inactivity_timeoutis deprecated in favour ofnode.ephemeral.inactivity_timeout.trusted_proxiesgatesTrue-Client-IP/X-Real-IP/X-Forwarded-For(previously honoured from any client). #3268Debug
/debug/configJSON output omits secret fields (Pass,ClientSecret,APIKey). #3180statsvizis routed throughtsweb.Protected. #3180Other
config-example.yamlas example. #3186NULLin the database instead of0001-01-01 00:00:00. #3199tailscaledrestart on a node with no expiry no longer resetsNULLto0001-01-01 00:00:00in the database. This affected both tagged and untagged nodes. #3197nodes.expiryrows persisted by older versions as0001-01-01 00:00:00are backfilled toNULL, so nodes upgraded from <0.28 stop reporting as expired. #3284trusted_proxiesconfiguration option. #3292v0.28.0Compare 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 thetagOwnerspolicyand 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 againstyour policy's
tagOwnersrules during migration. #3011Smarter 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 formathskey-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, andValidTagsfields have been removed and replaced with a singleTagsfield that contains the node's applied tags #2993Tagsfield instead ofValidTagsheadscale nodes listCLI command now always shows a Tags column and the--tagsflag has been removedPreAuthKey CLI: Commands now use ID-based operations instead of user+key combinations #2992
headscale preauthkeys createno longer requires--userflag (optional for tracking creation)headscale preauthkeys listlists 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:
After:
Tags: The gRPC
SetTagsendpoint now allows converting user-owned nodes to tagged nodes by setting tags. #2885Tags: Tags are now resolved from the node's stored Tags field only #2931
--advertise-tagsis processed during registration, not on every policy evaluation--advertise-tagsfrom clients--advertise-tagsif authorized bytagOwnerspolicyheadscale nodes tag) or the SetTags API after registrationDatabase migration support removed for pre-0.25.0 databases #2883
Remove ability to move nodes between users #2922
headscale nodes moveCLI command has been removedMoveNodeAPI endpoint has been removedAdd
oidc.email_verified_requiredconfig option to control email verification requirement #2860true(default), only verified emails can authenticate via OIDC in conjunction withoidc.allowed_domainsoroidc.allowed_users. Previous versions allowed to authenticate with an unverified email but did not store the emailaddress in the user profile. This is now rejected during authentication with an
unverified emailerror.false, unverified emails are allowed for OIDC authentication and the email address is stored in the userprofile regardless of its verification state.
SSH Policy: Wildcard (
*) is no longer supported as an SSH destination #3009autogroup:memberfor user-owned devicesautogroup:taggedfor tagged devicestag:server) for targeted accessBefore:
After:
SSH Policy: SSH source/destination validation now enforces Tailscale's security model #3010
Per Tailscale SSH documentation, the following rules are now enforced:
tag:*orautogroup:taggedas source cannot have username destinations (e.g.,alice@) orautogroup:member/autogroup:selfas destinationalice@), the source must be that exact same user only. Useautogroup:selffor same-user SSH access insteadInvalid policies now rejected at load time:
Valid patterns:
Changes
hskey-api-{prefix}-{secret}) #2853hskey-reg-{random}) #2853taildrop.enabledconfiguration option to enable/disable Taildrop file sharing #2955metrics_listen_addr#2914--idflag to expire/delete commands as alternative to--prefixfor API Keys #3016Upgrade
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:
Changelog
7f003ecAdd a page to describe supported registration methods5d30027Add a tags page and describe a few common operationsd32f670Add missing words89e436fBump year/version for mkdocs49b70dbConversion from personal to tagged node is reversible04b4071Fix node expiration success messageee127edRemove trace log for preauthkeys create2695d15Use registration key instead of machine key44af046all: update Go module dependencies4a744f4changelog: change api key format97fa117changelog: set 0.28 dateb5329ffflake.lock: update nixpkgs to 2026-02-03eac8a57flake.nix: update hashes for dependency changesca75e09integration: add test for tagged→user-owned conversion panica09b0d1policy/v2: add Caller() to log statements in compileACLWithAutogroupSelf1f32c8bpolicy/v2: add IsTagged() guards to prevent panics on tagged nodesc2f28efpolicy/v2: add test for issue #2990 same-user tagged device11f0d4cpolicy/v2: include nodes with empty filters in BuildPeerMap362696apolicy/v2: keep partial IPSet on SSH destination resolution errorsfb137a8policy/v2: use partial IPSet on group resolution errors in autogroup:self pathdf184e5state: fix expiry handling during node tag conversion306aabbstate: fix nil pointer panic when re-registering tagged node without user4912ceastate: inline reauthExistingNode and convertTaggedNodeToUser46daa65state: omit AuthKeyID/AuthKey in node Updates to prevent FK errors0630fd3state: refactor HandleNodeFromAuthPath for clarityce7c256state: set User pointer during tagged→user-owned conversiond7f7f2cstate: validate tags before UpdateNode to ensure consistencyv0.28.0Compare 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 thetagOwnerspolicyand 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 againstyour policy's
tagOwnersrules during migration. #3011Smarter 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 formathskey-auth-{prefix}-{secret}. Legacy plaintext keys in the format{secret}continue to work for backwards compatibility. #2853Web 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
Tagsfield with the node's applied tags replaces theForcedTags,InvalidTags, andValidTagsfields. #2993Tagsfield instead ofValidTags.headscale nodes listCLI command always shows a Tags column. The--tagsflag is removed.PreAuthKey CLI: Commands use ID-based operations instead of user+key combinations. #2992
headscale preauthkeys createno longer requires the--userflag. It stays optional, for tracking creation.headscale preauthkeys listlists 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:
After:
Tags: The gRPC
SetTagsendpoint can convert user-owned nodes to tagged nodes by setting tags. #2885Tags: Tags are resolved only from the node's stored Tags field. #2931
--advertise-tagsis processed during registration, not on every policy evaluation.--advertise-tagsfrom clients.--advertise-tagsif thetagOwnerspolicy authorizes them.headscale nodes tag) or the SetTags API.Migrations for pre-0.25.0 databases are removed. #2883
Nodes can no longer move between users. #2922
headscale nodes moveCLI command is removed.MoveNodeAPI endpoint is removed.The
oidc.email_verified_requiredconfig option controls whether OIDC requires a verified email. #2860true(default), only verified emails can authenticate via OIDC in conjunction withoidc.allowed_domainsoroidc.allowed_users. Previous versions allowed authentication with an unverified email but did not store the emailaddress in the user profile. Authentication now rejects this with an
unverified emailerror.false, OIDC authentication allows unverified emails and stores the email address in the userprofile regardless of its verification state.
SSH Policy: Wildcard (
*) is no longer supported as an SSH destination. #3009autogroup:memberfor user-owned devices.autogroup:taggedfor tagged devices.tag:server) for targeted access.Before:
After:
SSH Policy: SSH source/destination validation enforces Tailscale's security model. #3010
Per Tailscale SSH documentation, these rules are now enforced:
tag:*orautogroup:taggedas source cannot have username destinations (e.g.,alice@) orautogroup:member/autogroup:selfas destination.alice@), the source must be exactly that user. Useautogroup:selffor same-user SSH access instead.Invalid policies are rejected at load time:
Valid patterns:
Changes
hskey-api-{prefix}-{secret}). #2853hskey-reg-{random}). #2853taildrop.enabledconfiguration option enables or disables Taildrop file sharing. #2955metrics_listen_addrdisables the metrics server. #2914--idflag as an alternative to--prefix. #3016v0.27.1Compare Source
Minimum supported Tailscale client version: v1.64.0
Changes
#2828
#2875
#2861
#2859
#2844
#2872
#2843
#2855
#2874
#2854
#2842
#2848
#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:
Changelog
abed534Document how to restrict access to exit nodes per user/groupd23fa26Fix flaky TestShuffleDERPMapDeterministic by ensuring deterministic map iteration (#2848)0a43aabUse Debian 12 as minimum version for the deb package4bd614aUse current stable base images for Debian and Alpine785168achangelog: prepare for 0.27.119a3339changelog: set 0.27 date (#2823)af2de35chore: fix autogroup:self with other acl rules (#2842)02c7c1acli: only validate bypass-grpc set policy (#2854)5a2ee0cdb: add comment about removing migrations28faf8cdb: add defensive removal of old indicies456a5d5db: ignore _litestream tables when validating (#2843)ddbd3e1db: remove all old, unused tables (#2844)f9bb88aexpire nodes with a custom timestamp (#2828)5cd15c3fix: make state cookies valid when client uses multiple login URLs3bd4ecdfix: preserve node expiry when tailscaled restarts3455d1chscontrol/db: fix RenameUser to use Updates()4a8dc2dhscontrol/state,db: preserve node expiry on MapRequest updates4728a2bhscontrol/state: allow expired auth keys for node re-registrationddd31bahscontrol: use Updates() instead of Save() for partial updates773a46aintegration: add test to replicate #286284fe3deintegration: reduce TestAutoApproveMultiNetwork matrix to 3 tests (#2815)d9c3eafmatcher: Add func for comparing Dests and TheInternetf658a8emkdocs: 0.27.1c649c89policy: Reproduce exit node visibility issues21e3f25policy: fix issue where non existent user results in empty ssh pola28d9bepolicy: reproduce 2863 in testd7a43a7state: use AllApprovedRoutes instead of SubnetRoutes2024219types: Distinguish subnet and exit node accessbd9cf42types: NodeView CanAccess uses internal1c0bb03types: split SubnetRoutes and ExitRoutesv0.27.1Compare Source
Minimum supported Tailscale client version: v1.64.0
Changes
v0.27.0Compare 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.sqlfile as thesource 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:
DERPMap update frequency
The default DERPMap update frequency has been changed from 24 hours to 3 hours.
If you set the
derp.update_frequencyconfiguration option, it is recommendedto change it to
3hto ensure that the headscale instance gets the latestDERPMap updates when upstream is changed.
Autogroups
This release adds support for the three missing autogroups:
self(experimental),
member, andtagged. Please refer to thedocumentation for a detailed
explanation.
autogroup:selfis marked as experimental and should be used with caution, butwe need help testing it. Experimental here means two things; first, generating
the packet filter from policies that use
autogroup:selfis very expensive, andit 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
NodeStoreand aims to reduce the reading and writingof 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
#2692
#2606
hyphens only, cannot start/end with hyphen)
renamed to
invalid-XXXXXXformatmy-laptop→ accepted as-isMy-Laptop→my-laptop(lowercased)my_laptop→invalid-a1b2c3(underscore not allowed)test@host→invalid-d4e5f6(@ not allowed)laptop-🚀→invalid-j1k2l3(emoji not allowed)starting/ending with hyphen are rejected
Changes
#2617
#2765
#2741
conservatively, preserving the old map upon failure.
#2741
autogroup:member,autogroup:tagged#2572
#2767
#2614
noiseconfig#2658
#2625
#2656
/robots.txtendpoint to avoid crawlers#2643
#2663
groups, email and domain
#2663
errors #2764
#2776
autogroup:self#2789
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:
Changelog
450a7b1#2796: Add creation_time and ko_data_creation_time to goreleaser.yml kos64b7142.goreleaser: add upgrade section (#2820)c808587cli: do not show new pre-releases on stable (#2813)e68e228gen: test-integration (#2814)52d27d5hscontrol: add /version HTTP endpoint (#2821)v0.27.0Compare 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.sqlfile as thesource 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:
DERPMap update frequency
The default DERPMap update frequency changed from 24 hours to 3 hours.
If you set the
derp.update_frequencyconfiguration option, we recommendchanging it to
3hso that the headscale instance gets the latestDERPMap updates when upstream changes.
Autogroups
This release adds the three missing autogroups:
self(experimental),
member, andtagged. See thedocumentation
for a detailed explanation.
autogroup:selfis experimental and should be used with caution, butwe need help testing it. Experimental here means two things. First, generating
the packet filter from policies that use
autogroup:selfis very expensive, andit 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
NodeStoreand aims to reduce reads and writesof 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
hyphens only, cannot start/end with hyphen).
renamed to
invalid-XXXXXXformat.my-laptop→ accepted as-isMy-Laptop→my-laptop(lowercased)my_laptop→invalid-a1b2c3(underscore not allowed)test@host→invalid-d4e5f6(@ not allowed)laptop-🚀→invalid-j1k2l3(emoji not allowed)starting/ending with hyphen are rejected.
Changes
upon failure.
#2741
autogroup:memberandautogroup:taggedare supported. #2572noiseconfig is removed. #2658/robots.txtendpoint keeps crawlers away. #2643with allowed groups, email and domain.
#2663
spot. #2764
autogroup:self. #2789v0.26.1Compare Source
Security fix
when connecting.
#2642
Commits
474ea23Fix/machine/mapendpoint vulnerability (#2642)v0.26.1Compare Source
Changes
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR has been generated by Mend Renovate.
053b63fb4etofdcd1bed21Update ghcr.io/juanfont/headscale Docker tag to v0.28.0to Update ghcr.io/juanfont/headscale Docker tag to v0.29.0fdcd1bed21tocb91deb5e1Update ghcr.io/juanfont/headscale Docker tag to v0.29.0to Update ghcr.io/juanfont/headscale Docker tag to v0.29.1cb91deb5e1tofd6722c871Update ghcr.io/juanfont/headscale Docker tag to v0.29.1to Update ghcr.io/juanfont/headscale Docker tag to v0.29.2fd6722c871toa985bbcf6ca985bbcf6ctocf05351615Update ghcr.io/juanfont/headscale Docker tag to v0.29.2to Update ghcr.io/juanfont/headscale Docker tag to v0.29.3cf05351615to0d061d27f8Update ghcr.io/juanfont/headscale Docker tag to v0.29.3to Update ghcr.io/juanfont/headscale Docker tag to v0.29.40d061d27f8toeb03806a1cUpdate ghcr.io/juanfont/headscale Docker tag to v0.29.4to Update ghcr.io/juanfont/headscale Docker tag to v0.29.5eb03806a1ctod50b47643aUpdate ghcr.io/juanfont/headscale Docker tag to v0.29.5to Update ghcr.io/juanfont/headscale Docker tag to v0.29.6d50b47643ato9930a43c51Update ghcr.io/juanfont/headscale Docker tag to v0.29.6to Update ghcr.io/juanfont/headscale Docker tag to v0.29.79930a43c51tode2b0ce113Update ghcr.io/juanfont/headscale Docker tag to v0.29.7to Update ghcr.io/juanfont/headscale Docker tag to v0.29.8View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.