Skip to content

upstream: pull-source shape that targets a gateway directly #37

Description

@SgtPooki

Problem: The browser flow needs the shared redirect relay only because the provider's pull validation requires the source URL path to end with /piece/{pieceCid} (pdp/pull_types.go ValidatePullSourceURL), while a trustless gateway serves the same bytes at /ipfs/{cid}?format=car…. The relay contributes nothing but a 302 — the provider already validates pulled bytes against the on-chain commitment — yet it sits in every browser migration's path and its allowlist becomes a trust knob to operate.

Next steps:

  • Raise upstream with Curio: either accept an arbitrary HTTPS source URL and rely on the commitment check it already performs, or accept a structured source descriptor (gateway URL + CID) it can rebuild the CAR URL from.
  • Track the upstream issue/PR here once filed.
  • Keep the relay (and its single-host allowlist) until a released Curio supports this.

Done when: a released Curio accepts a gateway-direct pull source, and the app and docs drop the relay from the passthrough path.

Activity

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

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    • Status
      🎉 Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions