feat(cloud): org home-endpoint directory hook#534
Merged
Conversation
Pre-commit hook ran. Total eslint: 2, total circular: 0
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.
Summary
Client side of ORGII-cloud-infra migration
0007_org_home_endpoint.sql— the forward-compat hook for the org-sharding / project-migration direction (consolidated reference §7), plus the BCDR groundwork landing server-side in the same batch.Org home-endpoint directory hook.
list_my_orgsrows now carry an additivehomeEndpoint(null = the active project). The client parses and stores it, and a pure resolver (org2CloudEndpointDirectory) maps an org to its data-plane endpoint with strict https-origin validation (garbage degrades to the official endpoint). Deliberately NOT wired into any call site yet: the contract is that a future cutover flips the data via the service-role setter, and a later PR wires per-org routing. With per-endpoint capability memory already in place, moving an org (or the whole fleet) to a new Supabase project becomes a data change, not a client release.Server counterparts in cloud-infra (validated offline, twice): 0007 migration (column + additive roster key +
homeEndpointscapability + validated service-role setter that nudgespolicyon cutover), backfill route phase 2 (null-payloads— reclaims Postgres bytes for storage-migrated segments after object-existence verification), anddocs/project-migration-and-bcdr.md(new-project replay runbook, data/auth/storage copy incl. the signup-trigger disable gotcha, per-org vs DNS cutover, PITR-first BCDR with a quarterly drill checklist).Test plan
tscclean; Org2Cloud 759/759 (14 new: wire parse/degrade, capability flag, resolver origin validation, endpoint grouping).