Skip to content

stages: fix crashes found by ty - #28398

Draft
jsachs wants to merge 1 commit into
t3/ty-fix-sourcesfrom
t3/ty-fix-stages
Draft

jsachs wants to merge 1 commit into
t3/ty-fix-sourcesfrom
t3/ty-fix-stages

Conversation

@jsachs

@jsachs jsachs commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Details

What does this PR change?

  • Identification stage: a posted passkey is rejected when no WebAuthn stage is configured. It used to be validated against the identification stage, which failed with AttributeError (a 500; it failed closed).
  • WebAuthn MDS import: entries without a metadata statement are skipped instead of aborting the whole import.

Why is this change needed?

ty flagged both in #28395, where they were marked TODO(ty).

How was this tested?

  • A new identification test covers the passkey case. It fails without the fix and passes with it.
  • The MDS change has no dedicated test.
  • The identification, authenticator_validate and authenticator_webauthn suites pass (115 tests).
  • ty check passes.

Linked issues

refs #28395

- identification: reject a posted passkey when no WebAuthn stage is
  configured, instead of validating it against the identification stage
  and failing with an AttributeError
- authenticator_webauthn: skip MDS entries without a metadata statement
  instead of aborting the whole import
@jsachs
jsachs added this pull request to stack #28400 December 2, 2026 03:14
@netlify

netlify Bot commented Dec 2, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 57f1536
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6b0f8c7c7bb3aa2891dd6d03
😎 Deploy Preview https://deploy-preview-28398--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 Dec 2, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 57f1536
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6b0f8c7c0d8d974bf03dc8d4
😎 Deploy Preview https://deploy-preview-28398--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.

@codecov

codecov Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.11765% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 93.75%. Comparing base (9f8adac) to head (57f1536).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/stages/authenticator_webauthn/tasks.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@                  Coverage Diff                  @@
##           t3/ty-fix-sources   #28398      +/-   ##
=====================================================
+ Coverage              93.67%   93.75%   +0.08%     
=====================================================
  Files                   1263     1263              
  Lines                  91677    91691      +14     
  Branches                5752     5752              
=====================================================
+ Hits                   85880    85969      +89     
+ Misses                  5711     5636      -75     
  Partials                  86       86              
Flag Coverage Δ
conformance 29.27% <5.88%> (-0.01%) ⬇️
e2e 33.74% <11.76%> (+0.40%) ⬆️
integration 26.60% <5.88%> (-0.01%) ⬇️
rust 62.37% <ø> (ø)
unit 94.96% <94.11%> (+<0.01%) ⬆️
unit-migrate 94.96% <94.11%> (-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 Dec 2, 2026

Copy link
Copy Markdown
Contributor

Playwright e2e

Download this run's HTML report and traces, then open the report:

gh run download 46801098668 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-report

This branch has not been deployed

No deployments
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.

1 participant