-
Notifications
You must be signed in to change notification settings - Fork 259
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
Add TLS support for trunk serve
#532
Conversation
trunk serve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the time to open this PR! I think this is one of the better shots at adding TLS to the serve stack.
Just a few review items. Also, do you have any thoughts on enabling TLS for Websockets as well? Perhaps it just works out of the box 🤞.
Cool, thx! I agree with your feedback and can implement the requested changes in the next couple of days.
Good question. When searching for TLS, I noticed https://github.com/thedodd/trunk/pull/492/files, but decided it's not related to what I wanted to do. From what I understand from this PR it's currently not working, and I wouldn't expect it to work with this MR, but it's worth a shot for sure :) Now that I think of it, Hmm. I checked out a couple of issues / PRs, and after reading the changelog of tokio-tungstenite https://github.com/snapview/tokio-tungstenite/blob/master/CHANGELOG.md#0140 I think that one of the tls features for |
4339597
to
5c06dd2
Compare
@thedodd It's done. I think that the code now is better than it was before. Let me know if other parts should be improved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@thedodd this PR is ready to merge IMO. Is there something that should be improved? |
Use clippy, improve error handling Improve tls example Rename TLS options, improve path resolution Move Rustls config parsing into rt.rs
@thedodd it's still done, and I just rebased it to the latest upstream branch, so the merge conflicts should be gone. Is there something that should be improved? |
@thedodd The changes of this branch work flawlessly. It would be great if this PR could be merged and released. This allows to develop with HTTPS locally, mimicing production environments more closely. For certain things, running with a certificate is even a requirement! I think that #458 should be closed / rejected in favour of this PR. |
I think the PR needs none more change, the provided certificate in the example expired already: I think it makes sense to use a rather long expiration period for such an example certificate (10+ years). |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This is not stale. Still waiting to be merged... Or feedback what to fix 🙄 |
@lukaselmer I already took a look if I could merge it into I would encourage to raise a PR for https://github.com/ctron/trunk ( |
This is now merged into https://github.com/ctron/trunk (trunk-ng branch). |
it is also released with version |
This was brought back to trunk with PR #623 and it should be part of the next release of trunk too. |
This should be released with trunk 0.18.0 |
Adds TLS support, closes #277
site
content with pertinent info (may not always apply).