Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 23, 2024

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.

@@ -169,7 +171,7 @@ func makeOrderFinalised(t *testing.T, supportedChalTypes []string, identifiers .
chalType := supportedChalTypes[mrand.Intn(len(supportedChalTypes))]
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