Skip to content

events: avoid implicitly setting context from login_failed event#21045

Merged
BeryJu merged 1 commit intomainfrom
stages/authenticator_validate/fix-event-ctx
Mar 20, 2026
Merged

events: avoid implicitly setting context from login_failed event#21045
BeryJu merged 1 commit intomainfrom
stages/authenticator_validate/fix-event-ctx

Conversation

@BeryJu
Copy link
Member

@BeryJu BeryJu commented Mar 20, 2026

backend fix related to #20804

previously login_failed events would just dump the device in the flow context, when they should be in auth_method_args

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu requested a review from a team as a code owner March 20, 2026 16:01
@netlify
Copy link

netlify bot commented Mar 20, 2026

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 5960f3b
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69bd6f65ee2eee0008a6b736
😎 Deploy Preview https://deploy-preview-21045--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
Copy link

codecov bot commented Mar 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.74%. Comparing base (e3ddc04) to head (5960f3b).
⚠️ Report is 5 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21045      +/-   ##
==========================================
- Coverage   92.79%   92.74%   -0.05%     
==========================================
  Files        1000     1000              
  Lines       56580    56582       +2     
  Branches      425      425              
==========================================
- Hits        52501    52478      -23     
- Misses       4079     4104      +25     
Flag Coverage Δ
conformance 37.39% <33.33%> (+<0.01%) ⬆️
e2e 42.89% <100.00%> (+<0.01%) ⬆️
integration 22.17% <33.33%> (-0.05%) ⬇️
rust 0.23% <ø> (ø)
unit 91.69% <100.00%> (+<0.01%) ⬆️
unit-migrate 91.79% <100.00%> (+<0.01%) ⬆️

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

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

@github-actions
Copy link
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-5960f3b46db58f28700bbb792c8fe271d194acb3
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-5960f3b46db58f28700bbb792c8fe271d194acb3

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

@BeryJu BeryJu added area:backend backport/version-2025.12 Add this label to PRs to backport changes to version-2025.12 backport/version-2026.2 Add this label to PRs to backport changes to version-2026.2 labels Mar 20, 2026
@BeryJu BeryJu merged commit 4c24691 into main Mar 20, 2026
111 checks passed
@BeryJu BeryJu deleted the stages/authenticator_validate/fix-event-ctx branch March 20, 2026 21:05
authentik-automation bot pushed a commit that referenced this pull request Mar 20, 2026
)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@authentik-automation
Copy link
Contributor

🍒 Cherry-pick to version-2025.12 created: #21049

@authentik-automation
Copy link
Contributor

🍒 Cherry-pick to version-2026.2 created: #21050

BeryJu added a commit that referenced this pull request Mar 20, 2026
…rry-pick #21045 to version-2026.2) (#21050)

events: avoid implicitly setting context from login_failed event (#21045)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: Jens L. <jens@goauthentik.io>
BeryJu added a commit that referenced this pull request Mar 20, 2026
…rry-pick #21045 to version-2025.12) (#21049)

events: avoid implicitly setting context from login_failed event (#21045)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: Jens L. <jens@goauthentik.io>
kensternberg-authentik added a commit that referenced this pull request Mar 24, 2026
* main: (41 commits)
  ci: rotate GH App private key (#21085)
  internal/web: remove authentication for metrics (#21077)
  lib/config: explicit some defaults (#21079)
  internal: remove unix sockets on shutdown (#21081)
  ci: fix escaping in cherry-pick action (#21082)
  lib/config: support printing multiple values (#21080)
  root: fix rust setup (#21078)
  core: bump types-docker from 7.1.0.20260109 to 7.1.0.20260322 (#21062)
  policies: remove BufferedPolicyAccessView leftovers (#21057)
  core: bump axllent/mailpit from v1.29.3 to v1.29.4 in /tests/e2e (#21061)
  core: bump types-channels from 4.3.0.20250822 to 4.3.0.20260321 (#21063)
  core: bump github.com/jackc/pgx/v5 from 5.8.0 to 5.9.1 (#21059)
  translate: Updates for project authentik and language fr_FR (#21056)
  ci: bump taiki-e/install-action from 2.69.2 to 2.69.6 in /.github/actions/setup (#21068)
  web: bump the storybook group across 1 directory with 5 updates (#21031)
  web: bump knip from 5.88.0 to 5.88.1 in /web (#21033)
  web: bump type-fest from 5.4.4 to 5.5.0 in /web (#21032)
  events: prevent exception when events contains incompatible unicode (#21048)
  web/admin: handle non-string values in formatUUID to prevent Event Log crash (#20804)
  events: avoid implicitly setting context from login_failed event (#21045)
  ...
kensternberg-authentik added a commit that referenced this pull request Mar 26, 2026
* main: (22 commits)
  ci: rotate GH App private key (#21085)
  internal/web: remove authentication for metrics (#21077)
  lib/config: explicit some defaults (#21079)
  internal: remove unix sockets on shutdown (#21081)
  ci: fix escaping in cherry-pick action (#21082)
  lib/config: support printing multiple values (#21080)
  root: fix rust setup (#21078)
  core: bump types-docker from 7.1.0.20260109 to 7.1.0.20260322 (#21062)
  policies: remove BufferedPolicyAccessView leftovers (#21057)
  core: bump axllent/mailpit from v1.29.3 to v1.29.4 in /tests/e2e (#21061)
  core: bump types-channels from 4.3.0.20250822 to 4.3.0.20260321 (#21063)
  core: bump github.com/jackc/pgx/v5 from 5.8.0 to 5.9.1 (#21059)
  translate: Updates for project authentik and language fr_FR (#21056)
  ci: bump taiki-e/install-action from 2.69.2 to 2.69.6 in /.github/actions/setup (#21068)
  web: bump the storybook group across 1 directory with 5 updates (#21031)
  web: bump knip from 5.88.0 to 5.88.1 in /web (#21033)
  web: bump type-fest from 5.4.4 to 5.5.0 in /web (#21032)
  events: prevent exception when events contains incompatible unicode (#21048)
  web/admin: handle non-string values in formatUUID to prevent Event Log crash (#20804)
  events: avoid implicitly setting context from login_failed event (#21045)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend backport/version-2025.12 Add this label to PRs to backport changes to version-2025.12 backport/version-2026.2 Add this label to PRs to backport changes to version-2026.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant