Repository navigation
stages/authenticator_validate: enforce code device restrictions - #26779
Merged
BeryJu merged 9 commits intoOct 14, 2026
Merged
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 #26779 +/- ##
==========================================
+ Coverage 91.90% 92.21% +0.31%
==========================================
Files 1181 1182 +1
Lines 78945 79056 +111
Branches 4351 4351
==========================================
+ Hits 72551 72903 +352
+ Misses 6328 6087 -241
Partials 66 66
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
jsachs
marked this pull request as ready for review
October 8, 2026 12:01
BeryJu
reviewed
Oct 14, 2026
BeryJu
approved these changes
Oct 14, 2026
kensternberg-authentik
added a commit
that referenced
this pull request
Oct 15, 2026
* main: (86 commits) ci: switch version bump to action, like platform repo (#26949) core, web: update translations (#26940) ci: bump actions/create-github-app-token from 3.2.0 to 3.3.0 (#26946) ci: bump taiki-e/install-action from 2.87.27 to 2.87.28 in /.github/actions/setup (#26947) core: bump hyper-unix-socket from 0.6.1 to 0.7.0 (#26945) core: bump goauthentik/selenium from 152.0-ak-0.71.0 to 152.0-ak-0.72.0 in /tests/e2e (#26943) core: bump goauthentik/platform-ssh from 26.04-ak-0.71.0 to 26.04-ak-0.72.0 in /tests/e2e (#26944) core: keep the current login when adding a user after a stale session save (#26765) flows: fix blip of un-templated flow title placeholder (#26905) website/docs: Version 2026.8.4 Release Notes (cherry-pick #26934 to main) (#26939) core: bump rust-toolchain from 1.98.1 to 1.99.0 (#26634) stages/authenticator_validate: enforce code device restrictions (#26779) website/docs: Expand docs on aws installation (#26812) web: Add alert when JavaScript is disabled. (#26921) website: remove the docs glossary (#26930) core: bump axllent/mailpit from v1.31.4 to v1.31.5 in /tests/e2e (#26907) core: bump astral-sh/uv from 0.13.0 to 0.13.1 in /lifecycle/container (#26909) core: bump serde_json from 1.0.151 to 1.0.154 (#26911) core: bump the types group with 2 updates (#26912) core: bump aws-lc-rs from 1.18.1 to 1.18.2 (#26913) ...
kensternberg-authentik
added a commit
that referenced
this pull request
Oct 19, 2026
* main: (144 commits) ci: switch version bump to action, like platform repo (#26949) core, web: update translations (#26940) ci: bump actions/create-github-app-token from 3.2.0 to 3.3.0 (#26946) ci: bump taiki-e/install-action from 2.87.27 to 2.87.28 in /.github/actions/setup (#26947) core: bump hyper-unix-socket from 0.6.1 to 0.7.0 (#26945) core: bump goauthentik/selenium from 152.0-ak-0.71.0 to 152.0-ak-0.72.0 in /tests/e2e (#26943) core: bump goauthentik/platform-ssh from 26.04-ak-0.71.0 to 26.04-ak-0.72.0 in /tests/e2e (#26944) core: keep the current login when adding a user after a stale session save (#26765) flows: fix blip of un-templated flow title placeholder (#26905) website/docs: Version 2026.8.4 Release Notes (cherry-pick #26934 to main) (#26939) core: bump rust-toolchain from 1.98.1 to 1.99.0 (#26634) stages/authenticator_validate: enforce code device restrictions (#26779) website/docs: Expand docs on aws installation (#26812) web: Add alert when JavaScript is disabled. (#26921) website: remove the docs glossary (#26930) core: bump axllent/mailpit from v1.31.4 to v1.31.5 in /tests/e2e (#26907) core: bump astral-sh/uv from 0.13.0 to 0.13.1 in /lifecycle/container (#26909) core: bump serde_json from 1.0.151 to 1.0.154 (#26911) core: bump the types group with 2 updates (#26912) core: bump aws-lc-rs from 1.18.1 to 1.18.2 (#26913) ...
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.
Authenticator validation stages filtered device classes when generating challenges, but code validation still tried every enrolled device. This allowed a valid TOTP code to satisfy an email-only stage despite TOTP being explicitly excluded.
We now restrict code verification to devices permitted by both the stage configuration and its issued challenges:
Add regression coverage for device restrictions and an end-to-end flow test confirming that an email-only stage rejects a valid TOTP code and subsequently accepts the email code.
Closes #26753