storj/satellite
Jessica Grebenschikov b261110352 satellite/orders: get bucketID from encrypted metadata in order instead of serial_numbers table
We want to stop using the serial_numbers table in satelliteDB. One of the last places using the serial_numbers table is when storagenodes settle orders, we look up the bucket name and project ID from the serial number from the serial_numbers table.

Now that we have support to add encrypted metadata into the OrderLimit, this PR makes use of that and now attempts to read the project ID and bucket name from the encrypted orderLimit metadata instead of from the serial_numbers table. For backwards compatibility and to ensure no errors, we will still fallback to the old way of getting that info from the serial_numbers table, but this will be removed in the next release as long as there are no errors.

All processes that create orderLimits must have an orders.encryption-keys set. The services that create orderLimits (and thus need to encrypt the order metadata) are the satellite apiProcess, the repair process, audit service (core process), and graceful exit (core process). Only the satellite api process decrypts the order metadata when storagenodes settle orders. This means that the same encryption key needs to be provided in the config for the satellite api process, repair process, and the core process like so:
orders.include-encrypted-metadata=true
orders.encryption-keys="<"encryptionKeyID>=<encryptionKey>"

Change-Id: Ie2c037971713d6fbf69d697bfad7f8b672eedd66
2020-12-01 15:29:32 +00:00
..
accounting satellite/orders: get bucketID from encrypted metadata in order instead of serial_numbers table 2020-12-01 15:29:32 +00:00
admin satellite/admin: add apikey endpoints 2020-10-20 11:26:56 +00:00
attribution all: fix dots 2020-07-16 14:58:28 +00:00
audit satellite/{audit,gracefulexit}: remove logic for PieceHashesVerified 2020-11-24 11:09:48 +02:00
compensation all: add missing dots 2020-08-11 17:50:01 +03:00
console satellite/console: only allow project member to get all bucket names 2020-11-30 15:41:35 -05:00
contact all: fix dots 2020-07-16 14:58:28 +00:00
dbcleanup satellite/orders: ensure that expired deletion doesn't stall 2020-11-23 14:52:40 +02:00
downtime all: fix comments 2020-07-16 19:13:14 +03:00
gc satellite/gc: Init map with an aprox size 2020-11-27 10:44:19 +01:00
gracefulexit satellite/{audit,gracefulexit}: remove logic for PieceHashesVerified 2020-11-24 11:09:48 +02:00
inspector satellite/internalpb: add inspectors 2020-10-30 13:28:17 +02:00
internalpb {satellite,storagenode}/internalpb: use specific package name 2020-10-30 17:31:08 +02:00
mailservice all: fix linter complaints 2020-10-13 15:59:01 +03:00
marketingweb all: fix linter complaints 2020-10-13 15:59:01 +03:00
metainfo satellite/metainfo: enable commented test 2020-11-30 10:49:23 +01:00
metrics satellite/metainfo: get away from using pb.Pointer in Metainfo Loop 2020-10-27 13:06:47 +00:00
nodeapiversion satellite/nodeapiversion: new table for tracking node api usage 2020-07-09 15:02:25 +00:00
nodeselection all: add missing dots 2020-08-11 17:50:01 +03:00
nodestats storagenode/reputation: offline_under_review_at added 2020-09-02 18:48:28 +03:00
orders satellite/orders: get bucketID from encrypted metadata in order instead of serial_numbers table 2020-12-01 15:29:32 +00:00
overlay satellite: remove IsUp field from overlay.UpdateRequest 2020-11-02 15:34:17 -05:00
payments satellite/satellitedb: make limits per default NULL 2020-10-14 20:28:16 +00:00
referrals all: fix dots 2020-07-16 14:58:28 +00:00
repair satellite/repair: avoid TestDBAccess 2020-11-30 13:29:08 +02:00
revocation all: fix dots 2020-07-16 14:58:28 +00:00
rewards satellite/rewards: update partners to include MAXN 2020-11-10 14:08:32 +02:00
satellitedb satellitedb: remove cruft caused by https://review.dev.storj.io/c/storj/storj/+/3223 2020-12-01 00:16:26 +00:00
snopayout storagenode: heldamount renamed to payouts, renamed some methods and structs to more meaningful names. grouped estimated payout with pathouts 2020-09-16 14:57:35 +00:00
admin.go cmd/storj-sim: run gateway without --access flag 2020-10-13 14:45:04 +00:00
api.go satellite/orders: get bucketID from encrypted metadata in order instead of serial_numbers table 2020-12-01 15:29:32 +00:00
configlock_test.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
core.go satellite/orders: add storagenode_bw_phase2 table and dont delete tallies for longer 2020-11-13 17:15:24 +00:00
gc.go satellite: Fix typo in a comment 2020-11-26 15:44:49 +01:00
peer.go satellite: remove implementation detail from DB interface 2020-11-30 13:29:20 +02:00
repairer.go satellite/repair: Update repair override config to support multiple RS schemes. 2020-11-23 18:01:15 +00:00