Repository navigation
sources/oauth: verify ML-DSA signed tokens - #27170
Conversation
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #27170 +/- ##
==========================================
- Coverage 93.00% 92.96% -0.04%
==========================================
Files 1226 1227 +1
Lines 85235 85418 +183
Branches 4894 4894
==========================================
+ Hits 79270 79407 +137
- Misses 5878 5924 +46
Partials 87 87
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Playwright e2eDownload this run's HTML report and traces, then open the report: gh run download 41800527612 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-reportInstallation instructionsInstructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-88c2d89185b2e90c22937a0ad37a31019ecc3f21
# Distroless image: AUTHENTIK_TAG=gh-88c2d89185b2e90c22937a0ad37a31019ecc3f21-distroless
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-88c2d89185b2e90c22937a0ad37a31019ecc3f21
# Distroless image: tag: gh-88c2d89185b2e90c22937a0ad37a31019ecc3f21-distrolessAfterwards, run the upgrade commands from the latest release notes. |
| def algorithm_for_key(key: Any) -> str: | ||
| """Return the JOSE algorithm name for an ML-DSA key, or raise ValueError""" | ||
| for name, classes in MLDSA_ALGORITHMS.items(): | ||
| if isinstance(key, classes): | ||
| return name | ||
| raise ValueError(f"Not an ML-DSA key: {type(key).__name__}") | ||
|
|
||
|
|
||
| def is_mldsa_key(key: Any) -> bool: | ||
| """Whether the key is an ML-DSA private or public key""" | ||
| return isinstance(key, MLDSAKey) |
There was a problem hiding this comment.
Would prefer this functions to be part of the MLDSAAlgorithm class
also is_mldsa_key shouldn't be a separate helper imo
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
93e9d13 to
88c2d89
Compare
* main: (313 commits) web/admin: fix ldap source parent group form (#26421) stages/prompt: preserve empty initial values (#25148) core: batch expired cache and channel record cleanup (#27587) web: bump mermaid from 11.16.0 to 12.3.0 in /website (#27598) ci: bump taiki-e/install-action from 2.89.0 to 2.89.1 in /.github/actions/setup (#27630) core: bump goauthentik/fips-python from `d4c46c4` to `69e7058` in /lifecycle/container (#27626) ci: bump AndreKurait/docker-cache from 0.7.0 to 0.7.1 in /.github/actions/setup (#27628) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 in /.github/actions/setup (#27629) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 (#27627) providers/oauth2: sign tokens with ML-DSA keys (#27172) sources/oauth: verify ML-DSA signed tokens (#27170) web: bump postcss from 8.5.18 to 8.5.32 in /website (#27602) web: bump postcss from 8.5.16 to 8.5.32 in /web (#27604) web/element: fix missing line break between elapsed time and displayed time. (#27624) web/elements: rename ak-codemirror to ak-code-editor (#27406) website/integrations: add Google Cloud Workforce Identity Federation guide (#27571) root: test that FIPS mode refuses non-approved algorithms (#27536) web: bump nanoid from 3.3.16 to 3.3.20 in /website (#27599) web: bump baseline-browser-mapping from 2.10.43 to 2.11.35 in /website (#27600) web: bump mermaid from 11.16.1 to 11.17.2 in /web (#27603) ...
* main: (1729 commits) web/admin: fix ldap source parent group form (#26421) stages/prompt: preserve empty initial values (#25148) core: batch expired cache and channel record cleanup (#27587) web: bump mermaid from 11.16.0 to 12.3.0 in /website (#27598) ci: bump taiki-e/install-action from 2.89.0 to 2.89.1 in /.github/actions/setup (#27630) core: bump goauthentik/fips-python from `d4c46c4` to `69e7058` in /lifecycle/container (#27626) ci: bump AndreKurait/docker-cache from 0.7.0 to 0.7.1 in /.github/actions/setup (#27628) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 in /.github/actions/setup (#27629) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 (#27627) providers/oauth2: sign tokens with ML-DSA keys (#27172) sources/oauth: verify ML-DSA signed tokens (#27170) web: bump postcss from 8.5.18 to 8.5.32 in /website (#27602) web: bump postcss from 8.5.16 to 8.5.32 in /web (#27604) web/element: fix missing line break between elapsed time and displayed time. (#27624) web/elements: rename ak-codemirror to ak-code-editor (#27406) website/integrations: add Google Cloud Workforce Identity Federation guide (#27571) root: test that FIPS mode refuses non-approved algorithms (#27536) web: bump nanoid from 3.3.16 to 3.3.20 in /website (#27599) web: bump baseline-browser-mapping from 2.10.43 to 2.11.35 in /website (#27600) web: bump mermaid from 11.16.1 to 11.17.2 in /web (#27603) ...
* main: (28 commits) events: bundle DB-IP Lite GeoIP databases instead of MaxMind GeoLite2 (#27102) web/admin: fix ldap source parent group form (#26421) stages/prompt: preserve empty initial values (#25148) core: batch expired cache and channel record cleanup (#27587) web: bump mermaid from 11.16.0 to 12.3.0 in /website (#27598) ci: bump taiki-e/install-action from 2.89.0 to 2.89.1 in /.github/actions/setup (#27630) core: bump goauthentik/fips-python from `d4c46c4` to `69e7058` in /lifecycle/container (#27626) ci: bump AndreKurait/docker-cache from 0.7.0 to 0.7.1 in /.github/actions/setup (#27628) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 in /.github/actions/setup (#27629) ci: bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 (#27627) providers/oauth2: sign tokens with ML-DSA keys (#27172) sources/oauth: verify ML-DSA signed tokens (#27170) web: bump postcss from 8.5.18 to 8.5.32 in /website (#27602) web: bump postcss from 8.5.16 to 8.5.32 in /web (#27604) web/element: fix missing line break between elapsed time and displayed time. (#27624) web/elements: rename ak-codemirror to ak-code-editor (#27406) website/integrations: add Google Cloud Workforce Identity Federation guide (#27571) root: test that FIPS mode refuses non-approved algorithms (#27536) web: bump nanoid from 3.3.16 to 3.3.20 in /website (#27599) web: bump baseline-browser-mapping from 2.10.43 to 2.11.35 in /website (#27600) ...
Details
What does this PR change?
Why is this change needed?
How was this tested?
Linked issues
Checklist
make all)make docs)