Skip to content

stages/consent: fix integrity error when re-consenting after consent expired (cherry-pick #26866 to version-2026.8) - #26870

Merged
BeryJu merged 1 commit into
version-2026.8from
cherry-pick/26866-to-version-2026.8
Oct 13, 2026
Merged

BeryJu merged 1 commit into
version-2026.8from
cherry-pick/26866-to-version-2026.8

Conversation

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

Cherry-pick of #26866 to version-2026.8 branch.

Original PR: #26866
Original Author: @DeviousCardi
Cherry-picked commit: 41f6fb9

…expired (#26866)

Since #18274, the default manager of expiring models excludes expired
objects instead of `filter_not_expired()` deleting them. The consent stage
therefore no longer finds an expired consent, and creates a new one, which
conflicts with the expired consent's unique (user, application, permissions)
key until `clean_expired_models` removes it.

Remove expired consents for the user and application before saving.

Closes #24466
@netlify

netlify Bot commented Oct 13, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit ed1e5fc
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6ace1b4a9318d329cac99430
😎 Deploy Preview https://deploy-preview-26870--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 Oct 13, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit ed1e5fc
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6ace1b4a27f7360c3a10890e
😎 Deploy Preview https://deploy-preview-26870--authentik-integrations.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 Oct 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.03%. Comparing base (23ded85) to head (ed1e5fc).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                Coverage Diff                 @@
##           version-2026.8   #26870      +/-   ##
==================================================
+ Coverage           91.46%   92.03%   +0.56%     
==================================================
  Files                1162     1162              
  Lines               75101    75125      +24     
  Branches             4129     4129              
==================================================
+ Hits                68691    69140     +449     
+ Misses               6344     5919     -425     
  Partials               66       66              
Flag Coverage Δ
conformance 33.72% <0.00%> (-0.02%) ⬇️
e2e 38.35% <4.16%> (?)
integration 30.39% <0.00%> (-0.01%) ⬇️
rust 46.45% <ø> (ø)
unit 93.46% <100.00%> (+<0.01%) ⬆️
unit-migrate 93.46% <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 Harness.
📢 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-ed1e5fc88adfa46d725ce16aa68974d01f28ec18
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-ed1e5fc88adfa46d725ce16aa68974d01f28ec18

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

@BeryJu
BeryJu merged commit 756b159 into version-2026.8 Oct 13, 2026
138 checks passed
@BeryJu
BeryJu deleted the cherry-pick/26866-to-version-2026.8 branch October 13, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant