Zum Inhalt springen

Headscale Release Notes

Einträge
34
Quellen
1
Zuletzt aktualisiert

Folge Headscale, um die Release Notes in deinen Feed zu holen.

Headscale

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 #3724

Upgrade

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

Changelog

  • bfc57bf512b61ac473a6a809870425f48e50265e CHANGELOG: add 0.29.8 capability version fix
  • 5aeae67c551d681f79e14be45eddac093c604de8 CHANGELOG: date 0.29.8
  • 985d4460d605b7ceaa5bcef81b71a6d1d8557db6 github: add TestCurlMixedCapVer to integration jobs
  • 173de2a1067cdc01a0124ef701af1f7a1f22c43c integration: curl between head and v1.104 clients
  • ca9346171c5847b70cb09b3e74ce2ed10d02fea5 mapper, state: send each peer its own capability version
  • 7d2e2aca15633b8ed91a398545b126c23d26b49f mapper: check peer Cap against a Tailscale SaaS capture
  • 2322d6b456ee352b5f5396974c65fe98a5ea5532 servertest: wait for each rapid reconnect to connect
  • 697a88e83a4b2384c1b2ec2bc434e99475ce8bfe servertest: wait for the client to see its own expiry
  • 5247b950a5685dd20e2ea16967fdd0f9a6aca555 state: test that a repeated capability version stays quiet …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

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 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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

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 #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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale v0.29.5

Behebt mehrere Fehler bei via-Exit-Node-Steuerung, Gruppen mit unbekannten Benutzern, Datenrennen und Paketfiltern.

  • 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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale 0.29.4: Fehlerbehebungen und gehärteter OIDC-Callback

Headscale v0.29.4 behebt unter anderem einen Absturz der Tailscale-Android-App durch einen Node in der eigenen Peer-Liste, das offene Long Poll nach dem Löschen eines Nodes, Probleme beim interaktiven OIDC-Login nach Seiten-Reload und zählende HTTP-Metriken, die bisher nur OPTIONS-Anfragen erfassten, und härtet zudem den OIDC-Callback ab.

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale 0.29.3: Fixes bei Registrierung getaggter Nodes

Headscale v0.29.3 behebt Probleme bei der erneuten Authentifizierung und Registrierung getaggter Nodes, hängengebliebene ephemere Nodes und fälschliche 401-Timeouts bei der Registrierung und verschärft zudem Prüfungen bei der Registrierungsabfrage und bei /key-Anfragen.

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

  • 235a57ec31388901a78d054b1adb9dff900658cc CHANGELOG: add 0.29.3 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale 0.29.2

Behebt Verzögerungen bei der Map-Generierung nach Massen-Reconnects, die Ablehnung des WebSocket-GET-Upgrades auf /ts2021 sowie Fehler bei Nodes mit ungültigem FQDN, die nun abgefangen und beim Start protokolliert werden.

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

  • 8eea89488c642f3d5f617fab5493d5f51f6f4ad0 CHANGELOG: drop unreleased 0.30.0 stub
  • f708c5b0108ac2ba5ff384ae9b85bdef488e1ffc CHANGELOG: note /ts2021 WebSocket GET fix
  • 735742e3eea9be93c42c2bd76c9641a74dc11e20 CHANGELOG: note 0.29.2 invalid-name map fix
  • 3ac33cf1d5fa66bafcdf11fd0919d10f118ee8ea CHANGELOG: shorten 0.29.2 invalid-name entry, set date
  • f885d87827bcae30a07063f2723cd03458144a00 Fix invalid ip syntax
  • 1ec7b7fb726ea6270a1eb459534753ef27eda736 hscontrol: register /ts2021 for WebSocket GET
  • 8f4e69d2a643f41378275c1b33395448ba8a596d integration: add TS2021 WebSocket tests to CI matrix …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale 0.29.1

Behebt, dass Nodes mit tags='null' beim Upgrade ihren zugewiesenen Benutzer verloren.

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

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

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale 0.29.0

Headscale 0.29.0 verbessert die Tailscale-ACL-Kompatibilität, unterstützt SSH-Regeln mit der Aktion check samt neuer headscale auth-Befehle und wertet in einer Beta den tests-Block in Policy-Dateien aus.

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale 0.29.0-beta.4

Diese Beta von Headscale 0.29.0 bringt bessere Tailscale-ACL-Kompatibilität, SSH-Check-Action mit neuen headscale auth-Befehlen und Policy-Tests als Beta-Funktion.

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale 0.29.0-beta.3

Diese Beta von Headscale 0.29.0 bringt bessere Tailscale-ACL-Kompatibilität, SSH-Check-Action mit neuen headscale auth-Befehlen und Policy-Tests als Beta-Funktion.

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale 0.29.0-beta.2

Diese Beta von Headscale 0.29.0 bringt bessere Tailscale-ACL-Kompatibilität, SSH-Check-Action mit neuen headscale auth-Befehlen und Policy-Tests als Beta-Funktion.

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale 0.29.0-beta.1

Diese erste Beta von Headscale 0.29.0 bringt bessere Tailscale-ACL-Kompatibilität, SSH-Check-Action mit neuen headscale auth-Befehlen und Policy-Tests als Beta-Funktion.

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale 0.28.0

Headscale 0.28.0 setzt Tags nach dem Tailscale-Modell als Identität um (Tags und Benutzerzuordnung schließen sich aus), erlaubt Tag-Anforderungen bei der Registrierung per --advertise-tags und sendet kleinere, partielle Map-Updates.

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale 0.28.0-beta.2

Diese Beta von Headscale 0.28.0 führt Tags als Identität, Tag-Anforderung bei der Registrierung mit --advertise-tags, eine einmalige Migration von RequestTags und partielle Map-Updates ein.

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale 0.28.0-beta.1

Diese erste Beta von Headscale 0.28.0 führt Tags als Identität, partielle Map-Updates und bcrypt-Hashing für Pre-Authentication-Keys ein.

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.

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale 0.27.2-rc.1

Behebt, dass die ACL-Policy bei neuen OIDC-Nodes erst nach Client-Neustart galt, dass autogroup:self die Sichtbarkeit anderer ACL-Treffer verhinderte und dass Nodes nach Ablauf eines Pre-Authentication-Keys abgelehnt wurden.

Changes

  • 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

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale 0.27.1

Headscale 0.27.1 ermöglicht das Ablaufenlassen von Nodes mit eigenem Zeitstempel und behebt mehrere Fehler, darunter zurückgesetzte Node-Ablaufzeiten, OIDC-Anmeldung, Re-Registrierung mit abgelaufenen Auth-Keys, Exit-Node-Sichtbarkeit und leere SSH-Policies.

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale Version 0.27.0

Headscale 0.27.0 bringt eine umfangreiche Datenbankmigration zur Verbesserung der Integrität von SQLite-Datenbanken (PostgreSQL ist nicht betroffen) mit einem schema.sql als Referenzschema und verlangt mindestens Tailscale-Client v1.64.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 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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale Version 0.27.0-beta.2

Die Beta 0.27.0-beta.2 von Headscale enthält eine umfangreiche Migration zur Verbesserung der Integrität von SQLite-Datenbanken mit schema.sql als Referenzschema und setzt mindestens Tailscale-Client v1.64.0 voraus.

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 …

Originalquelle(öffnet in neuem Tab)Problem melden