Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Tailscale version to 1.18.x #229

Merged
merged 24 commits into from
Nov 28, 2021
Merged

Upgrade Tailscale version to 1.18.x #229

merged 24 commits into from
Nov 28, 2021

Conversation

kradalby
Copy link
Collaborator

@kradalby kradalby commented Nov 19, 2021

See individual commits.

There is a new key library, and it forces some refactoring, I might have missed something, but this should have integration tests passing for the new and the previous version when its done.

This PR contains a breaking change.

The old private key format is no longer supported, and users will have to delete their private key. Headscale will now automatically generate it on startup if it does not exist.

@kradalby kradalby changed the title Add new Tailscale version to integration tests Add new Tailscale version (1.18.0) to integration tests Nov 19, 2021
@kradalby kradalby changed the title Add new Tailscale version (1.18.0) to integration tests Add new Tailscale version (1.18.1) to integration tests Nov 23, 2021
We dont seem to need the wireguard key anymore, we generate a key on
startup based on the new library and the users fetch it from /key.

Clean up app.go and update docs
This commit converts all the uses of wgkey to the new key interfaces.

It now has specific  machine, node and discovery keys and we now should
use them correctly.

Please note the new logic which strips a key prefix (in utils.go) that
is now standard inside tailscale.

In theory we could put it in the database, but to preserve backwards
compatibility and not spend a lot of resources on accounting for both,
we just strip them.
@kradalby kradalby changed the title Add new Tailscale version (1.18.1) to integration tests Upgrade Tailscale version to 1.18.x Nov 26, 2021
@kradalby kradalby marked this pull request as draft November 26, 2021 23:35
@kradalby kradalby marked this pull request as ready for review November 28, 2021 11:33
@kradalby kradalby requested review from juanfont and cure November 28, 2021 11:34
Copy link
Owner

@juanfont juanfont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fantastic :)

@kradalby kradalby merged commit 1dc0081 into main Nov 28, 2021
@kradalby kradalby deleted the kradalby-patch-2 branch November 28, 2021 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants