flowctl: fetch storage mappings and data planes via GraphQL - #3238
Draft
GregorShear wants to merge 1 commit into
Draft
flowctl: fetch storage mappings and data planes via GraphQL#3238GregorShear wants to merge 1 commit into
GregorShear wants to merge 1 commit into
Conversation
GregorShear
force-pushed
the
greg/flowctl-gql-storage-mappings
branch
from
July 23, 2026 20:25
c02cdef to
31ad5e7
Compare
GregorShear
changed the base branch from
master
to
greg/gql-storage-mappings-filter
July 23, 2026 20:26
GregorShear
marked this pull request as draft
July 30, 2026 16:50
GregorShear
force-pushed
the
greg/flowctl-gql-storage-mappings
branch
2 times, most recently
from
August 17, 2026 19:55
60b9dff to
bb982b5
Compare
GregorShear
changed the base branch from
master
to
agent/graphql-storage-mapping-raw-spec
August 17, 2026 19:56
GregorShear
force-pushed
the
greg/flowctl-gql-storage-mappings
branch
from
August 17, 2026 20:37
bb982b5 to
3c60052
Compare
Base automatically changed from
agent/graphql-storage-mapping-raw-spec
to
master
August 17, 2026 21:19
GregorShear
force-pushed
the
greg/flowctl-gql-storage-mappings
branch
3 times, most recently
from
August 17, 2026 23:06
a196e43 to
79731da
Compare
Resolve storage mappings and accessible data planes during flowctl source loading through the control-plane GraphQL API. Query relevant storage prefixes in batches of 100, paginate data planes, propagate request failures, and synthesize the recovery mappings required by validation.
GregorShear
force-pushed
the
greg/flowctl-gql-storage-mappings
branch
from
August 19, 2026 18:49
79731da to
3c36ba1
Compare
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
Resolves storage mappings and accessible data planes during
flowctlsource loading through the control-plane GraphQL API instead of PostgREST.Why
The PostgREST path relied on row-level security, whose grant graph only walks downward: a user scoped to a sub-prefix (for example,
acmeCo/team-a/) could not read the tenant-root mapping atacmeCo/, soflowctl discoverfailed with an access error. The GraphQL resolvers authorize against the snapshot grant graph, which walks ancestors as well as descendants.A storage mapping identifies eligible data planes by name, while existing live specs reference their assigned data plane by ID. The
dataPlanesGraphQL query now returns both values, allowing local validation to resolve either form without depending on legacy RLS.How
filter: { catalogPrefix: { in: [...] } }exact-set queries, batched at the filter's 100-entry limit.dataPlanesconnection. This is necessary because storage mappings reference planes by name rather than ID.The storage mapping filter landed in #3242. Data-plane IDs landed in #3240. Live specs and inferred schemas remain on their existing PostgREST paths.
Testing
cargo test -p flowctl— 25 passed.cargo fmt --all -- --check— clean.Unknown field "id" on type "DataPlane", confirming production has not yet deployed the schema from control-plane-api: addidand anidfilter to thedataPlanesGraphQL query #3240. Rerun the smoke test after that control-plane API deployment.