storj/cmd/storj-sim
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
..
cancelable.go all: fix dots 2020-07-16 14:58:28 +00:00
console.go satellite/{payments,admin}: add deletion of user creditcards on account deletion 2020-08-27 10:18:19 +00:00
main.go cmd/storj-sim: add "tool wait-for <address>" 2020-11-16 20:38:56 +00:00
network.go satellite/orders: get bucketID from encrypted metadata in order instead of serial_numbers table 2020-12-01 15:29:32 +00:00
prefix_test.go cmd/storj-sim: fix prefix writer infinite loop bug 2020-09-11 12:33:04 +00:00
prefix.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
process.go cmd/storj-sim: add "tool wait-for <address>" 2020-11-16 20:38:56 +00:00