core: remove OldAuthenticatedSession content type#14507
Conversation
This was left out from #9736
Co-authored-by: Jens Langhammer <jens@goauthentik.io>
✅ Deploy Preview for authentik-docs canceled.
|
✅ Deploy Preview for authentik-storybook canceled.
|
|
/cherry-pick version-2025.4 |
|
|
||
| # Remove potential lingering old permissions | ||
| # See https://code.djangoproject.com/ticket/28417 | ||
| call_command("remove_stale_contenttypes", "--no-input") |
There was a problem hiding this comment.
Instead of using call_command this should be directly calling the command from from django.contrib.contenttypes.management.commands import remove_stale_contenttypes, also needs to be done in the with tenant: context manager
There was a problem hiding this comment.
Offline resolution:
with tenant: you're correctcall_command: we should use it instead of writing all the boilerplate
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-8ad79ff1421409a1c0bf7db3124bebcd47409d8e
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your 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-8ad79ff1421409a1c0bf7db3124bebcd47409d8eAfterwards, run the upgrade commands from the latest release notes. |
* core: remove `OldAuthenticatedSession` content type This was left out from #9736 * remove stale content types in `repair_permissions` Co-authored-by: Jens Langhammer <jens@goauthentik.io> * run `remove_stale_contenttypes` for each tenant --------- Co-authored-by: Jens Langhammer <jens@goauthentik.io>
…) (#14509) core: remove `OldAuthenticatedSession` content type (#14507) * core: remove `OldAuthenticatedSession` content type This was left out from #9736 * remove stale content types in `repair_permissions` * run `remove_stale_contenttypes` for each tenant --------- Co-authored-by: Simonyi Gergő <28359278+gergosimonyi@users.noreply.github.com> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #14507 +/- ##
=======================================
Coverage 92.74% 92.75%
=======================================
Files 809 809
Lines 41525 41525
=======================================
+ Hits 38514 38516 +2
+ Misses 3011 3009 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
* main: (60 commits) website: bump the build group in /website with 6 updates (#14502) core: remove `OldAuthenticatedSession` content type (#14507) core: bump msgraph-sdk from 1.29.0 to 1.30.0 (#14503) core: bump twilio from 9.6.0 to 9.6.1 (#14505) core: bump psycopg[c,pool] from 3.2.8 to 3.2.9 (#14504) enterprise: fix expired license's users being counted (#14451) website/integrations: fix missing closing brace for semaphore (#14467) tests/e2e: Add E2E tests for Flow SFE (#14484) website: bump semver from 7.7.1 to 7.7.2 in /website (#14491) core: bump django from 5.1.8 to 5.1.9 (#14483) core: bump psycopg[c,pool] from 3.2.7 to 3.2.8 (#14481) core: bump sentry-sdk from 2.27.0 to 2.28.0 (#14482) root: pin package version in pyproject for dependabot (#14469) core: fix session migration when old session can't be loaded (#14466) root: temporarily deactivate database pool option (#14443) website: bump the build group in /website with 3 updates (#14475) website/docs: stages: fix-typo (#14477) website/docs: Update Kubernetes Bootstrap Instructions (#14471) root: improve sentry distributed tracing (#14468) Revert "web/admin: fix enterprise menu display" (#14458) ...
Fixes #14437