Skip to content

Rotating default kubeconfig #9250

Answered by brandond
Apoorva64 asked this question in Q&A
Jan 16, 2024 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

if the kubeconfig has been rotated i should not be able to connect to the cluster.

That is an incorrect assumption.

Rotating the certs does not invalidate old certificates, were you expecting it to do so? We do not make that claim anywhere.

Kubernetes does not actually support certificate revocation checks, so even if the old certs were revoked by the CA it would not make a difference as the CRL is not checked. The only way to completely revoke old certificates is to switch over to a new CA that does not have any common trust with the old CA - but this is a very disruptive operation, as you are rekeying the entire cluster.

Best practice is not to distribute the admin kubeconfig, and ins…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@Apoorva64
Comment options

@brandond
Comment options

Answer selected by brandond
@sass1997
Comment options

@brandond
Comment options

@sass1997
Comment options

@sass1997
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants