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

unable to get secret cert-manager; unable to get secret /cert-manager; resource name may not be empty #84

Open
matthias-hampel opened this issue Feb 26, 2025 · 0 comments

Comments

@matthias-hampel
Copy link

I get the error message unable to get secret cert-manager; unable to get secret /cert-manager; resource name may not be empty when trying to retrieve a certificate.

This is the error message from the cert-manager pod:

I0226 16:11:44.490477       1 dns.go:90] "presenting DNS01 challenge for domain" logger="cert-manager.controller.Present" resource_name="chart-example-tls-1-3937858742-2111318442" resource_namespace="hello" resource_kind="Challenge" resource_version="v1" dnsName="hello.mydomain.com" type="DNS-01" resource_name="chart-example-tls-1-3937858742-2111318442" resource_namespace="hello" resource_kind="Challenge" resource_version="v1" domain="hello.mydomain.com"
E0226 16:11:44.500764       1 controller.go:157] "re-queuing item due to error processing" err="unable to get secret `cert-manager`; unable to get secret `/cert-manager`; resource name may not be empty" logger="cert-manager.controller"

I created a secret (named hetzner-secret) in the cert-manager namespace which contains my DNS apiKey:

apiVersion: v1
kind: Secret
metadata:
  name: hetzner-secret
  namespace: cert-manager
data:
  api-key: base64encodedapikey

This is the Cluster Issuer config:

apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-prod
spec:
  acme:
    server: https://acme-v02.api.letsencrypt.org/directory
    email: email@example.com
    privateKeySecretRef:
      name: letsencrypt-prod
    solvers:
      - dns01:
          webhook:
            groupName: acme.mydomain.com
            solverName: hetzner
            config:
              zoneName: mydomain.com
              apiUrl: https://dns.hetzner.com/api/v1

I do not really understand the error and hope, that you can help me to solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant