-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
booster-bitswap block filter #731
Comments
BUT...is the place/way it filters compatible with how we would call a filter function for bitswap?
or just lookup in set if using the server (preferable since has updates) -- https://github.com/Murmuration-Labs/bitscreen-updater/blob/master/bitscreen_updater/__main__.py#L75 We should test out hitting it and see how performance is impacted. If bitscreen is not a good fit, we can
As a next step it might make sense to set up a joint call to have the bitscreen team walk us through how it is supposed to work and any limitations/issues we should be aware of. cc @brendalee |
this is also relevant for booster-http #946 Should each edge retrieval process call filters / enforce policy, or should it happen at the centralized call to the piece metastore |
Yes, closing |
Add a mechanism by which booster-bitswap can deny requests for a cid.
For example
abcd
(eitherwant-have
orwant-block
)abcd
as a parameter and receivestrue
/false
responsetrue
bitswap server returns the blockfalse
bitswap server returnsDONT_HAVE
Examples of filter mechanisms:
0
or1
200
or404
We should experiment with these filter mechanisms to see what is most intuitive and performant.
The filter should use the
WithPeerBlockRequestFilter
hook to approve / deny requests for a block.The text was updated successfully, but these errors were encountered: