cert-manager-webhook-ovh: Invalid header from OVH api

Hello, I migrated from https://github.com/baarde/cert-manager-webhook-ovh and this is first time when I’m trying to generate certs from this project. Previous one was working but I had to disclose consumerKey. After migrating I modified issuer:

apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
  name: letsencrypt
  namespace: cert-manager
spec:
  acme:
    server: https://acme-staging-v02.api.letsencrypt.org/directory
#    server: https://acme-v02.api.letsencrypt.org/directory
    email: 'mymail'
    privateKeySecretRef:
      name: letsencrypt-account-key
    solvers:
    - dns01:
        webhook:
          groupName: 'xx-xx'
          solverName: ovh
          config:
            endpoint: ovh-eu
            applicationKeyRef:
              key: applicationKey
              name: xx-xx-ovh-credentials
            applicationSecretRef:
              key: applicationSecret
              name: xx-xx-ovh-credentials
            consumerKeyRef:
              key: consumerKey
              name: xx-xx-ovh-credentials

values.yaml has:

cert-manager-webhook-ovh:
  certManager:
    namespace: cert-manager
    serviceAccountName: cert-manager
  image:
    repository: ghcr.io/aureq/cert-manager-webhook-ovh
    tag: v0.4.0
  groupName: xx-xx
  issuers:
  - name: letsencrypt
    create: false

and I’m getting weird error from cert manager pod:

I1121 15:27:06.179531       1 dns.go:88] cert-manager/challenges/Present "msg"="presenting DNS01 challenge for domain" "dnsName"="xx.xx" "domain"="xx.xx" "resource_kind"="Challenge" "resource_name"="xx-xx-jtgfx-3844061293-1738404956" "resource_namespace"="cert-manager" "resource_version"="v1" "type"="DNS-01"
E1121 15:27:06.458270       1 controller.go:167] cert-manager/challenges "msg"="re-queuing item due to error processing" "error"="OVH API call failed: GET /domain/zone/xx.xx/status - Get \"https://eu.api.ovh.com/1.0/domain/zone/xx.xx/status\": net/http: invalid header field value \"\\xef\\x9e\\xfc\\xe3M\\xfc\\xeb\\x8d5\\xf7M\\xb6ߎ5\\xe5\\xcd\\x1eӧ\\x9b\\xd3m\\xfd\" for key X -Ovh-Consumer" "key"="cert-manager/xx-xx-jtgfx-3844061293-1738404956"

Do you have any advice? Thanks in advance!

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Both values for the above two keys are base64 encoded strings. You can, of course, provide the clear text content using the stringData for Secret creation.

Right. I usually use stringData as I put them in sealedSecrets that’s why I forgot about it. Yeah, this might be the root cause. Big thanks for your time and sorry for, looks like, silly error. I will confirm it in following hours and let you know how it went.