filecoin-project / boost

Boost is a tool for Filecoin storage providers to manage data storage and retrievals on Filecoin.
Other
113 stars 72 forks source link

Use DeserializedResponses parameter for gateway in booster-http #1531

Closed dirkmc closed 11 months ago

dirkmc commented 1 year ago

Depends on https://github.com/filecoin-project/boost/pull/1492

With the release of boxo v0.10.1, the config for the Boxo Gateway handler config now has variable called DeserializedResponses. When set to true, flat files (i.e. deserialized responses) are served, as all CAR and RAW files. When set to false, flat files are not served, and the only CAR + RAW files served are those that can verify trustlessly (all CAR requests and RAW requests that have no path).

booster-http contains a significant amount of code aimed at partially replicating this behavior. However the Boxo code is more correct. Boost filters by file type, which serves some requests that cannot be verified trustlessly (RAW blocks served at a path are not verifiable)

We should switch booster-http to take advantage of the new parameter:

LexLuthr commented 11 months ago

Resolved by Frisbii implementation.