docs(reconcile): declare disabled principals out of scope for the PlatformUser kind - #1891
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Coverage Report for CI Build 32010713488Coverage remained the same at 48.744%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
|
Review: declare disabled principals out of scope for PlatformUser Verified on this branch: For user principals, which is the reachable case, the doc is exactly right. Disabled users are filtered by Verdict: approve with nits. Nits:
|
df70845 to
75aa967
Compare
e70b648 to
345417c
Compare
|
Follow-up on the nits.
|
|
Re-review (head 345417c) Build and tests are green. The over-generalization is fixed. The note now scopes the guarantee to users and correctly adds that service users cannot be disabled today, so they are always listed. Every claim checks out against the code: One optional consistency nit: the Verdict: approve with nits. |
| } | ||
|
|
||
| // fetchCurrent lists the platform principals the reconciler manages. Disabled | ||
| // principals are out of scope: ListPlatformUsers resolves users through a store |
There was a problem hiding this comment.
Nit (optional consistency): the doc was narrowed to users, but this comment still says principals. It is not wrong, since only users can be disabled today, but consider matching the doc and saying users here so the two read the same.
There was a problem hiding this comment.
Fixed. The comment now says disabled users, matching the doc, and adds that service users cannot be disabled today. Pushed in 4648a87.
What
A disabled user does not appear in the platform-user listing the reconciler reads (the store query filters out disabled accounts), so the reconciler cannot see or manage their platform access. This documents that disabled principals are out of scope, both in the reconcile docs and as a comment on
fetchCurrent.No behavior change.
Why
This makes the existing behavior explicit so operators do not list a disabled principal and expect it to reconcile. A disabled admin is not exported and an empty file does not remove their grant. Re-enable the user first to manage their access.
Stack
Stacked on
fix/reconcile-billingproduct-r2.