filecoin-saturn / L1-node

Filecoin Saturn L1 Node • The edge cache layer of Filecoin's decentralized CDN 🪐
Other
141 stars 49 forks source link

once auth ships, reject all non-authorized requests #505

Open gruns opened 11 months ago

gruns commented 11 months ago

add two rate limits when no auth token is provided

requests with an invalid auth token will still be rejected

hannahhoward commented 11 months ago

changed to initial implementation being NO unauthorized requests

gruns commented 11 months ago

yep! new implementation plan:

stage 1: auth required for every request. all requests without auth are rejected outright by l1s stage 2: all requests without auth are severely rate limited to allow curl, wget, and other 'toy' usage of saturn without auth

for stage 2, the goal of the rate limits is:

  1. to allow for toy usage of saturn, eg with curl from the command line for debugging
  2. to explicitly disallow production usage of saturn without auth. for prod use, a customer must sign up and add auth to their requests

here are some potential rate limiting strategies to consider for implementation:

some combination of all, or some, of the above rate limits will help accomplish both of stage 2's goals above