ipfs / go-bitswap

The golang implementation of the bitswap protocol
MIT License
216 stars 112 forks source link

Hook to inspect each want + auth and allow/deny it #558

Closed hannahhoward closed 2 years ago

hannahhoward commented 2 years ago

If we're adding auth, we need a mechanism for providers to hook into incoming wants to determine if accepted/rejected based on the want and token.

This could be used as well to support other kinds of blocking -- like rate limiting for example.

hannahhoward commented 2 years ago

Closing as the current peer/block filter is sufficient for now.