Skip to content

core: add logging when session decode fails - #21514

Merged
rissson merged 2 commits into
goauthentik:mainfrom
nalves599:log-failed-decode
Apr 9, 2026
Merged

rissson merged 2 commits into
goauthentik:mainfrom
nalves599:log-failed-decode

Conversation

@nalves599

Copy link
Copy Markdown
Contributor

Details

When a session decode fails it doesn't log any message making the debug harder. This PR improves logging when the decode fails.

Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema and clients have been updated (make gen)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make docs)

@nalves599
nalves599 requested a review from a team as a code owner April 9, 2026 13:32
@nalves599
nalves599 force-pushed the log-failed-decode branch from 3a7e762 to ee2f40b Compare April 9, 2026 13:33
@netlify

netlify Bot commented Apr 9, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 3a7e762
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69d7aa69fa840c00080a0d22
😎 Deploy Preview https://deploy-preview-21514--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 Apr 9, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 92.19%. Comparing base (2cd1620) to head (7ac18d7).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
authentik/core/sessions.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21514      +/-   ##
==========================================
- Coverage   92.26%   92.19%   -0.08%     
==========================================
  Files        1033     1033              
  Lines       59675    59676       +1     
  Branches     2537     2537              
==========================================
- Hits        55062    55021      -41     
- Misses       4548     4590      +42     
  Partials       65       65              
Flag Coverage Δ
conformance 37.01% <0.00%> (+<0.01%) ⬆️
e2e 42.94% <0.00%> (-0.01%) ⬇️
integration 33.42% <0.00%> (-0.52%) ⬇️
rust 60.62% <ø> (+0.11%) ⬆️
unit 91.51% <0.00%> (-0.38%) ⬇️
unit-migrate 91.95% <0.00%> (+1.32%) ⬆️

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.

@rissson rissson self-assigned this Apr 9, 2026
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Apr 9, 2026
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@rissson
rissson merged commit 92fceb1 into goauthentik:main Apr 9, 2026
103 of 104 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Apr 9, 2026
kensternberg-authentik added a commit that referenced this pull request Apr 10, 2026
* main: (455 commits)
  web/e2e: accept options in NavigatorFixture.waitForPathname (#21507)
  web/styles: switch to upstream RedHat variable fonts and brighten orange palette (#21509)
  web/styles: add ak-c-loading-skeleton CSS component (#21510)
  core, web: update translations (#21532)
  core: bump lxml from 6.0.2 to 6.0.3 (#21523)
  core: bump library/node from `45babd1` to `9707cd4` in /lifecycle/container (#21522)
  tasks: better error message for Retry exceptions (#18235)
  web/admin: fix user list avatar (#21531)
  core: bump django from v5.2.12 to 5.2.13 (#21520)
  core: add cooldown to dependabot (#21286)
  web/admin: include avatar in user list page (#21518)
  events: add index on Event.user.pk (#19576)
  ci: always run apt update (#21516)
  enterprise/search: move QL to open source] (#21484)
  core: add logging when session decode fails (#21514)
  website/docs: Refactor email configuration (#21130)
  core: bump types-ldap3 from 2.9.13.20260402 to 2.9.13.20260408 (#21493)
  packages/ak-common/db: init (#21357)
  packages/ak-axum/extract/host: init (#21323)
  web: bump knip from 6.3.0 to 6.3.1 in /web (#21505)
  ...
davepgreene pushed a commit to davepgreene/authentik that referenced this pull request Apr 13, 2026
davepgreene pushed a commit to davepgreene/authentik that referenced this pull request Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants