Feature: By default, require only self-signed certificates in a bundle #4
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/feature
Categorizes issue or PR as related to a new feature.
Writing down what occurred to me at the end of the cert-manager biweekly meeting on 28/07
An issue with administering trust bundles is that it's very easy + tempting for users to put intermediates in the trust store as a way of "fixing" trust issues. Usually this occurs when an app is buggy and only sends the leaf certificate without its chain, and explicitly trusting the leaf's issuing intermediate CA seems to fix the problem for them. Crucially, when that intermediate is then rotated their app will break.
We could add a toggle, defaulting to false, such as
allowIntermediateCertificates
. If false, it would parse every certificate and ensure that it's self-signed. There might be other ways of achieving the same goal.Having this in from the start could prevent so many misconfigurations by unsuspecting cluster admins.
(Complication: If we added a list of publicly trusted certs it'd probably need to default to allowing intermediates in that list by default - but we could definitely default to disallowing intermediates everywhere else)
The text was updated successfully, but these errors were encountered: