Repository navigation
Update dns-persist-01 impl to draft-ietf-acme-dns-persist-04 - #566
orangepizza wants to merge 9 commits into
Conversation
use calculate account hash format, as defined in draft-ietf-acme-dns-persist-02 , instead of using accounturi as is.
016be57 to
df066f8
Compare
inahga
left a comment
There was a problem hiding this comment.
Thanks for putting this together!
c99af3c to
cc15659
Compare
|
I spent a little bit of time with Posh-ACME since it has draft-02 support, and looks like your changeset mostly works (or, at least, interops with posh-acme 😄) However we are missing this change https://www.ietf.org/archive/id/draft-ietf-acme-dns-persist-02.html#appendix-B.1-1.12.1
That should be a one line change in struct common.Challenge. |
draft-02 changed it's name to camelCase, singular is still issuer-domain-name is that draft
5c9182d to
03fe645
Compare
mostly adding support for client asking ancestorDomain to validate subdomain by record at parent domain
d63e90e to
0a2b9a4
Compare
spec 6.2 require challenge itself kept pending state in those case, so it need to happen in wfe. VA kept its own check because one shouldn't defer validation of target domain relation to ident to outside.
0a2b9a4 to
c706904
Compare
|
Diff from -03: Wire changes from -03: |
|
update for draft-ietf-acme-dns-persist-04. |
refactored test codes to actuall error type, not http code, when test error types.
| } | ||
|
|
||
| key := []byte(base64.RawURLEncoding.EncodeToString(thumbprint)) | ||
| accountidentsurffix := append(key, []byte(task.AccountURL)...) |
There was a problem hiding this comment.
fixed it, thanks
| expectDetailSubstr: "not subdomain of", | ||
| }, | ||
| { | ||
| name: "wlidcard policy required using ancesterdomain even if auth itself isn't wildcard", |
10f15c3 to
bf0638e
Compare
| } | ||
|
|
||
| // make a struct that all things we understand in challenge response | ||
| // in struct mode parser will reject unknown extensions. |
bf0638e to
ecb9c84
Compare
| persistUntil *time.Time | ||
| } | ||
|
|
||
| type dnsPersistHashedAccountURI struct { |
There was a problem hiding this comment.
I'd avoid "AccountURI" and go with something along the lines of "AccountDigest"
ecb9c84 to
d439f15
Compare
Draft -04 replaced the TXT accounturi parameter with accountdigest=<hash-alg>/<base64url-digest> and removed the accountHashPrefix directory field. A CA now rejects any record that contains accounturi, so migration uses separate records at the same name. Prior-key retention and acceptance became CA policy, and the persistExpired error was removed in favour of incorrectResponse. Update the record format, the account digest, the directory fields, the self-check rules and reasons, the test vectors and the function names (HashedAccountURI becomes AccountDigest). The fork change is now two parsed fields and the account check. Replace the pending -04 section with what changed from -03. Supported Versions now says that -02 and -03 servers do not accept -04 records, which today rules out Boulder and the current e2e Pebble fork. The E2E plan targets letsencrypt/pebble#566, which moved to -04 on 2026-12-02. Signed-off-by: abd-ulbasit <basit@basit.engineer>
go 1.25 is EOL and eggsampler test is failing because it wants at least 1.26
d439f15 to
de210b2
Compare
use calculate account hash format, as defined in draft-ietf-acme-dns-persist-02, instead of using accounturi as is.
while this draft requires CA to keep old key for validate old accountURI made with old key, but didn't implemented here.
Personally I think that's not something client should test for
this draft's txt record is constructed as
"; accounturi= //base64url(Hash(length_of_domain || domain_name || key || account_URL))"