DEVmachine-fr / cert-manager-alidns-webhook

Cert-manager webhook to generate Let's Encrypt certificates over Alibaba Cloud DNS.
Apache License 2.0
107 stars 32 forks source link

alicloud: error getting hosted zones: alicloud: error describing domains #28

Open wangchao732 opened 5 months ago

wangchao732 commented 5 months ago

50448768-BADD-44dc-B82A-0A7AC4AA0342

rifandyzv commented 5 months ago

image

This also happened to me, why it trying to find the TLD on my DNS?

cc @olivierboudet @artemlive @AtarisMio

olivierboudet commented 5 months ago

Hello, Can you share your issuer configuration ?

rifandyzv commented 5 months ago

@olivierboudet I'm using Cluster issuer with DNS01, because I need to generate a wildcard cert image

olivierboudet commented 5 months ago

Thanks, and what is your Certificate configuration ?

rifandyzv commented 5 months ago

Thanks, and what is your Certificate configuration ?

@olivierboudet Can't put the certificate configuration and the dns name here. but it's basic certificate configuration with issuerref to the issuer above. I'm requestion for wildcard on my subdomain, this is a domain example that I put in the commanName and dnsNames: *.sub.domain.example.com

I don't understand why the challenge is requesting for the TLD? I also experienced before that the challenge was requesting only for the root domain.

I'm using multi-zone DNS setup here, so I put separate zone for my subdomains on different account

I've checked the code, I feel suspicious this issue caused by the unfqdn and fqdn functions. please help to check

olivierboudet commented 5 months ago

I think it could be related to multi-zone DNS setup but I am not using this kind of setup. Perhaps this part of the cert-manager documentation could help you : https://cert-manager.io/docs/configuration/acme/dns01/#delegated-domains-for-dns01

rifandyzv commented 5 months ago

@olivierboudet I think it is unrelated to that, because as you see in my first screenshot the challenge was trying to issue cert for "com." domain, which I think that is a DNS/string parsing issue

after further checking, it appeared the issue was related to that cert-manager mechanism

olivierboudet commented 5 months ago

Not sure if it can help but did you try parameters documented here : https://cert-manager.io/docs/configuration/acme/dns01/#setting-nameservers-for-dns01-self-check (dns01-recursive-nameservers and dns01-recursive-nameservers-only)