Replies: 4 comments 8 replies
|
Hey, dug into this a bit.
|
|
Hey @Abidoyesimze ! Please look into how we can integrate Storacha (this is the rebranded version of web3.storage). Specifically, I need you to figure out and document: Web UI: How to set up accounts and manage data. CLI: The workflow for uploading and retrieving data. Authentication: How they handle "API keys"—heads up, they use decentralized UCANs instead of traditional static keys, so pay close attention to how we handle delegations for our backend/CI environment. Let's get a quick markdown guide or snippet ready on this. Thanks! |
|
Storacha Web Access Down — Switching to CLI |
|
Landing on Filecoin Onchain Cloud as the way forward for DIN's storage layer. The case from the research above: PDP proofs give us real, ongoing storage verification (checked ~every 24h, escalating penalties on repeated failure, cutoff after 10) and Filecoin Pay's operator/allowance model gives us the sponsor-controlled storage budget primitive DIN needs — a sponsor deposits funds and approves a contract to manage rails on their behalf, capped by rate + lockup. That's the piece we'd otherwise have had to hand-roll as custom FVM escrow + SLA verification + renewal logic. No need to build that ourselves. Storacha Forge is FOC-backed (PDP-backed storage, open IPFS gateway retrieval, uploader pays/readers free — exactly the cost split we want for model artifacts), so it's the practical integration path into FOC unless the DNS/console outage turns out to be more than transient. @Abidoyesimze, keep going on the CLI-based integration guide — flag here if the outage doesn't clear up and we need to evaluate going directly against the Synapse SDK / Filecoin Pay contracts instead of through Storacha. |
Uh oh!
There was an error while loading. Please reload this page.
Background
DIN currently uses Filebase as its default IPFS pinning provider. All model artifacts (client updates, aggregated models, manifests, service files) flow through
dincli/services/ipfs.pyand are referenced on-chain by CID only — the contract layer is fully provider-agnostic. Adding a Filecoin-backed provider therefore requires only an adapter behind the existingcustomprovider path: no contract changes, no CID format changes.We want Filecoin-backed storage because:
The internal design doc (
Developer/discussion/add-filecoin-support.md) recommended Lighthouse as the first integration, and PR #16 implemented a Lighthouse provider adapter.What we found: Lighthouse retrieval is payment-gated⚠️
While testing PR #16 with a real Lighthouse account (not just mocks):
GET https://gateway.lighthouse.storage/ipfs/<cid>returns402 Payment Required— including for the file's own uploader, with and without the uploader's own API key attached (identical response either way, so this is not an auth-header issue).ipfs.io) fails for the same CID with "no providers found for the CID".This breaks DIN's core assumption: an artifact's CID must be retrievable by other participants (aggregators fetching client updates, auditors fetching models) — not just uploadable. A provider where even the uploader can't read their own file back without a paid retrieval plan is not viable as-is.
The question
How should we add Filecoin-backed storage, and which provider should we choose?
Candidates we're aware of:
Specific questions:
Any hands-on experience with these providers' retrieval behaviour — especially failure modes like the one we hit with Lighthouse — would be extremely valuable.
cc @Abidoyesimze — you've built on FVM (storage-deal escrow with SLA verification and auto-renewal), which is directly relevant here; would love your take on the provider choice and whether an FVM-native path is worth the complexity.
cc @Santiagocetran (PR #16 author)
All reactions