Repository navigation
Conversation
The JWK passed to --auth-jwk is handed to jose without an algorithms allowlist, so verification accepts whatever algorithm the configured key declares. Say so in the Auth JWK entry and call out post-quantum ML-DSA-65 specifically, along with the experimental-feature warning Node prints for it.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
🟡 Changes recommended
An active documentation issue incorrectly describes ML-DSA key support for the repository’s pinned jose and Node versions, which could mislead users about runtime verification.
1 open issue
What changed in this PR
Documents jose-supported JWT algorithms for the Auth JWK configuration, including ML-DSA-65.
Changes:
- Added ML-DSA-65 and experimental-warning guidance.
- Regenerated the search index.
| File | Description |
|---|---|
| contents/docs/zero-cache-config.mdx | Adds documentation that Auth JWK signatures may use jose-supported algorithms, including ML-DSA-65. |
| assets/search-index.json | Updates the generated search index for the revised documentation. |
Review effort: Lite
|
|
||
| A public key in JWK format used to verify JWTs. Only one of jwk, jwksUrl and secret may be set. | ||
|
|
||
| Any signature algorithm supported by [jose](https://github.com/panva/jose) may be used, including the post-quantum ML-DSA-65 (`kty: "AKP"`). Node prints an experimental-feature warning the first time an ML-DSA key is used. |
Contributor
Author
|
Superseded by #340, which carries the same change on a properly signed commit. The commit on this branch was unsigned and the Verify Signed Commit Authors check rejected it. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds one sentence to the Auth JWK entry in
contents/docs/zero-cache-config.mdx:This comes out of a post-quantum crypto audit finding on zero-cache's JWT verification. No engine change was needed:
packages/zero-cache/src/auth/jwt.tspasses the configured JWK tojwtVerifywithout pinning analgorithmsallowlist, so the accepted algorithm is simply whatever the key declares. Verified empirically on Node 24.18.0 with jose 6.2.19 — an ML-DSA-65 JWT signs and verifies through exactly the shape of call zero-cache makes, with the exported JWK coming back askty: "AKP"/alg: "ML-DSA-65", and Node emittingExperimentalWarning: The ML-DSA-65 Web Crypto API algorithm is an experimental feature and might change at any time.Release caveat — please read before merging
ML-DSA support requires Node 24 and jose 6, both of which landed on
mono-internalmainonly today (2026-12-04) and are not in any tagged release yet. Latest stable iszero/v1.12.0; latest canary iszero/v1.13.0-canary.4— neither contains jose 6.So this sentence is true only from whichever release first ships jose 6. This doc change should land with or after that release, not before it. I deliberately did not guess a version number in the doc text; a reviewer may want to add one (e.g. "as of Zero x.y") once that release is cut.
Scope
Only the Auth JWK entry is touched.
assets/search-index.jsonis the regenerated search index, as in previous docs PRs.Two things noticed but deliberately left alone:
jwk,jwksUrl,secretandissuerare all markeddeprecatedinpackages/zero-cache/src/config/zero-config.tsin favour of cookie or auth-token authentication, and this page does not say so. (These entries are under the page's Deprecated Flags heading, but with no per-entry note explaining what to use instead, unlike the other entries in that section.) Documenting that was considered and ruled out for this change.pnpm lintcrashes in this repo onmainas well, independent of this change:panic: unknown rule: no-useless-default-assignmentfrom tsgolint, an oxlint / oxlint-tsgolint version mismatch.check-format,check-types,testandbuildall pass.