Skip to content

wfe: check account keys in RA; allow ML-DSA - #9156

Open
jsha wants to merge 2 commits into
mainfrom
mldsa-account-keys
Open

jsha wants to merge 2 commits into
mainfrom
mldsa-account-keys

Conversation

@jsha

@jsha jsha commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Also, move responsibility for validating account keys fully into the RA. Depends on #9154 being deployed to prod so the RA is enforcing key quality on account rollover.

This removes goodkey from boulder-wfe2's JSON config. I've confirmed it's unset in prod.

WFE's response to unrecognized key types changes slightly: it will list ML-DSA-44 among the allowed signature algorithms in BadSignatureAlgorithmError regardless of how the RA is configured. If the RA does not have ML-DSA-44 enabled, it will reject later in the flow with BadPublicKeyError.

Integration tests don't yet exercise ML-DSA account keys. We'll add those after eggsampler/acme supports them.

Fixes #9146

@jsha
jsha added this pull request to stack #9157 November 5, 2026 01:23
Base automatically changed from mldsa-ee-keys to main November 6, 2026 17:50
@jsha
jsha force-pushed the mldsa-account-keys branch 2 times, most recently from c4cc580 to aefea6d Compare November 11, 2026 00:18
@jsha jsha changed the title wfe: allow ML-DSA-44 account keys wfe: check account keys in RA; allow ML-DSA Nov 11, 2026
@jsha
jsha removed this pull request from stack #9157 November 11, 2026 00:21
@jsha
jsha changed the base branch from main to simplify-verify-test November 11, 2026 00:22
Base automatically changed from simplify-verify-test to main November 11, 2026 00:46
@jsha
jsha marked this pull request as ready for review November 11, 2026 00:59
@jsha
jsha requested a review from a team as a code owner November 11, 2026 00:59
@github-actions

Copy link
Copy Markdown
Contributor

@jsha, this PR appears to contain configuration and/or SQL schema changes. Please ensure that a corresponding deployment ticket has been filed with the new values.

@jsha

jsha commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Thanks bot! The goodkey removal in WFE is a no-op since the field is not present in prod. However, the enablement of ML-DSA in the RA needed a ticket. I've filed that.

Comment thread ra/ra.go
Comment on lines +513 to +515
if errors.Is(err, goodkey.ErrBadKey) {
return nil, berrors.BadPublicKeyError("invalid account key: %s", err.Error())
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this change needs to land in the RA before the corresponding goodkey checks are removed from the WFE, so that we're guaranteed to continue returning BadPublicKeyError no matter what order the deploy happens in.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point, pulled this out into #9179 and will stack this one on it.

Leaving this conversation open to block merging: don't merge until #9179 is merged and deployed.

@jsha
jsha changed the base branch from main to ra-returns-badpublickey November 16, 2026 23:22
@jsha
jsha added this pull request to stack #9181 November 16, 2026 23:23
Base automatically changed from ra-returns-badpublickey to main November 18, 2026 21:14
aarongable pushed a commit that referenced this pull request Nov 18, 2026
Since we're moving validation of account keys into the RA, we also want
to make sure we return the appropriate ACME error type.

Note: this should be integration tested, but we can't hit this code path
until we remove the WFE's goodkey check (#9156).
jsha added 2 commits November 18, 2026 13:14
Also, move responsibility for validating account keys fully into the RA. Depends
on #9154 being deployed to prod so the RA is enforcing key quality on account
rollover.

This removes `goodkey` from boulder-wfe2's JSON config. I've confirmed it's
unset in prod.

WFE's response to unrecognized key types changes slightly: it will list
ML-DSA-44 among the allowed signature algorithms in BadSignatureAlgorithmError
regardless of how the RA is configured. If the RA does not have ML-DSA-44
enabled, it will reject later in the flow with BadPublicKeyError.
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.

Support ML-DSA ACME account keys

3 participants