storj/satellite
Artur M. Wolff 7f595445ac satellite/metainfo: make subsequent auth validations not perform rate-limiting
Currently, requests that were successfully passed through the metainfo
endpoints rate-limiter might still fail in the middle of the
corresponding response. The problem is that we perform rate-limiting a
second time, which means other requests would influence whether the
current (already rate-checked) request will fail. This also has other
unintended effects, like responding with rpcstatus.PermissionDenied for
requests that were successfully rate-checked and did not lack
permissions but were rate-checked again in the middle of
(*Endpoint).BeginObject. This situation has been happening on the
gateway side and might affect other uplink clients. This change, where
appropriate, swaps subsequent validateAuth with validateAuthN that
performs rate-limiting once.

Change-Id: I6fc26dedb8c442dd20acaab5942f751279020b08
2021-09-10 12:07:06 +00:00
..
accounting private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
admin satellite/admin: Don't update project desc when empty 2021-09-01 04:53:16 +00:00
analytics web, satellite: allow registering business accounts to ask for contact from sales team 2021-06-02 13:10:38 +00:00
attribution satellite/accounting/tally: use objects iterator instead metaloop 2021-07-20 15:52:18 +00:00
audit private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
compensation satellite/compensation: add wallet features to invoice csv 2021-02-08 22:13:48 +02:00
console satellite/console: UpdateProject changes 2021-09-01 20:30:26 +00:00
contact private/lrucache: import from common 2021-08-16 10:04:32 +00:00
gc private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
gracefulexit private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
inspector private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
internalpb satellite/repair: migrate to new repair_queue table 2021-06-30 17:12:24 +02:00
mailservice web/satellite,satellite/console: Overhaul password reset 2021-08-12 17:40:53 +00:00
metabase satellite/metabase: increase maximum batch size for loop 2021-09-10 09:33:55 +00:00
metainfo satellite/metainfo: make subsequent auth validations not perform rate-limiting 2021-09-10 12:07:06 +00:00
metrics satellite/metrics: fix metrics for total inline/remote bytes and segments 2021-07-30 18:19:51 +02:00
nodeapiversion satellite/nodeapiversion: new table for tracking node api usage 2020-07-09 15:02:25 +00:00
nodeselection/uploadselection satellite/nodeselection/uploadselection: rename package 2021-05-04 15:50:00 +00:00
nodestats satellite/reputation: return default reputation stats when node is not 2021-08-04 19:34:54 +00:00
orders private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
overlay satellite/overlay: fix UpdateCheckIn comment 2021-08-06 05:54:00 +00:00
payments satellite/payments: fix invoice generation to include the last day of 2021-08-31 16:25:18 +00:00
repair private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
reputation satellite/satellitedb: improve Update query for reputation 2021-08-10 13:06:13 +00:00
revocation satellite/satellitedb: move tests to their domains 2021-02-19 17:29:15 +02:00
rewards satellite/rewards: adding partners to list (#4159) 2021-07-09 22:47:25 +02:00
satellitedb satellite/satellitedb: allow setting rate limit for a project to 0 2021-08-26 13:45:01 +00:00
snopayouts all: fix error naming 2021-04-29 15:38:21 +03:00
admin.go web,satellite: Remove paywall-related functionality 2021-06-29 02:47:48 +02:00
api.go satellite/metainfo: drop metainfo.Service 2021-09-09 17:30:10 +02:00
configlock_test.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
core.go satellite/metainfo: drop metainfo.Service 2021-09-09 17:30:10 +02:00
gc.go satellite/metabase/segmentloop: don't shutdown satellite on loop error 2021-07-30 06:49:10 +00:00
peer.go satellite/metainfo: add zombiedeletion chore 2021-08-24 08:22:06 +00:00
repairer.go satellite/metainfo: drop metainfo.Service 2021-09-09 17:30:10 +02:00