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
A moderate documentation issue remains because the ML-DSA guidance is incompatible with the currently supported Node and jose versions, potentially causing users to encounter unsupported-algorithm failures.
1 open issue
What changed in this PR
Documents supported JWT signature algorithms for the zero-cache Auth JWK configuration, including ML-DSA-65.
Changes:
- Adds jose algorithm and ML-DSA-65 guidance.
- Regenerates the documentation search index.
| File | Description |
|---|---|
| contents/docs/zero-cache-config.mdx | Adds algorithm support and ML-DSA-65 guidance to the Auth JWK documentation. |
| assets/search-index.json | Updates the search index for the revised Auth JWK 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. |
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 do sit 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 onmaintoo — verified by running it againstorigin/mainin a clean worktree:panic: unknown rule: no-useless-default-assignmentfrom tsgolint, an oxlint / oxlint-tsgolint version mismatch. Unrelated to this change, which touches no TypeScript.check-format,check-types,testandbuildall pass.Supersedes #339, which carried an unsigned commit (the signed-author check rejected it) and which I could not force-push over.