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

[Bug] Tailscale HEAD (1eaad7d3d) is broken in integration tests #2164

Closed
kradalby opened this issue Oct 2, 2024 · 2 comments · Fixed by #2163
Closed

[Bug] Tailscale HEAD (1eaad7d3d) is broken in integration tests #2164

kradalby opened this issue Oct 2, 2024 · 2 comments · Fixed by #2163
Labels
bug Something isn't working documentation Improvements or additions to documentation
Milestone

Comments

@kradalby
Copy link
Collaborator

kradalby commented Oct 2, 2024

Current Behavior

Reauthentication is broken in integration tests for Tailscale clients built from HEAD due to tailscale/tailscale@1eaad7d.

It looks like the commit make fast reconnects force them to use 443, so it should not affect users as long as they use HTTPS.

The solution is likely to document that you more or less need to run HTTPS and to make integration tests that reauth is served over 443.

@kradalby kradalby added the bug Something isn't working label Oct 2, 2024
@kradalby kradalby changed the title [Bug] Tailscale HEAD is broken [Bug] Tailscale HEAD (1eaad7d3d) is broken Oct 2, 2024
@kradalby kradalby changed the title [Bug] Tailscale HEAD (1eaad7d3d) is broken [Bug] Tailscale HEAD (1eaad7d3d) is broken in integration tests Oct 2, 2024
kradalby added a commit to kradalby/headscale that referenced this issue Oct 3, 2024
tailscale/tailscale@1eaad7d broke our reauth test as it makes the client
retry with https/443 if it reconnects within 2 minutes.

This commit fixes this by running the test as a two part,
- with https, to confirm instant reconnect works
- with http, and a 3 min wait, to check that it work without.

The change is not a general consern as headscale in prod is ran
with https.

Updates juanfont#2164

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
kradalby added a commit that referenced this issue Oct 3, 2024
* make reauth test compat with tailscale head

tailscale/tailscale@1eaad7d broke our reauth test as it makes the client
retry with https/443 if it reconnects within 2 minutes.

This commit fixes this by running the test as a two part,
- with https, to confirm instant reconnect works
- with http, and a 3 min wait, to check that it work without.

The change is not a general consern as headscale in prod is ran
with https.

Updates #2164

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* sort test for stable order

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

---------

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
@kradalby
Copy link
Collaborator Author

kradalby commented Oct 3, 2024

This is fixed, but we should probably document that people should really really use HTTPS.

@kradalby kradalby added the documentation Improvements or additions to documentation label Oct 3, 2024
@kradalby
Copy link
Collaborator Author

kradalby commented Oct 3, 2024

The error at hand will only occur if you have an headscale running on http, not answering on 443, and the client tries to reconnect/reauth within 2 minutes. If it reconnects after 2 minutes, it should be fine.

nblock added a commit to nblock/headscale that referenced this issue Oct 8, 2024
nblock added a commit to nblock/headscale that referenced this issue Oct 9, 2024
@nblock nblock added this to the v0.24.0 milestone Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants