Skip to content

events: prevent exception when events contains incompatible unicode - #21048

Merged
BeryJu merged 1 commit into
mainfrom
events/prevent-unicode-error
Mar 20, 2026
Merged

BeryJu merged 1 commit into
mainfrom
events/prevent-unicode-error

Conversation

@BeryJu

@BeryJu BeryJu commented Mar 20, 2026

Copy link
Copy Markdown
Member

most frequently caused by LDAP Source exceptions, where error causes or other strings can include \u0000 which cannot be saved in a JSON field in postgres

ref #20491
ref #6623
ref #6466

@BeryJu
BeryJu requested a review from a team as a code owner March 20, 2026 17:38
@netlify

netlify Bot commented Mar 20, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit b30499b
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69bd86283b8e980008acf486
😎 Deploy Preview https://deploy-preview-21048--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 Mar 20, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.74%. Comparing base (cfc48f5) to head (b30499b).
⚠️ Report is 4 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/events/utils.py 62.50% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21048      +/-   ##
==========================================
- Coverage   92.78%   92.74%   -0.05%     
==========================================
  Files        1000     1000              
  Lines       56584    56590       +6     
  Branches      425      425              
==========================================
- Hits        52503    52485      -18     
- Misses       4081     4105      +24     
Flag Coverage Δ
conformance 37.39% <33.33%> (+<0.01%) ⬆️
e2e 42.89% <33.33%> (-0.02%) ⬇️
integration 22.17% <33.33%> (-0.05%) ⬇️
rust 0.23% <ø> (ø)
unit 91.69% <75.00%> (+<0.01%) ⬆️
unit-migrate 91.79% <75.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
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-b30499b3b89057cb4fff4d4b5940aa090bf5863e
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-b30499b3b89057cb4fff4d4b5940aa090bf5863e

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

@BeryJu BeryJu added area:backend backport/version-2026.2 Add this label to PRs to backport changes to version-2026.2 labels Mar 20, 2026
@BeryJu
BeryJu merged commit 17594f1 into main Mar 20, 2026
106 of 107 checks passed
@BeryJu
BeryJu deleted the events/prevent-unicode-error branch March 20, 2026 21:05
authentik-automation Bot pushed a commit that referenced this pull request Mar 20, 2026
@authentik-automation

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.2 created: #21053

BeryJu added a commit that referenced this pull request Mar 20, 2026
…cherry-pick #21048 to version-2026.2) (#21053)

events: prevent exception when events contains incompatible unicode (#21048)

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L. <[email protected]>
kensternberg-authentik added a commit that referenced this pull request Mar 24, 2026
* main: (41 commits)
  ci: rotate GH App private key (#21085)
  internal/web: remove authentication for metrics (#21077)
  lib/config: explicit some defaults (#21079)
  internal: remove unix sockets on shutdown (#21081)
  ci: fix escaping in cherry-pick action (#21082)
  lib/config: support printing multiple values (#21080)
  root: fix rust setup (#21078)
  core: bump types-docker from 7.1.0.20260109 to 7.1.0.20260322 (#21062)
  policies: remove BufferedPolicyAccessView leftovers (#21057)
  core: bump axllent/mailpit from v1.29.3 to v1.29.4 in /tests/e2e (#21061)
  core: bump types-channels from 4.3.0.20250822 to 4.3.0.20260321 (#21063)
  core: bump github.com/jackc/pgx/v5 from 5.8.0 to 5.9.1 (#21059)
  translate: Updates for project authentik and language fr_FR (#21056)
  ci: bump taiki-e/install-action from 2.69.2 to 2.69.6 in /.github/actions/setup (#21068)
  web: bump the storybook group across 1 directory with 5 updates (#21031)
  web: bump knip from 5.88.0 to 5.88.1 in /web (#21033)
  web: bump type-fest from 5.4.4 to 5.5.0 in /web (#21032)
  events: prevent exception when events contains incompatible unicode (#21048)
  web/admin: handle non-string values in formatUUID to prevent Event Log crash (#20804)
  events: avoid implicitly setting context from login_failed event (#21045)
  ...
kensternberg-authentik added a commit that referenced this pull request Mar 26, 2026
* main: (22 commits)
  ci: rotate GH App private key (#21085)
  internal/web: remove authentication for metrics (#21077)
  lib/config: explicit some defaults (#21079)
  internal: remove unix sockets on shutdown (#21081)
  ci: fix escaping in cherry-pick action (#21082)
  lib/config: support printing multiple values (#21080)
  root: fix rust setup (#21078)
  core: bump types-docker from 7.1.0.20260109 to 7.1.0.20260322 (#21062)
  policies: remove BufferedPolicyAccessView leftovers (#21057)
  core: bump axllent/mailpit from v1.29.3 to v1.29.4 in /tests/e2e (#21061)
  core: bump types-channels from 4.3.0.20250822 to 4.3.0.20260321 (#21063)
  core: bump github.com/jackc/pgx/v5 from 5.8.0 to 5.9.1 (#21059)
  translate: Updates for project authentik and language fr_FR (#21056)
  ci: bump taiki-e/install-action from 2.69.2 to 2.69.6 in /.github/actions/setup (#21068)
  web: bump the storybook group across 1 directory with 5 updates (#21031)
  web: bump knip from 5.88.0 to 5.88.1 in /web (#21033)
  web: bump type-fest from 5.4.4 to 5.5.0 in /web (#21032)
  events: prevent exception when events contains incompatible unicode (#21048)
  web/admin: handle non-string values in formatUUID to prevent Event Log crash (#20804)
  events: avoid implicitly setting context from login_failed event (#21045)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend backport/version-2026.2 Add this label to PRs to backport changes to version-2026.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant