You've already forked pgbackrest
							
							
				mirror of
				https://github.com/pgbackrest/pgbackrest.git
				synced 2025-10-30 23:37:45 +02:00 
			
		
		
		
	Enable encryption for archive-get command in C.
The decryption filter was added in archiveGetFile() and archiveGetCheck() was modified to return the WAL decryption key stored in archive.info. The rest was plumbing. The mock/archive/1 integration test added encryption to provide coverage for the new code paths while mock/archive/2 dropped encryption to provide coverage for the existing code paths. This caused some churn in the expect logs but there was no change in behavior.
This commit is contained in:
		| @@ -83,7 +83,7 @@ sub run | ||||
|     { | ||||
|     foreach my $bRemote ($bS3 ? (false) : (false, true)) | ||||
|     { | ||||
|         my $bRepoEncrypt = $bRemote && !$bS3 ? true : false; | ||||
|         my $bRepoEncrypt = !$bRemote && !$bS3 ? true : false; | ||||
|  | ||||
|         # Increment the run, log, and decide whether this unit test should be run | ||||
|         if (!$self->begin("rmt ${bRemote}, s3 ${bS3}, enc ${bRepoEncrypt}")) {next} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user