storj/storagenode
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
..
apikeys storageode/apikey: added service, CLI issue api key 2020-11-18 10:40:17 +00:00
bandwidth all: fix dots 2020-07-16 14:58:28 +00:00
collector error handling in heldamount cash and collector delete fixed 2020-07-22 12:26:13 +00:00
console stefan benten satellited added to historical payout data 2020-11-09 15:43:41 +00:00
contact satellite/contact: treat pingback failure as error 2020-11-16 18:26:37 +00:00
gracefulexit satellite/metainfo: Update metainfo RS config to more easily support multiple RS schemes. 2020-11-09 22:16:13 +00:00
inspector storagenode/internalpb: move inspector.proto 2020-10-30 14:51:26 +02:00
internalpb {satellite,storagenode}/internalpb: use specific package name 2020-10-30 17:31:08 +02:00
monitor {cmd,private,storagenode}: create storage dir verification during setup 2020-11-11 11:01:36 -05:00
nodestats storagenode/suspensions: added offline-suspension notificatio chore + tests 2020-10-29 19:44:22 +02:00
notifications storagenode/suspensions: added offline-suspension notificatio chore + tests 2020-10-29 19:44:22 +02:00
orders satellite/orders: get bucketID from encrypted metadata in order instead of serial_numbers table 2020-12-01 15:29:32 +00:00
payout storagenode/payouts: estimation payout heldamount rounding removed 2020-11-17 10:06:11 +00:00
pieces all: fix linter complaints 2020-10-13 15:59:01 +03:00
piecestore mod: bump dependencies and reenable test 2020-11-10 10:32:21 +00:00
piecetransfer storagenode/gracefulexit: logic moved from worker to service 2020-10-22 23:19:30 +00:00
preflight all: fix dots 2020-07-16 14:58:28 +00:00
pricing storagenode/nodestats: add pricing model, storagenode/cache: add paystub history storing 2020-04-14 19:04:00 +03:00
reputation storagenode/suspensions: added offline-suspension notificatio chore + tests 2020-10-29 19:44:22 +02:00
retain storagenode: fixed logging about piece being moved to trash, and added logging when piece was actually deleted 2020-08-02 20:00:05 +03:00
satellites all: fix linter complaints 2020-10-13 15:59:01 +03:00
storagenodedb storageode/apikey: added service, CLI issue api key 2020-11-18 10:40:17 +00:00
storageusage storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
trust all: add missing dots 2020-08-11 17:50:01 +03:00
version storagenode/suspensions: added offline-suspension notificatio chore + tests 2020-10-29 19:44:22 +02:00
operator.go all: fix dots 2020-07-16 14:58:28 +00:00
peer.go storageode/apikey: added service, CLI issue api key 2020-11-18 10:40:17 +00:00