Skip to content

Add dns-account-01 support from draft-ietf-acme-scoped-dns-challenges#21

Merged
eggsampler merged 1 commit intoeggsampler:masterfrom
sheurich:add-dns-account-01
Feb 23, 2024
Merged

Add dns-account-01 support from draft-ietf-acme-scoped-dns-challenges#21
eggsampler merged 1 commit intoeggsampler:masterfrom
sheurich:add-dns-account-01

Conversation

@sheurich
Copy link
Contributor

This change implements the "dns-account-01" challenge type as specified in:

https://github.com/aaomidi/draft-ietf-acme-scoped-dns-challenges/blob/0058e0800056698fb37f3b2cb31a727c826675fb/draft-ietf-acme-scoped-dns-challenges.mkd#dns-account-01-challenge

The relevant validation label computation is:

"_" || base32(SHA-256(<ACCOUNT_RESOURCE_URL>)[0:10]) || "._acme-" || <SCOPE> || "-challenge"

Currently SCOPE of "host" and "wildcard" is implemented, but not SCOPE of "domain".

This implementation is interoperable with the Pebble changes in https://github.com/fastly/pebble/tree/add-dns-account-01 and passes the new TestWildcardDNSAccount test.

Solves #20.

@eggsampler
Copy link
Owner

Thank you for the PR! I will pull this in later today.

chal, ok := auth.ChallengeMap[chalType]
if !ok {
t.Fatalf("No supported challenge %q (%v) in challenges: %v", chalType, supportedChalTypes, auth.ChallengeTypes)
t.Skipf("skipping, no supported challenge %q (%v) in challenges: %v", chalType, supportedChalTypes, auth.ChallengeTypes)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change of a fatal to skip is due to the unconditional execution of TestWildcardDNSAccount when the testing against a Boulder/Pebble instance without dns-account-01 support. There may be a preferable way to accomplish this without making this a skip.

@eggsampler eggsampler merged commit 37325ac into eggsampler:master Feb 23, 2024
@sheurich sheurich deleted the add-dns-account-01 branch February 23, 2024 00:28
jsha pushed a commit to letsencrypt/pebble that referenced this pull request Mar 18, 2024
…es (#435)

This change implements the `dns-account-01` ACME challenge as specified
in
[draft-ietf-acme-scoped-dns-challenges](https://datatracker.ietf.org/doc/draft-ietf-acme-scoped-dns-challenges/).

The relevant [validation label
computation](https://github.com/aaomidi/draft-ietf-acme-scoped-dns-challenges/blob/0058e0800056698fb37f3b2cb31a727c826675fb/draft-ietf-acme-scoped-dns-challenges.mkd#dns-account-01-challenge)
is:
```plain
"_" || base32(SHA-256(<ACCOUNT_RESOURCE_URL>)[0:10]) || "._acme-" || <SCOPE> || "-challenge"
```
where SCOPE is one of { `host`, `wildcard` }. A SCOPE of { `domain` } is
unimplemented.

This implementation is interoperable with the
https://github.com/eggsampler/acme changes in
eggsampler/acme#21 and passes the
`TestWildcardDNSAccount` test.

Solves #425.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants