Repository navigation
Open
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.priority/backlogHigher priority than priority/awaiting-more-evidence.Higher priority than priority/awaiting-more-evidence.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.Categorizes an issue or PR as relevant to SIG API Machinery.sig/authCategorizes an issue or PR as relevant to SIG Auth.Categorizes an issue or PR as relevant to SIG Auth.sig/securityCategorizes an issue or PR as relevant to SIG Security.Categorizes an issue or PR as relevant to SIG Security.wg/security-auditCategorizes an issue or PR as relevant to WG Security Audit.Categorizes an issue or PR as relevant to WG Security Audit.
Description
Authenticating users via x509 certs is important, but the project seems to be missing a mechanism to revoke certs (without throwing the entire chain away and regenerating ALL certs for all users).
It would be great to be able to declare which certs are invalid, and have the kube-apiserver, kubelets, and all other cert-dependent services deny service for requests with the now-invalid cert.
https://en.wikipedia.org/wiki/OCSP_stapling appears to be one way to solve this.
FYI - this is the same idea as the issue with CoreOS: etcd-io/etcd#4034
Reacted by Hingst, Arne-Kristian, Antoine Cotten, Bryant Rockoff, Steven E. Harris, Ricardo Pchevuzinske Katz, Andor Uhlár, Dmitry Romanov, pts-rajperera, Andreas Kohn, M. Frister and 105 more
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.priority/backlogHigher priority than priority/awaiting-more-evidence.Higher priority than priority/awaiting-more-evidence.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.Categorizes an issue or PR as relevant to SIG API Machinery.sig/authCategorizes an issue or PR as relevant to SIG Auth.Categorizes an issue or PR as relevant to SIG Auth.sig/securityCategorizes an issue or PR as relevant to SIG Security.Categorizes an issue or PR as relevant to SIG Security.wg/security-auditCategorizes an issue or PR as relevant to WG Security Audit.Categorizes an issue or PR as relevant to WG Security Audit.
Type
Projects
- StatusShow more project fieldsNeeds KEP
Activity
roberthbailey commentedon Jan 4, 2016
@stensonb That is a good observation.
/cc @ncdc @stephenR
ncdc commentedon Jan 4, 2016
cc @liggitt
jimmycuadra commentedon May 26, 2016
Somewhat related, a better story around managing the lifecycle of TLS certs/keys in general. See https://github.com/kubernetes/kubernetes/issues/25379.
tmegow commentedon Sep 20, 2017
+1
fejta-bot commentedon Jan 6, 2018
Issues go stale after 90d of inactivity.
Mark the issue as fresh with
/remove-lifecycle stale.Stale issues rot after an additional 30d of inactivity and eventually close.
Prevent issues from auto-closing with an
/lifecycle frozencomment.If this issue is safe to close now please do so with
/close.Send feedback to sig-testing, kubernetes/test-infra and/or
@fejta./lifecycle stale
54 remaining items
k8s-ci-robot commentedon Mar 22, 2026
@smarticu5: The label(s)
/label wg/security-auditcannot be applied. These labels are supported:api-review, tide/merge-method-merge, tide/merge-method-rebase, tide/merge-method-squash, team/katacoda, refactor, ci-short, ci-extended, ci-full, official-cve-feed. Is this label configured underlabels -> additional_labelsorlabels -> restricted_labelsinplugin.yaml?Details
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
smarticu5 commentedon Mar 22, 2026
/wg security-audit
lentzi90 commentedon Apr 24, 2026
I just wanted to highlight that the issue description mentions OCSP stapling (https://en.wikipedia.org/wiki/OCSP_stapling) but the current discussion seem to be only about CRL. Has there been any investigations or discussions in this direction?
As I see it, OCSP stapling would address the concerns of 1 (availability, complexity and runtime cost) by pushing the cost on the clients instead. Server side verification would be straight forward. Any thoughts about this?
remram44 commentedon Apr 24, 2026
Having to run an OCSP server and handle many requests to it just to handle the couple of certificates that I will ever revoke... We lost the plot.
XANi commentedon Apr 24, 2026
Exactly. CRL works just fine in small controlled environments and requires zero changes on client side or spinning up new servers and distributing single CRL file to a bunch of k8s servers is trivial for any org with any half decent configuration management setup
lentzi90 commentedon Apr 27, 2026
I can understand this perspective as well. For an operator, the OCSP alternative probably means more work. However, I think the main concern here is around Kubernetes as a project. I would be interested to know if someone has looked into the feasibility of it. Perhaps it would be easier, even though it might mean more operational overhead outside of Kubernetes.
What about larger, complex and dynamic environments? Bare metal, air-gapped deployments with external CA? I am not saying CRL is a no-go, just that "small controlled environments" may not be where this is needed.
StephanX commentedon Apr 27, 2026
Make a ball park guess at how many revoked certificates might be in a large, complex, dynamic environment? Dozens? Maybe even a couple hundred? Like, say, less than a kilobyte worth of data? A trivial amount of data to reference and propagate?
That's the frustration with this nine year old issue; solving the problem seems ridiculously easy, but the scope around how to approach it has ballooned to a point where it doesn't seem like it will ever be seriously addressed.
raesene commentedon Apr 27, 2026
One interesting point here is that the Kubernetes project already has a pattern for effective revocation of credentials, which is having another object which is referenced from the credential and when the referenced object is removed, the credential is invalidated. This pattern works in Service account tokens and pod certificates.
One option might have been extending that pattern to have a referenced object for all issued certificated (e.g. a certificate object) and just allow admins to delete the object for certs that are to be revoked. This would have the side benefit of allowing for credential review/auditing, which would be nice.
lentzi90 commentedon Apr 27, 2026
I looked around regarding OCSP and it seems it has very limited support in go. Found these two issues related to it:
So that is out then for the foreseeable future I guess.
remram44 commentedon Apr 27, 2026
This is interesting! Indeed, if I could just delete the Node to lock out a kubelet, that would solve the entire problem for me. Unfortunately what actually happens now is the kubelet holding a valid certificate can recreate its Node and re-join.
XANi commentedon Apr 27, 2026
@lentzi90
Even at scale of 10k developers (let's assume they all use same cluster and you use good practice of short lived certs) you'd still have maybe 1k certs on the list at any given time, that's few tens of kb and an amortized O(1) lookup in a hash
poc: add userValidatingAuthenticator wrapper for x509 revocation
poc: add userValidatingAuthenticator wrapper for x509 revocation
lentzi90 commentedon Jun 17, 2026
I have tried to explore alternative 3 from @liggitt 's comment above, in #139812. So far it seems to work well for me and I have gotten encouraging feedback internally also.
It is obviously just exploratory work and hence pushed as a draft. I would be very interested in your thoughts though.
Does the approach look valid? Is this something we could move forward with? Do we need a KEP in that case?