Skip to content

booster-bitswap block filter #731

@dirkmc

Description

@dirkmc

Add a mechanism by which booster-bitswap can deny requests for a cid.

For example

  • bitswap client requests cid abcd (either want-have or want-block)
  • booster-bitswap calls filter with abcd as a parameter and receives true / false response
  • if true bitswap server returns the block
  • if false bitswap server returns DONT_HAVE

Examples of filter mechanisms:

  • a script that takes the cid as a parameter and returns an exit code of 0 or 1
  • an http endpoint that takes the cid as a parameter and returns 200 or 404

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions