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

Add support for automatic TLS encryption via autocert #402

Merged
merged 1 commit into from
May 8, 2024

Conversation

robertodauria
Copy link
Contributor

@robertodauria robertodauria commented May 7, 2024

This PR adds support for enabling TLS automatically via the autocert package. In particular, the two new flags -autocert.enabled and -autocert.hostname enable this feature. On the first HTTPS request, ndt-server will automatically try to get a certificate from LetsEncrypt, assuming the requested hostname matches what's in the -autocert.hostname file.

The reason for it being a file is that the in the BYOS scenario the hostname is generated by the autojoin register client and written to a file.

(FYI @nkinkade )


This change is Reviewable

Copy link
Contributor

@cristinaleonr cristinaleonr left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@robertodauria robertodauria merged commit e34525c into main May 8, 2024
5 checks passed
@robertodauria robertodauria deleted the sandbox-roberto-autocert branch May 8, 2024 13:13
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