Authorize org membership from the local mirror - #2007
Closed
RhysSullivan wants to merge 2 commits into
Closed
RhysSullivan wants to merge 2 commits into
RhysSullivan wants to merge 2 commits into
Conversation
RhysSullivan
added this pull request to stack #2008
September 15, 2026 11:05
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-cloud | bb51c96 | Sep 16 2026, 04:29 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-marketing | bb51c96 | Commit Preview URL Branch Preview URL |
Sep 16 2026, 04:26 PM |
RhysSullivan
force-pushed
the
member-directory/auth-cutover
branch
from
September 16, 2026 16:24
a0910e4 to
bb51c96
Compare
RhysSullivan
force-pushed
the
member-directory/reconciler
branch
from
September 16, 2026 16:24
d2d7740 to
6ca0929
Compare
RhysSullivan
removed this pull request from stack #2008
September 16, 2026 16:26
Collaborator
Author
|
Recreated with the correct base after the stack was reordered (reconciler now sits below readers). |
Contributor
Cloudflare preview
Sign-in is Cloudflare Access (one-time PIN to an allowed email). The preview has its own database and encryption key; it is destroyed when this PR closes. |
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.
Layer 5 of 5. Cloud only. Takes WorkOS off the per-request path.
authorizeOrganizationreadsMemberDirectory.membershipinstead of calling WorkOS. Active status required; role mapping unchanged. Admin gates on the account, admin, and org planes use the role the authorize step resolved. The membership ownership check on remove and role change is one point read. The org switcher and free-org limit readmembershipsOf.deploy.ymlrunsscripts/ensure-workos-mirror-ready.tsafter migrations. It runs the backfill if needed, drains the events stream itself, and fails the deploy if the mirror is still not ready.Ops step (cloud): add
WORKOS_API_KEYto theproductionGitHub environment so the deploy gate can run the backfill. Removal in the WorkOS dashboard now takes effect when the event lands, normally seconds and at most about a minute. Removal through Executor stays immediate.