Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cert-manager fails to integration with Istio #5827

Closed
Chen-Xintong opened this issue Feb 24, 2023 · 3 comments
Closed

Cert-manager fails to integration with Istio #5827

Chen-Xintong opened this issue Feb 24, 2023 · 3 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@Chen-Xintong
Copy link

Describe the bug:

I'm using cert-manager as a custom CA to integrate with Istio, and following this guide to create signers: https://istio.io/latest/docs/tasks/security/cert-management/custom-ca-k8s/

The Signers are created but when I install Istio with the signer certificate I can see the CSR is Created and Approved but never Issued and there are no new logs from the Cert Manager.

NAMESPACE   NAME                              AGE   SIGNERNAME                                    REQUESTOR                                   REQUESTEDDURATION   CONDITION
            csr-workload-f9pkb9vxf2b8xdcsqs   0s    clusterissuers.cert-manager.io/istio-system   system:serviceaccount:istio-system:istiod   <none>              Pending
            csr-workload-f9pkb9vxf2b8xdcsqs   0s    clusterissuers.cert-manager.io/istio-system   system:serviceaccount:istio-system:istiod   <none>              Approved
            csr-workload-f9pkb9vxf2b8xdcsqs   65s   clusterissuers.cert-manager.io/istio-system   system:serviceaccount:istio-system:istiod   <none>              Approved
            csr-workload-9t4l6dx2cf4mmmtgc4   0s    clusterissuers.cert-manager.io/istio-system   system:serviceaccount:istio-system:istiod   <none>              Pending
            csr-workload-9t4l6dx2cf4mmmtgc4   0s    clusterissuers.cert-manager.io/istio-system   system:serviceaccount:istio-system:istiod   <none>              Approved
            csr-workload-9t4l6dx2cf4mmmtgc4   65s   clusterissuers.cert-manager.io/istio-system   system:serviceaccount:istio-system:istiod   <none>              Approved

And the Istiod logs:
2023-02-24T07:26:18.112835Z error failed to create discovery service: failed generating key and cert by kubernetes: no certificate returned for the CSR: "csr-workload-f7wzxcxxnwp5wtfscb" Error: failed to create discovery service: failed generating key and cert by kubernetes: no certificate returned for the CSR: "csr-workload-f7wzxcxxnwp5wtfscb"
Environment details::

  • Kubernetes version: 1.25
  • Cloud-provider/provisioner: single node test cluster
  • cert-manager version: v1.7.1
  • Install method: static manifests

/kind bug

@jetstack-bot jetstack-bot added the kind/bug Categorizes issue or PR as related to a bug. label Feb 24, 2023
@irbekrm
Copy link
Collaborator

irbekrm commented Feb 24, 2023

Hi, are you sure that you have set the --feature-gates=ExperimentalCertificateSigningRequestControllers=true flag on cert-manager?
Could you paste in cert-manager controller logs with increased log level (--v=5 flag) including the logs at the controller start, so we can see if the certificate signing request controllers start?
Also could you paste in the Issuer and the Certificate that you are using?

cert-manager version: v1.7.1

It would definitely make sense to also upgrade to the latest version as v1.7.1 is no longer supported https://cert-manager.io/docs/installation/supported-releases/
`

@irbekrm irbekrm added the triage/needs-information Indicates an issue needs more information in order to work on it. label Feb 24, 2023
@Chen-Xintong
Copy link
Author

Hi, are you sure that you have set the --feature-gates=ExperimentalCertificateSigningRequestControllers=true flag on cert-manager? Could you paste in cert-manager controller logs with increased log level (--v=5 flag) including the logs at the controller start, so we can see if the certificate signing request controllers start? Also could you paste in the Issuer and the Certificate that you are using?

cert-manager version: v1.7.1

It would definitely make sense to also upgrade to the latest version as v1.7.1 is no longer supported https://cert-manager.io/docs/installation/supported-releases/ `

Hi @irbekrm , thank you very much for your reply, I updated the cert manager to 1.11 and added the --feature-gates=ExperimentalCertificateSigningRequestControllers=true flag (not sure if it was enabled on before), now it can work as expected, thank you!

@Chen-Xintong
Copy link
Author

We can close this as this issue was resolved :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

3 participants