Repository navigation
enterprise/lifecycle: record each review and its note as an event - #27286
Conversation
review_attested was defined with object lifecycle management but never emitted, so a reviewer's note on an access review reached no review event. Submitting a review now records review_attested for the reviewer, with the note and the reviewed object.
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #27286 +/- ##
=======================================
Coverage 92.48% 92.48%
=======================================
Files 1197 1197
Lines 81116 81123 +7
Branches 4497 4497
=======================================
+ Hits 75017 75030 +13
+ Misses 6033 6027 -6
Partials 66 66
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Playwright e2eDownload this run's HTML report and traces, then open the report: gh run download 40803286697 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-reportInstallation instructionsInstructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-f0a7bb1b0d95fb1cc0f1d19405abacc5a01b1a0a
# Distroless image: AUTHENTIK_TAG=gh-f0a7bb1b0d95fb1cc0f1d19405abacc5a01b1a0a-distroless
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your 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-f0a7bb1b0d95fb1cc0f1d19405abacc5a01b1a0a
# Distroless image: tag: gh-f0a7bb1b0d95fb1cc0f1d19405abacc5a01b1a0a-distrolessAfterwards, run the upgrade commands from the latest release notes. |
|
🍒 Cherry-pick to |
…erry-pick #27286 to version-2026.8) (#27349) enterprise/lifecycle: record each review and its note as an event (#27286) review_attested was defined with object lifecycle management but never emitted, so a reviewer's note on an access review reached no review event. Submitting a review now records review_attested for the reviewer, with the note and the reviewed object. Co-authored-by: Dominic Roy <[email protected]>
Details
What does this PR change?
Submitting an access review now records a
review_attestedevent for the reviewer. It carries the reviewer's note, the reviewed object and a link to it, like the other review events. Reviewers aren't notified of it: notifications still go out only when a review is initiated, becomes overdue, or is completed.Why is this change needed?
review_attestedwas added with object lifecycle management and can be selected in event matcher policies, but nothing ever emitted it. A reviewer's note never reached a review event, and a notification rule matchingreview_attestednever fired. #27185 reports the same gap for access requests.How was this tested?
Added tests that a review submitted through the API records
review_attestedwith the reviewer, the note and the reviewed object, and that each reviewer of a rule with two explicit reviewers gets their own event. The API test fails without the change. The commit applies cleanly toversion-2026.8.Linked issues
refs #27185
Checklist
make all)make docs)