Skip to content

Peer proxy storage mode: graph sources never resolve ("Ledger not found" for every one) #2189

Open

Description

@aaj3f

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.rs execute_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:

  1. a transaction-server proxy endpoint that serves graph-source records to peers, and
  2. 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.

Activity

  1. added
    bug
    P2
    triage:needs-decision
    area:server
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2area:serverbugtriage:needs-decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions