storj/satellite
Andrew Harding 93fad70e4b satellite/audit: prevent accessing unset reservoir segments
This change fixes the access of unset segments and keys on the reservoir
when the reservoir size is less than the max OR the number of sampled
segments is smaller than the reservoir size. It does so by tucking away
the segments and keys behind methods that return properly sized slices
into the segments/keys arrays.

It also fixes a bug in the housekeeping for the internal index variable
that holds onto how many items in the array have been populated. As part
of this fix, it changes the type of index to int8, which reduces the
size of the reservoir struct by 8 bytes.

The tests have been updated to provide better coverage for this case.

Change-Id: I3ceb17b692fe456fc4c1ca5d67d35c96aeb0a169
2022-12-14 17:43:17 -07:00
..
abtesting console/abTesting: add support for AB testing 2022-10-27 10:57:12 +00:00
accounting satellite/accounting/tally: fix looping over all buckets 2022-12-07 10:32:23 +00:00
admin sat/console update the updateProject to set user specified limits 2022-12-13 16:44:41 +00:00
analytics satellite/{analytics, web}: segment ui error tracking implemented 2022-12-13 18:11:53 +00:00
attribution {cmd/satellite/reports, satellite/attribution}: type and variable name adjustments 2022-04-26 20:12:38 +00:00
audit satellite/audit: prevent accessing unset reservoir segments 2022-12-14 17:43:17 -07:00
buckets satellite/accounting/tally: fix looping over all buckets 2022-12-07 10:32:23 +00:00
compensation all: reformat comments as required by gofmt 1.19 2022-08-10 18:24:55 +00:00
console satellite/{analytics, web}: segment ui error tracking implemented 2022-12-13 18:11:53 +00:00
contact satellite/contact: emit evenkit events in case of node checkin 2022-11-14 10:38:58 +00:00
gc satellite/gc/sender: avoid sending BF to disqualified and exited nodes 2022-11-29 09:56:32 +00:00
geoip satellite/geoip: update node check-in to associate a country code 2021-11-10 16:44:41 +01:00
gracefulexit satellite/gracefulexit: observer cleanup 2022-11-05 12:10:44 +00:00
inspector {satellite/metabase, satellite/metainfo, satellite/inspector} : Use metabase.GetObjectLastCommitted instead metabase.GetObjectExactVersion 2022-09-08 07:27:22 +00:00
internalpb all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
mailservice satellite/consoleweb: fix flaky TestAuth tests 2022-08-04 19:06:07 +00:00
metabase satellite/metabase: fix log for multiple committed version 2022-12-13 13:08:02 +00:00
metainfo satellite/metabase: handle copies with GetStreamPieceCountByNodeID 2022-12-13 12:32:56 +01:00
metrics satellite/rangedloop: wire up metrics observer 2022-12-12 19:06:23 +00:00
nodeapiversion satellite/nodeapiversion: new table for tracking node api usage 2020-07-09 15:02:25 +00:00
nodeevents satellite/nodeevents: validate emails before notifying 2022-12-06 09:59:45 -05:00
nodeselection/uploadselection satellite/repairer: handle excluded countries 2022-03-14 10:59:36 -04:00
nodestats satellite: return interval_end_time in DailyStorageUsage endpoint 2022-07-27 18:24:27 +00:00
oidc all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
orders satellite/orders: decrease order expiration time to 24hours 2022-11-21 14:52:32 +00:00
overlay satellite/overlaycache: fix typo in UpdateCheckIn request 2022-12-14 22:21:45 +01:00
payments satellite/payments/stripecoinpayments: add config for price overrides 2022-12-09 15:33:27 +00:00
repair satellite/audit: teach Reporter about piecewise audits 2022-12-12 11:28:02 +00:00
reputation satellite/audit: teach Reporter about piecewise audits 2022-12-12 11:28:02 +00:00
revocation satellite/satellitedb: move tests to their domains 2021-02-19 17:29:15 +02:00
rewards satellite/rewards: adding SeaweedFS to partners list (#4230) 2021-10-19 21:30:31 +02:00
satellitedb satellite/overlaycache: fix typo in UpdateCheckIn request 2022-12-14 22:21:45 +01:00
snopayouts all: fix error naming 2021-04-29 15:38:21 +03:00
admin.go satellite/payments/stripecoinpayments: add config for price overrides 2022-12-09 15:33:27 +00:00
api.go satellite/payments/stripecoinpayments: add config for price overrides 2022-12-09 15:33:27 +00:00
configlock_test.go all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
core.go satellite/rangedloop: wire up metrics observer 2022-12-12 19:06:23 +00:00
gc-bf.go satellite/gc: Optionally run the GC bloomfilter process once, instead of in a loop 2022-11-01 18:19:40 +00:00
gc.go satellite/gc/sender: new service to send retain filters 2022-09-20 11:49:40 +00:00
peer.go satellite/{satellitedb,audit}: add NewContainment 2022-12-07 18:03:37 +00:00
rangedloop.go satellite/rangedloop: wire up metrics observer 2022-12-12 19:06:23 +00:00
repairer.go satellite/audit: teach Reporter about piecewise audits 2022-12-12 11:28:02 +00:00