kelvie / cert-manager-webhook-namecheap

A cert-manager ACME DNS01 solver webhook for Namecheap
Apache License 2.0
37 stars 25 forks source link

cert-manager processing error - specific TLDs #6

Open TechGardenCode opened 9 months ago

TechGardenCode commented 9 months ago

Followed all the steps above and encountered an issue specific to a few of my domain names with more unique TLDs. Both my .gg and .sh domain names produced the following error: invalid domain: incorrect format (larger stack trace below), however my *.com domain name was able to issue a certificate without issues

I took a cursory look at the code and it's probably an issue with the go-namecheap SDK (or namecheap's apis not allowing these TLDs to be programmatically modified), but I'm not a go developer so I'm not 100% sure

Thank you for this amazing functionality, will try and debug the issue locally and if I find a fix, will raise a PR :)

I1226 18:20:13.309012       1 dns.go:88] "cert-manager/challenges/Present: presenting DNS01 challenge for domain" resource_name="coffee-kian-www-ingress-cert-namecheap-stage-2-42404-2248307218" resource_namespace="coffee-kian" resource_kind="Challenge" resource_version="v1" dnsName="coffee.techgarden.gg" type="DNS-01" resource_name="coffee-kian-www-ingress-cert-namecheap-stage-2-42404-2248307218" resource_namespace="coffee-kian" resource_kind="Challenge" resource_version="v1" domain="coffee.techgarden.gg"
E1226 18:20:13.318063       1 controller.go:167] "cert-manager/challenges: re-queuing item due to error processing" err="invalid domain: incorrect format" key="coffee-kian/coffee-kian-www-ingress-cert-namecheap-stage-2-42404-2248307218"
I1226 18:20:18.308557       1 dns.go:88] "cert-manager/challenges/Present: presenting DNS01 challenge for domain" resource_name="coffee-kian-www-ingress-cert-namecheap-stage-2-42404-2248307218" resource_namespace="coffee-kian" resource_kind="Challenge" resource_version="v1" dnsName="coffee.techgarden.gg" type="DNS-01" resource_name="coffee-kian-www-ingress-cert-namecheap-stage-2-42404-2248307218" resource_namespace="coffee-kian" resource_kind="Challenge" resource_version="v1" domain="coffee.techgarden.gg"
E1226 18:20:18.319667       1 controller.go:167] "cert-manager/challenges: re-queuing item due to error processing" err="invalid domain: incorrect format" key="coffee-kian/coffee-kian-www-ingress-cert-namecheap-stage-2-42404-2248307218"
TechGardenCode commented 9 months ago

Following up, I tried with another .gg domain name and it worked flawlessly... I'm not sure why these two specific domains have issues, their configuration in the Namecheap control panel are identical