Closed kmei3560 closed 8 months ago
Tried to create resource record set [name='_acme-challenge.example.eu.domain.app.', type='TXT'] but it already exists
happens because the challenge record name for *.example.eu.domain.app
is the same as the challenge record name for example.eu.domain.app
-- but they will have different values.
Are you using CertMagic's DNS01Solver? It has this doc:
Note that challenges may be solved concurrently by some clients (such as acmez, which CertMagic uses), meaning that multiple TXT records may be created in a DNS zone simultaneously, and in some cases distinct TXT records may have the same name. For example, solving challenges for both example.com and *.example.com create a TXT record named _acme_challenge.example.com, but with different tokens as their values. This solver distinguishes between different records with the same name by looking at their values. DNS provider APIs and implementations of the libdns interfaces must also support multiple same-named TXT records.
So libdns/route53 needs to make sure it's operating on the right record resources.
If there's a bug in acmez, I'd like to be able to reproduce it otherwise I can't really fix it. Can you provide a minimal reproducer (just a few lines of code as minimal as possible) and then I can take a look?
Closing due to inactivity.
Hello! I apologize if this is not the correct repo impacted here. I have an issue that I believe is related to this library:
I have an inhouse-developed batch processing app that allows us to standardize processing of potentially large batches of public certificates.
I noticed in my last few batches that there is an issue when certificates such as the below are BOTH specified in the same batch. The issue is related to the DCV challenge record, I believe.
For example - both requested in sequence one after the other:
*.example.eu.domain.app
example.eu.domain.app
From my perspective, there are potentially 4 different libraries that could be involved: acmez, certmagic, libdns/route53 or the code I've added for the batch processing.
Could you please briefly review this log output I captured and see if you may have an "Aha!" moment? If not... I'm happy to dig deeper on my code assembly and see if I can narrow down the issue. Also I'm currently using an older version of libdns/route53 due to a possible issue with the latest version.
(As a sidenote: I use multiple libdns providers but it seems I occasionally run into a variance with the provider outputs. I've thought about writing a way to validate these outputs. Ideally all providers should accept the same inputs and produce identical-format outputs. A tool could help certify the providers as equivalent.)