storj/satellite/metainfo
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
..
expireddeletion private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
piecedeletion testplanet/satellite: reduce the number of places default values need to be configured 2021-06-01 22:14:17 +00:00
pointerverification satellite/metainfo: reenable piece hash verification 2021-04-12 15:12:42 -06:00
attribution_test.go satellite/accounting/tally: use objects iterator instead metaloop 2021-07-20 15:52:18 +00:00
attribution.go satellite/metainfo: drop metainfo.Service 2021-09-09 17:30:10 +02:00
batch.go satellite/metainfo: endpoint cleanup 2021-08-26 09:52:38 +00:00
config_test.go Merge 'master' branch 2020-11-10 11:58:59 +00:00
config.go satellite/metabase: remove metaloop package 2021-07-22 13:00:45 +00:00
db_test.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
db.go satellite/metabase: move package one level higher 2021-04-21 15:54:22 +03:00
endpoint_test.go private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
metainfo_test.go satellite/metainfo: drop metainfo.Service 2021-09-09 17:30:10 +02:00
metainfo.go satellite/metainfo: make subsequent auth validations not perform rate-limiting 2021-09-10 12:07:06 +00:00
signing.go satellite/metainfo: use deterministic signing for satStreamID 2021-01-19 15:56:29 +00:00
validation_test.go satellite/metainfo: make subsequent auth validations not perform rate-limiting 2021-09-10 12:07:06 +00:00
validation.go satellite/metainfo: make subsequent auth validations not perform rate-limiting 2021-09-10 12:07:06 +00:00
version_collector.go satellite/metainfo: collect uplink versions with monkit 2021-02-10 17:47:13 +01:00