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

Reloadable WebServer TLS during runtime #2900

Merged
merged 6 commits into from
Apr 6, 2021

Conversation

Verdent
Copy link
Member

@Verdent Verdent commented Mar 31, 2021

Fixes #2863

Signed-off-by: David Kral <david.k.kral@oracle.com>
Signed-off-by: David Kral <david.k.kral@oracle.com>
Signed-off-by: David Kral <david.k.kral@oracle.com>
Copy link
Contributor

@romain-grecourt romain-grecourt left a comment

Choose a reason for hiding this comment

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

LGTM, only a few minor comments. How does that work for requests being processed ? Do they still work off the previously configured TSL context ?

Signed-off-by: David Kral <david.k.kral@oracle.com>
@Verdent
Copy link
Member Author

Verdent commented Apr 1, 2021

Yes, those already connected are still working fine, but the new ones are validated against the new TLS.

*
* @param tls new TLS configuration
* @param socketName specific named socket name
* @throws IllegalStateException if the new tls is not enabled or currently set tls is null
Copy link
Contributor

Choose a reason for hiding this comment

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

Looking at the constructor for SockerConfig, we don't keep the WebServerTls so it's not symetrical :(

How about `if {@link WebServerTls#enabled()} returns {@code false} or if {@link SocketConfiguration#ssl()} returns {@code null}.

We should probably update the ssl configuration for 3.0 @tomas-langer thoughts ?

Signed-off-by: David Kral <david.k.kral@oracle.com>
Signed-off-by: David Kral <david.k.kral@oracle.com>
@Verdent Verdent merged commit 31d5cd7 into helidon-io:master Apr 6, 2021
aseovic pushed a commit to aseovic/helidon that referenced this pull request Apr 26, 2021
Reloadable WebServer TLS during runtime

Signed-off-by: David Kral <david.k.kral@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need support for hot SSL certificate reload
2 participants