Skip to content

enterprise/lifecycle: record each review and its note as an event - #27286

Merged
dominic-r merged 2 commits into
mainfrom
dominic/lifecycle-review-attested-event
Oct 29, 2026
Merged

dominic-r merged 2 commits into
mainfrom
dominic/lifecycle-review-attested-event

Conversation

@dominic-r

Copy link
Copy Markdown
Member

Details

What does this PR change?

Submitting an access review now records a review_attested event 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_attested was 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 matching review_attested never fired. #27185 reports the same gap for access requests.

How was this tested?

Added tests that a review submitted through the API records review_attested with 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 to version-2026.8.

Linked issues

refs #27185


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)
  • I have read the AI usage policy.

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.
@dominic-r dominic-r added area:backend backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 labels Oct 27, 2026
@dominic-r
dominic-r requested a review from a team as a code owner October 27, 2026 23:01
@dominic-r dominic-r self-assigned this Oct 27, 2026
@netlify

netlify Bot commented Oct 27, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit a7325b5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6ae12d45178b2f1241f8683b
😎 Deploy Preview https://deploy-preview-27286--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 Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.48%. Comparing base (98c4b28) to head (f0a7bb1).
✅ All tests successful. No failed tests found.

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           
Flag Coverage Δ
conformance 31.14% <3.03%> (-0.01%) ⬇️
e2e 36.02% <3.03%> (+0.01%) ⬆️
integration 28.62% <3.03%> (-0.01%) ⬇️
rust 45.98% <ø> (ø)
unit 94.13% <100.00%> (+<0.01%) ⬆️
unit-migrate 94.12% <100.00%> (+<0.01%) ⬆️

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.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

Download 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-report

Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

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)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-f0a7bb1b0d95fb1cc0f1d19405abacc5a01b1a0a
        # Distroless image: tag: gh-f0a7bb1b0d95fb1cc0f1d19405abacc5a01b1a0a-distroless

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

@dominic-r
dominic-r merged commit 560f14a into main Oct 29, 2026
171 checks passed
@dominic-r
dominic-r deleted the dominic/lifecycle-review-attested-event branch October 29, 2026 15:30
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #27349

BeryJu pushed a commit that referenced this pull request Nov 5, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants