-
Notifications
You must be signed in to change notification settings - Fork 73
Add ability to force cert regeneration #43
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 ability to force cert regeneration #43
Conversation
Signed-off-by: Brian Downs <[email protected]>
Signed-off-by: Brian Downs <[email protected]>
Oats87
left a comment
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.
I almost wonder if there is merit in figuring out how to add logging here for the purposes of knowing when certs are getting regenerated; however, I'm not sure that putting log messages in NewX makes sense. Conundrum.
|
@Oats87 I believe that I added logging to all cert signing operations a while back, so the call to dynamiclistener/factory/cert_utils.go Lines 106 to 107 in 6b37dc1
|
Signed-off-by: Brian Downs <[email protected]>
Signed-off-by: Brian Downs <[email protected]>
Signed-off-by: Brian Downs <[email protected]>
|
Just want to be clear in the terminology used here about regenerating certs vs renewing them. It is very important to Rancher that the cert is just renewed and not actually regenerated, as generating a new cert makes the browser suspicious and will break websockets. |
|
This operation would generate a new certificate needed for the certificate rotation work. |
brandond
left a comment
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.
OK, my apologies. This is not intended to be used to force renewal; the expected behavior is to repopulate the secret with a completely new key and certificate, retaining only the CNs from the current certificate.
* add ability to force cert regeneration Signed-off-by: Brian Downs <[email protected]>
* add ability to force cert regeneration
Signed-off-by: Brian Downs [email protected]