Repository navigation
policies: fix policybinding cache invalidation - #25989
Merged
BeryJu merged 9 commits intoSep 15, 2026
Merged
Conversation
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
jsachs
marked this pull request as ready for review
September 9, 2026 18:45
BeryJu
reviewed
Sep 10, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #25989 +/- ##
==========================================
- Coverage 91.97% 91.94% -0.04%
==========================================
Files 1172 1172
Lines 75927 75962 +35
Branches 4056 4056
==========================================
+ Hits 69834 69843 +9
- Misses 6051 6077 +26
Partials 42 42
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
jsachs
force-pushed
the
fix/policybinding-cache-invalidation
branch
from
September 10, 2026 12:29
2bd6344 to
f26e285
Compare
jsachs
force-pushed
the
fix/policybinding-cache-invalidation
branch
from
September 10, 2026 12:38
f26e285 to
0050a42
Compare
BeryJu
approved these changes
Sep 15, 2026
Contributor
|
🍒 Cherry-pick to |
BeryJu
added a commit
that referenced
this pull request
Sep 17, 2026
… version-2026.8) (#26178) policies: fix policybinding cache invalidation (#25989) * invalidate Policy cache when a Policy or PolicyBinding is updated * policies: normalize binding UUID during cache invalidation * fix UUID capture bug in blueprints --------- Co-authored-by: Jacob Sachs <[email protected]> Co-authored-by: Dewi Roberts <[email protected]> Co-authored-by: Jens L. <[email protected]>
1 task
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?
Invalidate cached policy results when either a policy or a policy binding changes. Previously, updated or deleted bindings would not invalidate the policy cache.
Why is this change needed?
This prevents stale
negateandfailure_resultbehavior. It is necessary to avoid creating staledry_runbehavior when implemented.How was this tested?
Signal and engine tests updated.
You can also test manually by doing the following in your local dev environment:
return Truefor the new application.Linked issues
#18792
Checklist
make all)make docs)