Describe the bug:
CA Issuer's certificate is no longer bundled with the resulting issued certificate.
Expected behaviour:
The CA Issuer's certificate is bundled within tls.crt.
Steps to reproduce the bug:
Anything else we need to know?:
Environment details:
/kind bug
The actual CA itself is purposely not included as part of the tls.crt section, in favour of storing it only in the ca.crt field.
The intermediate certificate will be included if it exists however, meaning the tls.crt should form a certificate chain to the root (ca.crt).
Hope that makes sense, and please let me know if that isn't what you are seeing!
Thanks for clarifying @munnerz! In previous releases, the ca.crt was bundled, correct? If so, what was the reason this has changed?
I ask this because we were previously using cert-manager 0.5.0 where it seemed like the ca.crt was bundled into tls.crt. Another service used the tls.crt to obtain the ca.crt bundled within it, and the new changes now would break them.
Presumably, your issuer is configured with a self signed root? If so, there's an explicit check since v0.6 that excludes self signed roots being a part of certificate chains: https://github.com/jetstack/cert-manager/blob/2f99b3155acb8fe61400c0cdae0196d1c08f5630/pkg/util/pki/csr.go#L250-L253
The pull request that changed this: https://github.com/jetstack/cert-manager/pull/1077
Thank you for pointing me to the information @munnerz