k8s icon indicating copy to clipboard operation
k8s copied to clipboard

request-cert no longer works as of Kubernetes 1.22

Open chrisseto opened this issue 3 years ago • 5 comments

As of Kubernetes 1.22, certificates.k8s.io/v1beta1 is no longer being served.

The request-cert container/binary uses the v1beta1 API and will fail to create a CSR in newer Kubernetes clusters:

failed to get certificate: CertificateSigningRequest.Create(%s) failed: the server could not find the requested resource

To mitigate this issue, we'll have to upgrade to certificates.k8s.io/v1 and drop support for Kubernetes < 1.19.

chrisseto avatar Jun 03 '22 17:06 chrisseto

Cockroach docs seem to strongly imply that the project is (correctly) dropping support for this approach, in favor of using something like cert-manager. Updating to 1.22 should also include directions about e.g. how to use cert-manager as the signer for the v1 CSR resource.

nyarly avatar Aug 16 '22 00:08 nyarly

Aside: I'm in the process of converting our request-cert process to using vault-agent instead.

nyarly avatar Aug 16 '22 00:08 nyarly

@nyarly could you cite the docs that suggest using cert-manager? Our technical writer says there's no reference to cert-manager in in our documentation.

We are dropping support for this approach and will be removing this container once we've settled on an acceptable alternative.

chrisseto avatar Aug 16 '22 18:08 chrisseto

Reviewing, I was taking that from the helm chart, which dropped support for request-cert in favor of cert-manager or a self signed thing that liked kind of hacky

nyarly avatar Aug 16 '22 23:08 nyarly