Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
node: rate limiter for channel reads
Merged fintohaps opened 1 year ago

This introduces rate limits for the ChannelReader to limit DDoS attacks and attempts to upload repositories that are larger than a node is will to permit.

The limiter sets the total number of bytes it is will to accept in a single exchange, defaulting to 500MB. This means that initial fetches will prevent large repositories, but is plenty for new packfile data to be sent in subsequent fetch exchanges.

The limit can be configured within the node’s config file, under the limits.

fintohaps opened with revision 49513bf4 on base 3b5fac17 +201 -18 1 year ago

This introduces rate limits for the ChannelReader to limit DDoS attacks and attempts to upload repositories that are larger than a node is will to permit.

The limiter sets the total number of bytes it is will to accept in a single exchange, defaulting to 500MB. This means that initial fetches will prevent large repositories, but is plenty for new packfile data to be sent in subsequent fetch exchanges.

The limit can be configured within the node’s config file, under the limits.

fintohaps pushed revision 2 5d2dad11 on base f13afe49 +0 -0 1 year ago

Changes:

  • Rebased
  • Use bytesize, the library has no deps – other than serde via the flag, and it handles fractionals better than what I had quickly sketched.
fintohaps merged revision 5d2dad11 at f13afe49 1 year ago
fintohaps pushed revision 3 b1abab83 on base f13afe49 +238 -20 1 year ago

Changes:

  • Accidentally pushed master, reverting
  • Changed has_reached to exceeded_by
fintohaps pushed revision 4 60599597 on base f13afe49 +237 -20 1 year ago

Changes:

  • Removed pre-commit yaml file
fintohaps pushed revision 5 9719b0e7 on base f13afe49 +237 -20 1 year ago

Changes:

  • Rename ByteLimit to FetchPackSizeLimit
fintohaps pushed revision 6 d2e5f055 on base f13afe49 +237 -20 1 year ago

Changes:

  • Reword exceed_by doc copy
fintohaps pushed revision 7 52c680fb on base f13afe49 +237 -20 1 year ago

Changes:

  • Use saturating_add
fintohaps pushed revision 8 37d0420e on base f13afe49 +237 -20 1 year ago

Changes:

  • Reword doc comment again
fintohaps pushed revision 9 338890b1 on base f13afe49 +237 -20 1 year ago

Changes:

  • Correct doc strings to remove ByteLimit, and use FetchPackSizeLimit instead