Skip to content

policies: filter policy engine - #24025

Merged
BeryJu merged 7 commits into
mainfrom
policies/filter-policy-engne
Jul 17, 2026
Merged

BeryJu merged 7 commits into
mainfrom
policies/filter-policy-engne

Conversation

@BeryJu

@BeryJu BeryJu commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

started out as a refactor of #22009

a dedicated, optimised policy engine type for checking access of many users to a single pbm

inherits all the same goodies as the standard policy engine like cache, resolving static bindings in the db (across all users) and executing dynamic policies in parallel

closes #22009
closes #22010

BeryJu added 2 commits July 14, 2026 16:17
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu
BeryJu requested a review from a team as a code owner July 14, 2026 15:39
@BeryJu
BeryJu force-pushed the policies/filter-policy-engne branch from e7c6785 to 84e62fb Compare July 14, 2026 15:39
Signed-off-by: Jens Langhammer <[email protected]>
@netlify

netlify Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit bd9c293
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a5a5540b3749900088b41ae
😎 Deploy Preview https://deploy-preview-24025--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 Jul 14, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.75000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.45%. Comparing base (58dab26) to head (528d563).
⚠️ Report is 5 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/policies/engine.py 96.59% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24025      +/-   ##
==========================================
+ Coverage   93.41%   93.45%   +0.03%     
==========================================
  Files        1056     1057       +1     
  Lines       62759    63096     +337     
  Branches      424      424              
==========================================
+ Hits        58628    58966     +338     
+ Misses       4131     4130       -1     
Flag Coverage Δ
conformance 35.39% <16.50%> (-0.17%) ⬇️
e2e 40.41% <18.25%> (-0.19%) ⬇️
integration 31.87% <5.75%> (-0.15%) ⬇️
rust 0.00% <ø> (ø)
unit 92.63% <98.75%> (+0.04%) ⬆️
unit-migrate 92.65% <98.75%> (+0.03%) ⬆️

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.

@BeryJu BeryJu added backport/version-2026.2 Add this label to PRs to backport changes to version-2026.2 backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 labels Jul 14, 2026
BeryJu added 2 commits July 14, 2026 16:58
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu
BeryJu force-pushed the policies/filter-policy-engne branch from 84e62fb to 2447f3a Compare July 14, 2026 16:04
@github-actions

github-actions Bot commented Jul 14, 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-528d563b07248b12856ba524593a427efeb7254b
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-528d563b07248b12856ba524593a427efeb7254b

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

BeryJu added 2 commits July 17, 2026 17:15
Signed-off-by: Jens Langhammer <[email protected]>

# Conflicts:
#	authentik/policies/engine.py
Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu
BeryJu merged commit 5a33833 into main Jul 17, 2026
123 checks passed
@BeryJu
BeryJu deleted the policies/filter-policy-engne branch July 17, 2026 19:44
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

⚠️ Cherry-pick to version-2026.5 has conflicts: #24168

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

⚠️ Cherry-pick to version-2026.2 has conflicts: #24169

BeryJu added a commit that referenced this pull request Jul 17, 2026
…#24169)

* Cherry-pick #24025 to version-2026.2 (with conflicts)

This cherry-pick has conflicts that need manual resolution.

Original PR: #24025
Original commit: 5a33833

* fix...?

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L. <[email protected]>
kensternberg-authentik added a commit that referenced this pull request Jul 18, 2026
* main:
  policies: filter policy engine (#24025)
  endpoints/connectors/agent: fix auth schema for device endpoints (#24164)
  core, web: update translations (#24137)
  packages/django-dramatiq-postgres/broker: use positive state filter for pending messages (#24074)
  events: fix typo (#24161)
  root: fix agents test instructions (#24119)
  enterprise: fix enterprise_test skipping tests when used as class decorator (#24138)
  core: bump library/nginx from `ec4ed8b` to `b5a9a3c` in /website (#24146)
  core: bump github.com/pires/go-proxyproto from 0.14.0 to 0.15.0 (#24139)
  core: bump library/node from `ffc7838` to `715e55e` in /lifecycle/container (#24142)
  core: bump pnpm/pnpm from 11.12.0 to 11.13.0 in /lifecycle/container (#24144)
  core: bump library/golang from `ee5a795` to `3f1e064` in /lifecycle/container (#24143)
  core: bump pnpm/pnpm from 11.12.0 to 11.13.0 in /website (#24147)
  core: bump kubernetes from 36.0.2 to 36.0.3 (#24145)
  core: bump docker from 7.1.0 to 7.2.0 (#24149)
  web: bump webcomponent-qr-code from 1.3.0 to 2.0.0 in /web (#24152)
  core: bump regex from 1.12.4 to 1.13.0 (#24150)
  core: bump rust-toolchain from 1.97.0 to 1.97.1 (#24148)
  website/docs: cleanup 07-12: refresh contributor guidance (#23969)
  packages/ak-common/db: ignore empty passwords (#24127)
kensternberg-authentik added a commit that referenced this pull request Jul 18, 2026
* main:
  policies: filter policy engine (#24025)
  endpoints/connectors/agent: fix auth schema for device endpoints (#24164)
  core, web: update translations (#24137)
  packages/django-dramatiq-postgres/broker: use positive state filter for pending messages (#24074)
  events: fix typo (#24161)
  root: fix agents test instructions (#24119)
  enterprise: fix enterprise_test skipping tests when used as class decorator (#24138)
  core: bump library/nginx from `ec4ed8b` to `b5a9a3c` in /website (#24146)
  core: bump github.com/pires/go-proxyproto from 0.14.0 to 0.15.0 (#24139)
  core: bump library/node from `ffc7838` to `715e55e` in /lifecycle/container (#24142)
  core: bump pnpm/pnpm from 11.12.0 to 11.13.0 in /lifecycle/container (#24144)
  core: bump library/golang from `ee5a795` to `3f1e064` in /lifecycle/container (#24143)
  core: bump pnpm/pnpm from 11.12.0 to 11.13.0 in /website (#24147)
  core: bump kubernetes from 36.0.2 to 36.0.3 (#24145)
  core: bump docker from 7.1.0 to 7.2.0 (#24149)
  web: bump webcomponent-qr-code from 1.3.0 to 2.0.0 in /web (#24152)
  core: bump regex from 1.12.4 to 1.13.0 (#24150)
  core: bump rust-toolchain from 1.97.0 to 1.97.1 (#24148)
  website/docs: cleanup 07-12: refresh contributor guidance (#23969)
  packages/ak-common/db: ignore empty passwords (#24127)
BeryJu added a commit that referenced this pull request Jul 18, 2026
…#24168)

* Cherry-pick #24025 to version-2026.5 (with conflicts)

This cherry-pick has conflicts that need manual resolution.

Original PR: #24025
Original commit: 5a33833

* fixup

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L. <[email protected]>
@BeryJu BeryJu mentioned this pull request Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant