-
Notifications
You must be signed in to change notification settings - Fork 293
Add TLS certificate hot reloading support (fixes #1021) #1086
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
base: main
Are you sure you want to change the base?
Add TLS certificate hot reloading support (fixes #1021) #1086
Conversation
|
@synhershko can you please check the failing CI's? |
92e1a30 to
8123c9d
Compare
|
@prudhvigodithi done |
|
Would it make sense to automatically add https://docs.opensearch.org/latest/security/configuration/tls/#hot-reloading-tls-certificates |
I agree to set the config. Btw, there are a few things to care. Also I'd prefer using the directory mount instead of subpath for both cases and we can switch hot reloading on/off using that config param |
|
From Slack (https://opensearch.slack.com/archives/C06QRV1RLD7/p1760456223930269?thread_ts=1760443641.817159&cid=C06QRV1RLD7): For internal communication between nodes, we use self-signed certificates generated by cert-manager. We have configured a root Certificate Authority (CA) with a 10-year validity period and have disabled private key rotation for this CA. This prevention is crucial because if the CA were to be renewed, new nodes with certificates issued by the rotated CA would be unable to join the existing cluster. The leaf certificates issued for each node have a validity of one year, and their private keys can be rotated. Forcing a rolling restart We will be happy to hear if there is a better way :) |
|
Just thought it'd make sense to note the above, esp with regards to rolling restarts and self-signed certs |
) Signed-off-by: Itamar Syn-Hershko <[email protected]>
in addition, use dir mount as default Signed-off-by: josedev-union <[email protected]>
4a0e868 to
0cfd3bf
Compare
Signed-off-by: josedev-union <[email protected]>
Fix hot reloading TLS certificates feature that doesn't work due to certificates being mounted using subPath function.
Fixes #1021
Solution:
enableHotReloadconfiguration option to TlsCertificateConfigChanges:
Benefits:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.