-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Refactor cert issuance code #9130
Conversation
0034bbb
to
e59983c
Compare
2f1562c
to
e2e4fcb
Compare
9c048df
to
e4f0b9b
Compare
This looks pretty good to me. |
fbc26b7
to
7038b43
Compare
Thanks @johngmyers ! /lgtm |
Drive-by nit, but this is a big simplification of the code - thank you @johngmyers /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johngmyers, justinsb, rdrgmnzs 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 |
/lgtm |
See #9110
Pull cert issuance code up into
Keypair
then push it down intopki
where it can be shared by nodeup tasks.Add up to 30 days skew to the lifetimes of nodeup-generated certs, to try to cause nodes generated around the same time to expire on different days.
Decrease the lifetime of the kube-apiserver-healthcheck and master kubelet certificates from 10 years to 455 days plus skew. Increases the lifetime of the etcd-clients-ca-cilium and apiserver-to-etcd client certs from 1 year to 455 days plus skew.
Make
pki.SignNewCertificate()
private.