Closed aschmahmann closed 1 year ago
Is this orthogonal or an alternative to the idea to put this into Protocol Select?
Is this orthogonal or an alternative to the idea to put this into Protocol Select?
Perhaps orthogonal, there are lots of ways to do auth. In this case putting auth into Protocol Select means Bitswap mechanics would need to change to have a new stream per auth token/channel which depending on the design may/may not be excessive/problematic.
I suspect if we had a nice design for negotiating per-stream auth that protocols would attempt to use it before designing something more special cased.
Some tricky areas here that might cause necessitate more than stream based auth include:
Does this still match the current spec work? is there an alternative version of auth that's available in the current bitswap?
This repository has been moved to https://github.com/ipfs/go-libipfs. There is not an easy way to transfer PRs, so if you would like to continue with this PR then please re-open it in the new repository and link to this PR.
Not much to see here, just a stab at what it might look like to have authentication in Bitswap. Very not production ready.