Repository navigation
policies: support dry-run bindings with event reporting - #26382
Merged
Merged
Conversation
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #26382 +/- ##
==========================================
+ Coverage 92.00% 92.11% +0.10%
==========================================
Files 1177 1178 +1
Lines 76842 77077 +235
Branches 4121 4121
==========================================
+ Hits 70699 70997 +298
+ Misses 6090 6027 -63
Partials 53 53
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
jsachs
marked this pull request as ready for review
September 24, 2026 14:05
kensternberg-authentik
added a commit
that referenced
this pull request
Oct 1, 2026
* main: (122 commits) root: fix Makefile documentation (#26597) website/docs: update single logout instructions (#26571) policies: support dry-run bindings with event reporting (#26382) web/admin: update oauth federated provider helptext wording (#26611) lib: remove spotlight (#26613) web/admin: show agent connector local auth & compliance status (#26610) stages/authenticator_webauthn: Update FIDO MDS3 & Passkey aaguid blobs (#26599) core, web: update translations (#26598) core: bump goauthentik/fips-python from `95e9d8f` to `9bee9dc` in /lifecycle/container (#26607) core: bump goauthentik/platform-ssh from 26.04-ak-0.63.0 to 26.04-ak-0.63.1 in /tests/e2e (#26604) core: bump axllent/mailpit from v1.31.2 to v1.31.3 in /tests/e2e (#26601) core: bump coverage[toml] from 7.16.1 to 7.16.2 (#26605) core: bump cryptography from 50.0.1 to 50.0.2 (#26606) core: bump goauthentik/selenium from 152.0-ak-0.63.0 to 152.0-ak-0.63.1 in /tests/e2e (#26602) core: bump types-docker from 7.2.0.20260827 to 7.2.0.20260923 in the types group (#26603) core/applications: make client_ip a part of the UserApplicationCacheKey (#26553) root: fix broken brand logo (#26588) core: second cache-clear not needed in policies (#26551) stages/authenticator_validate: fix event noise from updated models (#26584) enterprise/requests: require either brand or rule request flow (#26585) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
What does this PR change?
Adds a per-binding dry-run option for policies and direct user/group bindings.
POLICY_EXECUTIONevent action, including when policy execution logging is disabled.Why is this change needed?
Administrators need to understand which access rules would match before enforcing them. Currently, enabling a binding immediately affects access, while disabling it prevents evaluation entirely.
Dry-run allows administrators to observe results over time through the Event Log before switching a binding to enforcement. The setting belongs to the binding, so the same policy can be enforced on one target and observed on another.
This reuses an existing event action and does not store results in flow context. Dry-run does not prevent policy side effects. UI controls and documentation are handled in the stacked follow-up.
How was this tested?
Linked issues
#18792