Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
65207: backupccl: encrypt returned SSTs in backup proc r=dt a=dt This changes where backup SST files are encrypted if they are returned to the SQL process that called ExportRequest rather than written directly to S3 by the ExportRequest. Previously if a backup was being done with an encryption key, all ExportRequests were sent with that key and the KV layer would always encrypt files with that key, before either sending them to the requested destination or replying with them depending on the request. This however changes the sent requests to omit the encryption options if they are requesting the file be returned, rather than written to a destination, so that the files will be returned in cleartext and the backup processor can then encrypt them before writing them to the desired destination. The backup processor already could have decrypted them -- it has the key as it was the one sending it to the KV layer after all -- so this doesn't significantly change what can be read where, but does keep the chosen key within the tenant's SQL process and makes it easier for the backup data processor to manipulate the file before sending it along to the backup destination, in that it would otherwise need to decrypt and then re-encrypt it. Release note: none. Co-authored-by: David Taylor <[email protected]>
- Loading branch information