-
Notifications
You must be signed in to change notification settings - Fork 831
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
Refresh client CA certificate if changed #1145
Conversation
Build Succeeded 👏 Build Id: f478b823-cb29-4fa6-b6bc-e5f32a63d518 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
/cc @cyriltovena is this a better approach than what we've done previously? |
Can you please give a context? What are you comparing this with? |
Good question - so we did stuff in the install path so that if the helm generated cert was updated, it would recreate the backing pods for webhooks, etc -- basically restarting the service to reload the file. I guess the reasoning here is more for being able to cycle certs on a more regular basis without having to restart the whole service? (which does sound better!) |
I think this change doesn't preclude you from using helm to rotate the certs via container restarts (as was done before) but it enables you to also rotate them by updating secrets without restarting the containers. The two approaches aren't mutually exclusive. |
/assign |
I didn't notice there is question for me. Exactly, this removes the requirement for restarting pods to pick up the new certificates. |
I've lost track of where we are on this PR -- is it back in my court for review? |
There is a feedback to address the thread safety concern by using RWMutex. I'll apply the change and will let you know when it is ready to review. |
Build Failed 😱 Build Id: defd9aab-2c1f-4479-9983-9d3ba04d9cb3 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Succeeded 👏 Build Id: a9a0a395-f04e-4551-b386-f9e397c713bb The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
Build Failed 😱 Build Id: 116da623-c464-4163-bc38-f5068ac78b2f To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Succeeded 👏 Build Id: 97cef46a-15c2-4078-8f27-0f4f10b99435 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pooneh-m, roberthbailey The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
If a client CA certificate is changed for agones-allocator, it requires the service pod restart (delete and recreate). To allow picking up new secrets when updated, this change watches the secret mounted volume and if changed reload the certificates in the TLS config.