Skip to content

providers/oauth2: avoid deadlock during session migration#16361

Merged
rissson merged 1 commit intomainfrom
oauth2-session-migration-deadlock
Aug 25, 2025
Merged

providers/oauth2: avoid deadlock during session migration#16361
rissson merged 1 commit intomainfrom
oauth2-session-migration-deadlock

Conversation

@rissson
Copy link
Copy Markdown
Member

@rissson rissson commented Aug 25, 2025

Details

backport to 2025.4, 2025.6 and 2025.8


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 has been updated (make gen-build)

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)

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
@rissson rissson requested a review from a team as a code owner August 25, 2025 14:39
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 25, 2025

Deploy Preview for authentik-integrations canceled.

Name Link
🔨 Latest commit af64b38
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/68ac75b460d7490008b0d960

@netlify
Copy link
Copy Markdown

netlify bot commented Aug 25, 2025

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit af64b38
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/68ac75b408faa80008233126
😎 Deploy Preview https://deploy-preview-16361--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.

@netlify
Copy link
Copy Markdown

netlify bot commented Aug 25, 2025

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit af64b38
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/68ac75b477040f00089ee3df

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.73%. Comparing base (80e9865) to head (af64b38).
⚠️ Report is 22 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16361      +/-   ##
==========================================
- Coverage   92.78%   92.73%   -0.06%     
==========================================
  Files         838      838              
  Lines       45290    45290              
==========================================
- Hits        42024    42000      -24     
- Misses       3266     3290      +24     
Flag Coverage Δ
e2e 46.60% <ø> (+0.01%) ⬆️
integration 23.47% <ø> (-0.06%) ⬇️
unit 90.93% <ø> (+<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
Copy Markdown
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-af64b389df68365e810fedc2e5b5c318a6b036c7
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-af64b389df68365e810fedc2e5b5c318a6b036c7

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

@rissson rissson merged commit 197f4c5 into main Aug 25, 2025
161 of 166 checks passed
@rissson rissson deleted the oauth2-session-migration-deadlock branch August 25, 2025 15:48
kensternberg-authentik added a commit that referenced this pull request Aug 26, 2025
* main:
  providers/oauth2: avoid deadlock during session migration (#16361)
  lifecycle/aws: bump aws-cdk from 2.1025.0 to 2.1026.0 in /lifecycle/aws (#16352)
  core: bump github.com/stretchr/testify from 1.10.0 to 1.11.0 (#16357)
  core: bump axllent/mailpit from v1.27.5 to v1.27.6 in /tests/e2e (#16358)
  website/docs: fix missing trailing slash in vaultwarden documentation (#16348)
  root: fix security.md (#16345)
  root: update security.md with github reporting link (#16332)
  website/docs: 2025.8.1 release notes (#16343)
  packages/django-dramatiq-postgres: broker: fix various timing issues (#16340)
  website/docs: adds details to certificates doc (#16335)
  outposts: allow ingress path type configuration (#16339)
  core, web: update translations (#16321)
  outposts: fix service connection update task arguments (#16312)
  core: use email backend for test_email management command (#16311)
  core: bump astral-sh/uv from 0.8.12 to 0.8.13 (#16325)
  website: Move docs netlify.toml (#16320)
  website/docs: add link in 2025.8 rel notes to back-channel logout docs (#16306)
  packages/django-dramatiq-postgres: middleware: fix listening on hosts where ipv6 is not supported (#16308)
  website: Fix version origin detection, build-time URLs  (#15774)
  web/a11y: Associating labels with inputs (#16119)
@BeryJu BeryJu added backport/version-2025.8 Add this label to PRs to backport changes to version-2025.8 backport/version-2025.6 and removed backport/version-2025.8 Add this label to PRs to backport changes to version-2025.8 backport/version-2025.6 labels Aug 26, 2025
@BeryJu BeryJu added backport/version-2025.8 Add this label to PRs to backport changes to version-2025.8 backport/version-2025.6 and removed backport/version-2025.6 labels Aug 26, 2025
@BeryJu BeryJu added backport/version-2025.8 Add this label to PRs to backport changes to version-2025.8 backport/version-2025.6 and removed backport/version-2025.8 Add this label to PRs to backport changes to version-2025.8 backport/version-2025.6 labels Aug 26, 2025
@authentik-automation
Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2025.6 created: ##16378

@BeryJu BeryJu added backport/version-2025.8 Add this label to PRs to backport changes to version-2025.8 backport/version-2025.4 and removed backport/version-2025.8 Add this label to PRs to backport changes to version-2025.8 labels Aug 26, 2025
@authentik-automation
Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2025.4 created: ##16380

rissson added a commit that referenced this pull request Aug 29, 2025
…#16361) (#16378)

Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
rissson added a commit that referenced this pull request Aug 29, 2025
…#16361) (#16380)

Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/version-2025.8 Add this label to PRs to backport changes to version-2025.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants