Skip to content

Maintain a blacklist of malicious peers  #386

Closed

Description

@jbowen93

Optimint nodes should maintain a blacklist of peers that they have determined are acting malicious. Nodes should sever their peering connections with malicious nodes and refuse to rebroadcast any messages they receive from these nodes.

We should consider if there is value in having a set of "blacklist seed nodes" which maintain a blacklist they can share with new nodes joining the p2p network.


Subtasks:

  • Use libp2p.ConnectionGater to limit connections
  • Implement datastore.Datastore interface
  • Add configuration option/param to block peer/IP
  • Make it possible to unblock blacklisted peer/IP

Activity

  1. tzdybal commented on Oct 18, 2022

    @tzdybal
    Contributor

    To actually implement blacklisting we should use ConnectionGater interface. Probably, default implementation will be sufficient.

    Gater has to be passed as an option here: https://github.com/celestiaorg/rollmint/blob/cc0a2950ea752b8905fb35062069a951c99ef115/p2p/client.go#L230

  2. removed their assignment
    on Oct 27, 2022
  3. randomshinichi commented on Oct 28, 2022

    @randomshinichi
    Contributor

    Looks like an issue with meat, I'll take it on

  4. moved this from TODO to In Progress in Celestia Nodeon Nov 15, 2022
  5. added a commit that references this issue on Jan 17, 2023
    e5ec6a8
  6. self-assigned this
    on Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions