Skip to content

sources/oauth: verify ML-DSA signed tokens - #27170

Merged
PeshekDotDev merged 3 commits into
mainfrom
sources/oauth-mldsa
Nov 5, 2026
Merged

PeshekDotDev merged 3 commits into
mainfrom
sources/oauth-mldsa

Conversation

@PeshekDotDev

Copy link
Copy Markdown
Contributor

Details

What does this PR change?

Why is this change needed?

How was this tested?

Linked issues


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)
  • I have read the AI usage policy.

@PeshekDotDev PeshekDotDev added this to the Release 2026.11.0 milestone Oct 26, 2026
@PeshekDotDev PeshekDotDev self-assigned this Oct 26, 2026
@PeshekDotDev
PeshekDotDev requested a review from a team as a code owner October 26, 2026 05:54
@netlify

netlify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 88c2d89
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6aeaee0b2bbce3a89d79b3b3
😎 Deploy Preview https://deploy-preview-27170--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@PeshekDotDev
PeshekDotDev added this pull request to stack #27173 October 26, 2026 06:00
@codecov

codecov Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.35979% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.96%. Comparing base (f8dde2e) to head (88c2d89).
⚠️ Report is 23 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/lib/jwt_mldsa.py 75.55% 22 Missing ⚠️
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              
Flag Coverage Δ
conformance 30.54% <20.10%> (-0.03%) ⬇️
e2e 35.27% <21.16%> (-0.04%) ⬇️
integration 27.71% <21.16%> (-0.34%) ⬇️
rust 51.12% <ø> (ø)
unit 94.52% <88.35%> (-0.01%) ⬇️
unit-migrate 94.53% <88.35%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

Download 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-report

Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

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)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

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-distroless

Afterwards, run the upgrade commands from the latest release notes.

@BeryJu BeryJu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

one nit otherwise lgtm

Comment thread authentik/lib/jwt_mldsa.py Outdated
Comment on lines +120 to +130
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)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would prefer this functions to be part of the MLDSAAlgorithm class

also is_mldsa_key shouldn't be a separate helper imo

@netlify

netlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 88c2d89
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6aeaee0bf4db37502eeb59e1
😎 Deploy Preview https://deploy-preview-27170--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 88c2d89
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6aeaee0bc513a5126bc0a065
😎 Deploy Preview https://deploy-preview-27170--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@PeshekDotDev
PeshekDotDev merged commit 314765a into main Nov 5, 2026
288 of 291 checks passed
@PeshekDotDev
PeshekDotDev deleted the sources/oauth-mldsa branch November 5, 2026 03:47
kensternberg-authentik added a commit that referenced this pull request Nov 5, 2026
* 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)
  ...
kensternberg-authentik added a commit that referenced this pull request Nov 5, 2026
* 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)
  ...
kensternberg-authentik added a commit that referenced this pull request Nov 5, 2026
* 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)
  ...
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.

2 participants