Skip to content

root: deprecate non-UTF8 database encoding - #25517

Merged
dominic-r merged 11 commits into
mainfrom
dominic/db-encoding-error
Aug 31, 2026
Merged

dominic-r merged 11 commits into
mainfrom
dominic/db-encoding-error

Conversation

@dominic-r

Copy link
Copy Markdown
Member

authentik has required a UTF8 database since 2025.8 but only warned about it, letting installs run until something downstream failed on bytes it could not decode. The system check now fails startup and points at the docs.

Closes: #25495

@dominic-r dominic-r added this to the Release 2026.11.0: Required milestone Aug 26, 2026
@dominic-r dominic-r self-assigned this Aug 26, 2026
@dominic-r
dominic-r requested review from a team as code owners August 26, 2026 17:03
@dominic-r dominic-r added area:backend area:docs Features or issues related to Docusaurus labels Aug 26, 2026
@netlify

netlify Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit d4b4a20
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a905422cd6d710008f89e81
😎 Deploy Preview https://deploy-preview-25517--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 Aug 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 6ce1ace
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a957454312ae50008bc1eb2
😎 Deploy Preview https://deploy-preview-25517--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.

@netlify

netlify Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 6ce1ace
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a957454ca12fe0008ad6f0d
😎 Deploy Preview https://deploy-preview-25517--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.

@dominic-r
dominic-r force-pushed the dominic/db-encoding-error branch from 40a0c0e to 809d9aa Compare August 26, 2026 17:07
authentik has required a UTF8 database since 2025.8 but only warned about it,
letting installs run until something downstream failed on bytes it could not
decode. The system check now fails startup and points at the docs.

Closes: #25495
@dominic-r
dominic-r force-pushed the dominic/db-encoding-error branch from 809d9aa to 09ed155 Compare August 26, 2026 17:10

@dewi-tik dewi-tik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs LGTM

@codecov

codecov Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.70%. Comparing base (8929903) to head (6ce1ace).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #25517      +/-   ##
==========================================
+ Coverage   91.68%   91.70%   +0.01%     
==========================================
  Files        1152     1152              
  Lines       73503    73504       +1     
  Branches     4054     4054              
==========================================
+ Hits        67392    67407      +15     
+ Misses       6069     6055      -14     
  Partials       42       42              
Flag Coverage Δ
conformance 34.39% <100.00%> (+0.01%) ⬆️
e2e 39.03% <100.00%> (+0.08%) ⬆️
integration 30.98% <100.00%> (+0.01%) ⬆️
rust 42.92% <ø> (ø)
unit 93.25% <100.00%> (+0.01%) ⬆️
unit-migrate 93.26% <100.00%> (+0.02%) ⬆️

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

github-actions Bot commented Aug 26, 2026 •

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-6ce1ace064b35c413e580f9ee0913c33dbf1961f
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-6ce1ace064b35c413e580f9ee0913c33dbf1961f

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

@gergosimonyi gergosimonyi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two thoughts

  1. We should create deprecation events for a release or two before just failing.
  2. The rest of _check_encoding can be removed after this, right? Django client encoding defaults to UTF8 anyway.

@dominic-r
dominic-r force-pushed the dominic/db-encoding-error branch from 96556b5 to d4b4a20 Compare August 27, 2026 15:13
@dominic-r dominic-r changed the title root: make non-UTF8 database encoding an error root: deprecate non-UTF8 database encoding Aug 27, 2026
@rissson

rissson commented Aug 27, 2026

Copy link
Copy Markdown
Member
1. We should create deprecation events for a release or two before just failing.

technically we announced it already https://docs.goauthentik.io/releases/2025.8/#database-encoding-requirements

Comment thread website/docs/releases/2026/v2026.11.mdx Resolved
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Aug 31, 2026
@dominic-r
dominic-r enabled auto-merge (squash) August 31, 2026 12:32
@dominic-r
dominic-r merged commit 1a424a3 into main Aug 31, 2026
146 of 148 checks passed
@dominic-r
dominic-r deleted the dominic/db-encoding-error branch August 31, 2026 13:28
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Aug 31, 2026
kensternberg-authentik added a commit that referenced this pull request Sep 1, 2026
…e-new-flow-diagram

