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

Verify CA keypair IDs for kops-controller-issued certs #11982

Merged
merged 2 commits into from
Jul 15, 2021

Conversation

johngmyers
Copy link
Member

@johngmyers johngmyers commented Jul 13, 2021

This ensures that nodes that have kops-controller-issued certs from a demoted CA will be selected by rolling-update as needing update. If a bootstrapping node requests certs from a kops-controller that has a different idea of what the primary keypair is for one of the relevant CAs, the request will fail. This will happen after the apply_cluster following the promotion of one of the CA's keypairs. The failure will continue until whichever node (kops-controller or worker) is out of date is replaced by rolling-update.

The other possible way to do this would be to give kops-controller direct access to the secret store and allow the client node to select whichever CA keypair it wants the certs issued from.

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 13, 2021
@johngmyers johngmyers changed the title WIP Verify CA keypair IDs for kops-controller-issued certs 9a036fb WIP Verify CA keypair IDs for kops-controller-issued certs Jul 13, 2021
@johngmyers johngmyers changed the title WIP Verify CA keypair IDs for kops-controller-issued certs Verify CA keypair IDs for kops-controller-issued certs Jul 14, 2021
@k8s-ci-robot k8s-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Jul 14, 2021
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 14, 2021
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 15, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: olemarkus

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 15, 2021
@k8s-ci-robot k8s-ci-robot merged commit f24f12f into kubernetes:master Jul 15, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.22 milestone Jul 15, 2021
@johngmyers johngmyers deleted the bootstrap-keypairid branch July 15, 2021 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/api area/kops-controller area/nodeup cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants