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

wss:// peering now requires TLS1.3 and has no default port #1208

Closed
hatkidchan opened this issue Nov 28, 2024 · 8 comments
Closed

wss:// peering now requires TLS1.3 and has no default port #1208

hatkidchan opened this issue Nov 28, 2024 · 8 comments

Comments

@hatkidchan
Copy link

hatkidchan commented Nov 28, 2024

Can't add wss:// peers anymore, it needs a port, otherwise peering fails with missing port in address. With port added, fails with failed to WebSocket dial: failed to send handshake request: Get "https://[redacted]:443/ygg/": remote error: tls: protocol version not supported. Everything works on 0.5.9.
I didn't test ws:// peering, but my guess would be that it's also broken in a similar way.

Possible commit that caused the problem: 42873be

@hatkidchan
Copy link
Author

Peering via ws:// seems to work fine. I didn't have a second machine w/ 0.5.10 on it, so I just started another one on the same machine and tried peering with localhost, which seems to work. Either it's not enough to test it and peering via ws:// is also broken, OR only wss:// is broken.

@hatkidchan
Copy link
Author

Peering with another instance of Yggdrasil running on the same machine via wss:// does seem to work(??) with port added, which is even weirder.

@hatkidchan
Copy link
Author

Okay, with a bit of digging there's two separate issues:

  • No default port for wss:// peers (not a big issue)
  • Something something possibly related to tlsconfig

@hatkidchan
Copy link
Author

Found the culprit: minimum TLS version now is 1.3 but our domain was using TLS1.2. Previously it was fine, but I guess now requirements are stricter?

@hatkidchan hatkidchan changed the title wss:// peering broke in 0.5.10 wss:// peering now requires TLS1.3 and has no default port Nov 28, 2024
@hatkidchan
Copy link
Author

This 7afa23b commit changed minimum version to be tls1.3 but back then it wasn't applied to wss, which was introduced in commit mentioned previously. Could we bump down minimum TLS version to 1.2 at least?

@hatkidchan
Copy link
Author

Actually, looking at it, bumping it down to 1.2 is not a good idea since it was introduced in.. 2008. Port being required now is a bummer though.

@basilgello
Copy link
Contributor

1.2 is still widely used and standardized. Is there a specific reason to stick with 1.3 only @neilalexander ?

@basilgello
Copy link
Contributor

Definition of default ports should be easy as it is 80 for HTTP/WS and 443 for HTTPS/WSS.

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

No branches or pull requests

2 participants