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

Headscale Version 0.27.0-beta.1

Die Beta 0.27.0-beta.1 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

Headscale

Headscale Version 0.26.1

Headscale 0.26.1 schließt eine Sicherheitslücke am Endpunkt /machine/map, indem beim Verbinden nun sowohl der Node Key als auch der Machine Key übereinstimmen müssen.

Security fix

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

Commits

  • 474ea236d0c6d393dbcf7baa98da240ad20c1b66 Fix /machine/map endpoint vulnerability (#2642)

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale Version 0.26.0

Headscale 0.26.0 schreibt die Routen-Interna um, entfernt die dedizierte Routen-Tabelle in der Datenbank sowie die Route-API und -CLI und verwaltet Routen nun über die Node-API.

BREAKING

Routes

Route internals have been rewritten, removing the dedicated route table in the database. This was done to simplify the codebase, which had grown unnecessarily complex after the routes were split into separate tables. The overhead of having to go via the database and keeping the state in sync made the code very hard to reason about and prone to errors. The majority of the route state is only relevant when headscale is running, and is now only kept in memory. As part of this, the CLI and API has been simplified to reflect the changes;

$ headscale nodes list-routes
ID | Hostname           | Approved | Available       | Serving (Primary)
1  | ts-head-ruqsg8     |          | 0.0.0.0/0, ::/0 |
2  | ts-unstable-fq7ob4 |          | 0.0.0.0/0, ::/0 |

$ headscale nodes approve-routes --identifier 1 --routes 0.0.0.0/0,::/0
Node updated

$ headscale nodes list-routes
ID | Hostname           | Approved        | Available       | Serving (Primary)
1  | ts-head-ruqsg8     | 0.0.0.0/0, ::/0 | 0.0.0.0/0, ::/0 | 0.0.0.0/0, ::/0
2  | ts-unstable-fq7ob4 |                 | 0.0.0.0/0, ::/0 |

Note that if an exit route is approved (0.0.0.0/0 or ::/0), both IPv4 and IPv6 will be approved.

  • Route API and CLI has been removed #2422
  • Routes are now managed via the Node API #2422 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale Version 0.26.0-beta.2

Die Beta 0.26.0-beta.2 von Headscale schreibt die Routen-Interna um, entfernt die Routen-Tabelle sowie Route-API und -CLI und verwaltet Routen über die Node-API.

BREAKING

Routes

Route internals have been rewritten, removing the dedicated route table in the database. This was done to simplify the codebase, which had grown unnecessarily complex after the routes were split into separate tables. The overhead of having to go via the database and keeping the state in sync made the code very hard to reason about and prone to errors. The majority of the route state is only relevant when headscale is running, and is now only kept in memory. As part of this, the CLI and API has been simplified to reflect the changes;

$ headscale nodes list-routes
ID | Hostname           | Approved | Available       | Serving (Primary)
1  | ts-head-ruqsg8     |          | 0.0.0.0/0, ::/0 |
2  | ts-unstable-fq7ob4 |          | 0.0.0.0/0, ::/0 |

$ headscale nodes approve-routes --identifier 1 --routes 0.0.0.0/0,::/0
Node updated

$ headscale nodes list-routes
ID | Hostname           | Approved        | Available       | Serving (Primary)
1  | ts-head-ruqsg8     | 0.0.0.0/0, ::/0 | 0.0.0.0/0, ::/0 | 0.0.0.0/0, ::/0
2  | ts-unstable-fq7ob4 |                 | 0.0.0.0/0, ::/0 |

Note that if an exit route is approved (0.0.0.0/0 or ::/0), both IPv4 and IPv6 will be approved.

  • Route API and CLI has been removed #2422
  • Routes are now managed via the Node API #2422 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale Version 0.26.0-beta.1

Die Beta 0.26.0-beta.1 von Headscale schreibt die Routen-Interna um, entfernt die Routen-Tabelle sowie Route-API und -CLI und verwaltet Routen über die Node-API.

BREAKING

Routes

Route internals have been rewritten, removing the dedicated route table in the database. This was done to simplify the codebase, which had grown unnecessarily complex after the routes were split into separate tables. The overhead of having to go via the database and keeping the state in sync made the code very hard to reason about and prone to errors. The majority of the route state is only relevant when headscale is running, and is now only kept in memory. As part of this, the CLI and API has been simplified to reflect the changes;

$ headscale nodes list-routes
ID | Hostname           | Approved | Available       | Serving (Primary)
1  | ts-head-ruqsg8     |          | 0.0.0.0/0, ::/0 |
2  | ts-unstable-fq7ob4 |          | 0.0.0.0/0, ::/0 |

$ headscale nodes approve-routes --identifier 1 --routes 0.0.0.0/0,::/0
Node updated

$ headscale nodes list-routes
ID | Hostname           | Approved        | Available       | Serving (Primary)
1  | ts-head-ruqsg8     | 0.0.0.0/0, ::/0 | 0.0.0.0/0, ::/0 | 0.0.0.0/0, ::/0
2  | ts-unstable-fq7ob4 |                 | 0.0.0.0/0, ::/0 |

Note that if an exit route is approved (0.0.0.0/0 or ::/0), both IPv4 and IPv6 will be approved.

  • Route API and CLI has been removed #2422
  • Routes are now managed via the Node API #2422 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale Version 0.25.1

Headscale 0.25.1 behebt Probleme bei der Registrierung: Fehler werden korrekt gesendet, bei der Registrierung übergebene Routen werden gespeichert und die Registrierungsseite wird nicht mehr doppelt angezeigt.

Changes

  • Fix issue where registration errors are sent correctly #2435
  • Fix issue where routes passed on registration were not saved #2444
  • Fix issue where registration page was displayed twice #2445

Changelog

  • ade7f2a2b1795768ce146913e25011cd11a1a012 changelog 0.25.1
  • 75c1e77de031bd6fecab495824ace891080876e4 fix double login URL with OIDC (#2445)
  • 83587df738ff040d6767e690affde05cb236a5a2 fix routes not being saved when new nodes registers (#2444)
  • e9bcb7a052d6c06cf3e04708ec7ce9eb3f2389c1 handle register auth errors (#2435)

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale Version 0.25.0

Headscale 0.25.0 schreibt den Authentifizierungsablauf um, entfernt die Unterstützung für Tailscale-Clients älter als 1.62 und setzt oidc.map_legacy_users standardmäßig auf false.

BREAKING

  • Authentication flow has been rewritten #2374 This change should be transparent to users with the exception of some buxfixes that has been discovered and was fixed as part of the rewrite.
    • When a node is registered with a new user, it will be registered as a new node (#2327 and #1310).
    • A logged out node logging in with the same user will replace the existing node.
  • Remove support for Tailscale clients older than 1.62 (Capability version 87) #2405

Changes

  • oidc.map_legacy_users is now false by default #2350
  • Print Tailscale version instead of capability versions for outdated nodes #2391
  • Do not allow renaming of users from OIDC #2393
  • Change minimum hostname length to 2 #2393
  • Fix migration error caused by nodes having invalid auth keys #2412
  • Pre auth keys belonging to a user are no longer deleted with the user #2396 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale Version 0.25.0-beta.2

Die Beta 0.25.0-beta.2 von Headscale schreibt den Authentifizierungsablauf um, entfernt die Unterstützung für Tailscale-Clients älter als 1.62 und setzt oidc.map_legacy_users standardmäßig auf false.

BREAKING

  • Authentication flow has been rewritten #2374 This change should be transparent to users with the exception of some buxfixes that has been discovered and was fixed as part of the rewrite.
    • When a node is registered with a new user, it will be registered as a new node (#2327 and #1310).
    • A logged out node logging in with the same user will replace the existing node.
  • Remove support for Tailscale clients older than 1.62 (Capability version 87) #2405

Changes

  • oidc.map_legacy_users is now false by default #2350
  • Print Tailscale version instead of capability versions for outdated nodes #2391
  • Do not allow renaming of users from OIDC #2393
  • Change minimum hostname length to 2 #2393
  • Fix migration error caused by nodes having invalid auth keys #2412
  • Pre auth keys belonging to a user are no longer deleted with the user #2396 …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale Version 0.24.3

Headscale 0.24.3 behebt einen Migrationsfehler durch Nodes mit ungültigen Auth Keys und verhindert, dass Pre-Auth-Keys mit ihrem Benutzer gelöscht werden oder gelöscht werden können, solange ein Node sie verwendet.

Changes

  • Fix migration error caused by nodes having invalid auth keys #2412
  • Pre auth keys belonging to a user are no longer deleted with the user #2396
  • Pre auth keys that are used by a node can no longer be deleted #2396

Changelog

  • ffe2f299cb02588a8425753c8b10f57b36726ed1 do not allow preauth keys to be deleted if assigned to node (#2396)
  • 3b55dacda108da89011910d47bd913135683214c hscontrol/db: add migration setting non existing pak on nodes to null (#2412)
  • 1e2419bc032e9a8bf227eda2c9443c7926104d5c update changelog

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale Version 0.25.0-beta.1

Die Beta 0.25.0-beta.1 von Headscale schreibt den Authentifizierungsablauf um und bittet insbesondere Organisationen um Beta-Tests, etwa beim An- und Abmelden mit demselben Benutzer und beim Benutzerwechsel mit demselben Node.

Help beta testing:

We would like to encourage users, and especially companies/organisations using headscale to join testing of every release. Headscale is open source and it is maintained by a small group of volunteers. We need your help to ensure that the software is stable and secure. The previous release had some issues that was only found after release, we would like to avoid that in the future. This could have been avoided if companies and organisations had helped tested the release before it was released.

This release improves and fixes some long standing bugs in the authentication flow, we need help testing this release to ensure new bugs are not introduced. The interesting things would be to test the following:

  • Logging in and out with the same user (with all auth methods)
  • Changing user with the same node

BREAKING

  • Authentication flow has been rewritten #2374 This change should be transparent to users with the exception of some buxfixes that has been discovered and was fixed as part of the rewrite.
    • When a node is registered with a new user, it will be registered as a new node (#2327 and #1310).
    • A logged out node logging in with the same user will replace the existing node. …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale Version 0.24.2

Headscale 0.24.2 behebt ein Problem, bei dem gleiche E-Mail-Adresse und Benutzername in der Policy nicht zusammenpassten, und löscht ungültige Routen vor dem Hinzufügen einer NOT-NULL-Einschränkung auf node_id.

Changes

  • Fix issue where email and username being equal fails to match in Policy #2388
  • Delete invalid routes before adding a NOT NULL constraint on node_id #2386

Changelog

  • 341a3d3005c1b083094e433999aa9eb63b569f01 Remove routes without a node_id (#2386)
  • 46b82269e024bb6f275989cca9bd055651c7c64c simplify findUserByToken in ACL, add missing testcases (#2388)

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale Version 0.24.1

Headscale 0.24.1 behebt ein PostgreSQL-Migrationsproblem der Benutzertabelle und einen Panic bei derp.update_frequency von 0, lockert die Benutzernamen-Validierung für E-Mail-Adressen und entfernt ungültige Routen mit strengeren Constraints.

Changes

  • Fix migration issue with user table for PostgreSQL #2367
  • Relax username validation to allow emails #2364
  • Remove invalid routes and add stronger constraints for routes to avoid API panic #2371
  • Fix panic when derp.update_frequency is 0 #2368

Changelog

  • 6cd8d993941dbab7ed32cd21c8b62174b7dc7099 fix panic if derp update is 0 (#2368)
  • 84431f2759f76b414368c9d4587ff27e14c6149c fix postgres migration issue with 0.24 (#2367)
  • 5164b2766b2badb3b92ff6a137312cef4763f151 make it harder to insert invalid routes (#2371)
  • 479f79912621674f6f1c07dd40473b9971faf1d9 relax user validation to allow emails, add tests from various oidc providers (#2364)
  • f22a48bcfef3cd037dee905a6feacc52a3a67068 set date for 0.24.1 release

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale Version 0.24.0

Headscale 0.24.0 behebt eine Sicherheitslücke bei der OIDC-Anmeldung, indem Benutzer nun über die Claims iss und sub statt über die E-Mail-Adresse identifiziert und Profilfelder bei der Anmeldung automatisch aktualisiert werden.

Security fix: OIDC changes in Headscale 0.24.0

The following issue only affects Headscale installations which authenticate with OIDC.

Headscale v0.23.0 and earlier identified OIDC users by the "username" part of their email address (when strip_email_domain: true, the default) or whole email address (when strip_email_domain: false).

Depending on how Headscale and your Identity Provider (IdP) were configured, only using the email claim could allow a malicious user with an IdP account to take over another Headscale user's account, even when strip_email_domain: false.

This would also cause a user to lose access to their Headscale account if they changed their email address.

Headscale v0.24.0 now identifies OIDC users by the iss and sub claims. These are guaranteed by the OIDC specification to be stable and unique, even if a user changes email address. A well-designed IdP will typically set sub to an opaque identifier like a UUID or numeric ID, which has no relation to the user's name or email address.

Headscale v0.24.0 and later will also automatically update profile fields with OIDC data on login. This means that users can change those details in your IdP, and have it populate to Headscale automatically the next time they log in. However, this may affect the way you reference users in policies. …

Originalquelle(öffnet in neuem Tab)Problem melden

Headscale

Headscale Version 0.24.0-beta.2

Die Beta 0.24.0-beta.2 von Headscale behebt eine Sicherheitslücke bei OIDC, indem Benutzer nun über die Claims iss und sub statt über die E-Mail-Adresse identifiziert und Profilfelder bei der Anmeldung aktualisiert werden.

Security fix: OIDC changes in Headscale 0.24.0

The following issue only affects Headscale installations which authenticate with OIDC.

Headscale v0.23.0 and earlier identified OIDC users by the "username" part of their email address (when strip_email_domain: true, the default) or whole email address (when strip_email_domain: false).

Depending on how Headscale and your Identity Provider (IdP) were configured, only using the email claim could allow a malicious user with an IdP account to take over another Headscale user's account, even when strip_email_domain: false.

This would also cause a user to lose access to their Headscale account if they changed their email address.

Headscale v0.24.0 now identifies OIDC users by the iss and sub claims. These are guaranteed by the OIDC specification to be stable and unique, even if a user changes email address. A well-designed IdP will typically set sub to an opaque identifier like a UUID or numeric ID, which has no relation to the user's name or email address.

Headscale v0.24.0 and later will also automatically update profile fields with OIDC data on login. This means that users can change those details in your IdP, and have it populate to Headscale automatically the next time they log in. However, this may affect the way you reference users in policies. …

Originalquelle(öffnet in neuem Tab)Problem melden