* web/bugfix/ak-diagram-race-condition: (23 commits)
  A spelling error? A SPELLING ERROR!?!?!?
  web/element: fix race condition in ak-diagram
  .
  core: bump goauthentik/selenium from 150.0-ak-0.60.1 to 151.0-ak-0.61.0 in /tests/e2e (#25582)
  core: bump openid/conformance-suite/nginx from release-v5.2.3 to release-v5.2.4 in /tests/openid_conformance (#25583)
  core: bump openid/conformance-suite from release-v5.2.3 to release-v5.2.4 in /tests/openid_conformance (#25584)
  core, web: update translations (#25570)
  core: bump github.com/sirupsen/logrus from 1.10.1 to 1.10.2 (#25581)
  core: bump library/golang from `ae28539` to `df98008` in /lifecycle/container (#25592)
  core: bump ruff from 0.16.4 to 0.16.5 (#25586)
  core: bump msgpack from 1.2.1 to 1.2.2 (#25590)
  core: bump library/node from `4ebb5ac` to `c075312` in /lifecycle/container (#25589)
  core: bump goauthentik/fips-python from `3ebb7cd` to `61a327d` in /lifecycle/container (#25587)
  core: bump jwcrypto from 1.5.8 to 1.5.9 (#25588)
  core: bump library/node from 26.7.0-trixie to 26.8.1-trixie in /website (#25593)
  core: bump astral-sh/uv from 0.12.5 to 0.12.7 in /lifecycle/container (#25591)
  ci: bump taiki-e/install-action from 2.86.7 to 2.87.0 in /.github/actions/setup (#25596)
  root: deprecate non-UTF8 database encoding (#25517)
  website/docs: document disabling source group sync (#25578)
  website/integrations: buildbuddy: align with my experience setting it up (#25575)
  ...
kensternberg-authentik added a commit that referenced this pull request Sep 8, 2026
…itable-flow-diagram

* web/bugfix/ak-diagram-race-condition: (23 commits)
  A spelling error? A SPELLING ERROR!?!?!?
  web/element: fix race condition in ak-diagram
  .
  core: bump goauthentik/selenium from 150.0-ak-0.60.1 to 151.0-ak-0.61.0 in /tests/e2e (#25582)
  core: bump openid/conformance-suite/nginx from release-v5.2.3 to release-v5.2.4 in /tests/openid_conformance (#25583)
  core: bump openid/conformance-suite from release-v5.2.3 to release-v5.2.4 in /tests/openid_conformance (#25584)
  core, web: update translations (#25570)
  core: bump github.com/sirupsen/logrus from 1.10.1 to 1.10.2 (#25581)
  core: bump library/golang from `ae28539` to `df98008` in /lifecycle/container (#25592)
  core: bump ruff from 0.16.4 to 0.16.5 (#25586)
  core: bump msgpack from 1.2.1 to 1.2.2 (#25590)
  core: bump library/node from `4ebb5ac` to `c075312` in /lifecycle/container (#25589)
  core: bump goauthentik/fips-python from `3ebb7cd` to `61a327d` in /lifecycle/container (#25587)
  core: bump jwcrypto from 1.5.8 to 1.5.9 (#25588)
  core: bump library/node from 26.7.0-trixie to 26.8.1-trixie in /website (#25593)
  core: bump astral-sh/uv from 0.12.5 to 0.12.7 in /lifecycle/container (#25591)
  ci: bump taiki-e/install-action from 2.86.7 to 2.87.0 in /.github/actions/setup (#25596)
  root: deprecate non-UTF8 database encoding (#25517)
  website/docs: document disabling source group sync (#25578)
  website/integrations: buildbuddy: align with my experience setting it up (#25575)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend area:docs Features or issues related to Docusaurus

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

UTF8 encoding being required

4 participants