You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Peer proxy storage mode: graph sources never resolve ("Ledger not found" for every one) #2189
P2Scheduled: real but not urgentarea:serverHTTP surface, routes, error mapping, swagger, timeouts/admission, config graphbugSomething isn't working as expectedtriage:needs-decisionBlocked on a product/design decision
Found while fixing the wrong-cause errors for unservable graph sources (#2190): in peer proxy storage mode, no graph source resolves at all, so every query of one answers "Ledger not found", including through FROM <source>.
The mechanism is upstream of the routes:
ProxyNameService::lookup_graph_source (fluree-db-nameservice-sync/src/proxy_nameservice.rs:289-295) returns Ok(None) unconditionally, and all_graph_source_records (:311-315) returns empty. Its own comment says graph-source discovery "isn't exposed through the storage proxy today".
On top of that, the proxy branches of the query routes call fluree.db() directly (fluree-db-server/src/routes/query.rsexecute_query_proxy ~3070 for JSON-LD, and the SPARQL proxy branch ~3638-3660), so even a working lookup wouldn't reach the graph-source resolver.
So routing the proxy branches through the resolver changes nothing on its own. I think a real fix needs:
a transaction-server proxy endpoint that serves graph-source records to peers, and
a decision about what of a source's config a peer may see. Configs can carry catalog credentials (bearer tokens, OAuth2 client secrets, and soon Google credentials), so we may want the endpoint to serve a redacted or reference-only form, with secrets resolved on the transaction server.
This needs a decision before anyone builds it, mainly (2). Until then, it seems right that a proxy-mode peer should at least say "graph sources aren't available in proxy mode" instead of "Ledger not found". Happy to talk through any of this.
P2Scheduled: real but not urgentarea:serverHTTP surface, routes, error mapping, swagger, timeouts/admission, config graphbugSomething isn't working as expectedtriage:needs-decisionBlocked on a product/design decision
Activity