Skip to content

core: clear expired database sessions#13105

Merged
BeryJu merged 1 commit intomainfrom
core/clear-expired-db-sessions
Feb 18, 2025
Merged

core: clear expired database sessions#13105
BeryJu merged 1 commit intomainfrom
core/clear-expired-db-sessions

Conversation

@BeryJu
Copy link
Member

@BeryJu BeryJu commented Feb 18, 2025

Details

clear expired DB sessions on cleanup task


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 website)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu requested a review from a team as a code owner February 18, 2025 18:37
@BeryJu
Copy link
Member Author

BeryJu commented Feb 18, 2025

/cherry-pick version-2025.2

@netlify
Copy link

netlify bot commented Feb 18, 2025

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit cac0c96
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/67b4d36851854d00080369b8

@netlify
Copy link

netlify bot commented Feb 18, 2025

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit cac0c96
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/67b4d368a6b8950008134654

@codecov
Copy link

codecov bot commented Feb 18, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 92.80%. Comparing base (12f1624) to head (cac0c96).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/core/tasks.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13105   +/-   ##
=======================================
  Coverage   92.80%   92.80%           
=======================================
  Files         792      792           
  Lines       40218    40220    +2     
=======================================
+ Hits        37325    37327    +2     
  Misses       2893     2893           
Flag Coverage Δ
e2e 48.23% <0.00%> (+0.04%) ⬆️
integration 24.48% <0.00%> (-0.01%) ⬇️
unit 90.51% <50.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-cac0c9622de98d550f116072819ec78387dd647d
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-cac0c9622de98d550f116072819ec78387dd647d

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

@BeryJu BeryJu merged commit 85343fa into main Feb 18, 2025
89 of 90 checks passed
@BeryJu BeryJu deleted the core/clear-expired-db-sessions branch February 18, 2025 19:40
gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Feb 18, 2025
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
BeryJu added a commit that referenced this pull request Feb 18, 2025
core: clear expired database sessions (#13105)

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 Feb 20, 2025
* main:
  web/user: fix opening application with Enter not respecting new tab setting (#13115)
  web: bump API Client version (#13113)
  providers/rac: move to open source (#13015)
  website/docs: add 2025.2 release notes (#13002)
  core: clear expired database sessions (#13105)
  core: bump sentry-sdk from 2.21.0 to 2.22.0 (#13098)
  core: bump bandit from 1.8.2 to 1.8.3 (#13097)
  core: bump aws-cdk-lib from 2.178.2 to 2.179.0 (#13099)
  core: bump goauthentik.io/api/v3 from 3.2024123.4 to 3.2024123.6 (#13100)
  lifecycle/aws: bump aws-cdk from 2.178.2 to 2.179.0 in /lifecycle/aws (#13101)
  website/docs: Add AdventureLog Community Integration Documentation (#12928)
  website/docs: minor fixes (#13095)
  website/integrations: Update to Wizard and Styling Guide (#12919)
  web: bump API Client version (#13093)
  policies/geoip: distance + impossible travel (#12541)
  root: fix generated API docs not being excluded from codespell (#13091)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants