farcasterxyz / hub-monorepo

Implementation of the Farcaster Hub specification and supporting libraries for building applications on Farcaster
https://www.thehubble.xyz
MIT License
695 stars 389 forks source link

feat: hubs must have an fid to peer with other hubs #117

Open varunsrin opened 1 year ago

varunsrin commented 1 year ago

What is the feature you would like to implement? A hub will only accept a peer if it has a valid fid

Why is this feature important? Requiring a unique identifier for hubs prevents spam, because an abusive hub can easily be identified and blocked and there is a cost to acquiring a new identifier.

Will the protocol spec need to be updated?? Yes, section 2.4 will need to be updated and a new section about Hub authentication may need to be added.

How should this feature be built? (optional) TBD

Additional context TBD

varunsrin commented 1 year ago

we don't need this for v2.0.0 given that all hubs are trusted

sds commented 11 months ago

Note that hubs can now specify an optional operator FID via the --hub-operator-fid flag, though this ticket's original goal was to make it a requirement and not optional.

Swader commented 7 months ago

How would a hub find/get its fid? There's nothing in the docs about actually obtaining a fid