-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Remove generation of static tokens for cluster members #11567
Remove generation of static tokens for cluster members #11567
Conversation
Nodes to api-server relies by default certificates, and bootstrap tokens, and there should be no need to generate tokens for every nodes, even when enabling static token auth.
/ok-to-test |
/approve cancel |
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.
Thanks, that's a nice cleanup :D
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: MrFreezeex, mzaian 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 |
@VannTen Is there anything we should do on existing clusters to clean up? |
I don't think so. As mentioned in the PR description, the token_auth was
disabled by default for a while. Lingering tokens should not be accepted
by a default configuration of kubespray, if I understand things correctly.
|
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This removes the generation of static tokens for the node in the Kubernetes cluster.
kube_token_auth
is disabled by default since d487b2f (in 2017).I also don't think that we actually using it for the nodes even when
kube_token_auth
is true.This DOES NOT remove
kube_token_auth
.Special notes for your reviewer:
This does needs some discussion, so I'll remove implicit approval
/unapprove
Does this PR introduce a user-facing change?:
/label tide/merge-method-merge