Interview Prep/DevSecOps/Secrets and Identity Management

A Kubernetes kubeconfig with a client certificate for `system:masters` was copied to a contractor laptop. What now?

AdvancedScenarioSecrets and Identity Management
Answer

Situation read → Client certificates cannot be revoked individually in Kubernetes, and system:masters bypasses RBAC.

What I'd do →

  1. On managed clusters, check whether the cert came from the cluster CA; rotating the CA is the only real revocation.
  2. Plan a CA rotation: on EKS that means a new cluster or the documented cert rotation path; on kubeadm kubeadm certs renew does not revoke, so a CA change is needed.
  3. Meanwhile, restrict API endpoint access to known CIDRs or private-only.
  4. Review audit logs for that certificate's CN.
  5. Going forward, give humans access only via OIDC/IAM-mapped identities, never long-lived client certs.

Why → You cannot delete a cert from Kubernetes; trust lives in the CA.

Interview tip → Knowing "certs cannot be revoked" separates seniors from juniors.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets and Identity Management