Skip to content

core: set days=1 as default token duration for new installs - #25341

Merged
rissson merged 1 commit into
mainfrom
fix/token
Aug 21, 2026
Merged

rissson merged 1 commit into
mainfrom
fix/token

Conversation

@melizeche

Copy link
Copy Markdown
Member

Closes #25236

DEFAULT_TOKEN_DURATION has been days=1 since #9426, but no default tenant ever got it. 0001 creates the tenant row, 0002 backfills minutes=30 into it, and 0003 only changes the default for rows inserted later.

This sets the default in 0002 instead, as discussed in the issue. New installs get days=1, existing ones are untouched.


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)

@melizeche melizeche self-assigned this Aug 19, 2026
@melizeche
melizeche requested a review from a team as a code owner August 19, 2026 20:22
@melizeche melizeche added the backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 label Aug 19, 2026
@melizeche melizeche added the backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 label Aug 19, 2026
@netlify

netlify Bot commented Aug 19, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 9cca763
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a8610a40792ac0008988ef9
😎 Deploy Preview https://deploy-preview-25341--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 Aug 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.53%. Comparing base (254d60c) to head (9cca763).
⚠️ Report is 17 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #25341      +/-   ##
==========================================
- Coverage   91.57%   91.53%   -0.04%     
==========================================
  Files        1151     1151              
  Lines       73134    73134              
  Branches     3923     3923              
==========================================
- Hits        66972    66943      -29     
- Misses       6126     6155      +29     
  Partials       36       36              
Flag Coverage Δ
conformance 34.50% <ø> (+<0.01%) ⬆️
e2e 39.17% <ø> (-0.03%) ⬇️
integration 30.63% <ø> (-0.45%) ⬇️
rust 39.73% <ø> (ø)
unit 93.20% <ø> (+<0.01%) ⬆️
unit-migrate 93.22% <ø> (+<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-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Aug 19, 2026
@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-9cca763c407d4730a92aa5a7f45034c62d9b44eb
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-9cca763c407d4730a92aa5a7f45034c62d9b44eb

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

@rissson
rissson merged commit 285a1d8 into main Aug 21, 2026
235 of 239 checks passed
@rissson
rissson deleted the fix/token branch August 21, 2026 13:27
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Aug 21, 2026
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #25385

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.5 created: #25386

rissson pushed a commit that referenced this pull request Aug 21, 2026
…ick #25341 to version-2026.5) (#25386)

Co-authored-by: Marcelo Elizeche Landó <[email protected]>
rissson pushed a commit that referenced this pull request Aug 21, 2026
…ick #25341 to version-2026.8) (#25385)

Co-authored-by: Marcelo Elizeche Landó <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

default_token_duration bump to days=1 never applied to existing tenants

2 participants