Fix .set/.get #1

Open
opened 2019-06-23 18:37:59 +00:00 by Ghost · 1 comment

Tests complain with:

dns-01 challenge.get() returned 'KmlN8cfb-usOjCLyKAEu8wZ1pythkz8veFk2BVlLVSY', which does not match the dnsAuthorization (keyAuthDigest) saved with challenge.set(), which was 'QzQsFeFW2vd5QfR4sdqzr2i8phd5xGWJ4ttCB_gL4EM'

Really unsure what's wrong since data.challenge.dnsAuthorization is being used. But seems to be wrong anyways. Maybe multiple records with same name?

Tests complain with: ``` dns-01 challenge.get() returned 'KmlN8cfb-usOjCLyKAEu8wZ1pythkz8veFk2BVlLVSY', which does not match the dnsAuthorization (keyAuthDigest) saved with challenge.set(), which was 'QzQsFeFW2vd5QfR4sdqzr2i8phd5xGWJ4ttCB_gL4EM' ``` Really unsure what's wrong since `data.challenge.dnsAuthorization` is being used. But seems to be wrong anyways. Maybe multiple records with same name?
Owner

*.foo.example.co.uk and foo.example.co.uk will BOTH set TXT records for foo.example.com.

This makes sense because * isn't a real domain, it's an alias, so it has to be set on the real domain instead.

You need to set BOTH records, not overwrite the record, and check that the record you return is the correct record based on its content, not the domain name (since a domain can have an infinite number of TXT records).

`*.foo.example.co.uk` and `foo.example.co.uk` will BOTH set TXT records for `foo.example.com`. This makes sense because `*` isn't a real domain, it's an alias, so it has to be set on the real domain instead. You need to set BOTH records, not _overwrite_ the record, and check that the record you return is the correct record based on its _content_, not the domain name (since a domain can have an infinite number of TXT records).
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coolaj86/acme-dns-01-cloudflare.js#1
No description provided.