Open AlbinoDrought opened 3 months ago
:+1:
I'd like to see something like this in cnpg
Indeed that would be very nice and that's a requirement if you use any object-storage provider that don't support SSE-S3 and still need encryption at rest for CNPG backups and WALs.
boto3 supports SSE-C: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#uploading-downloading-files-using-sse-customer-keys
I don't believe all of these properties can currently be set in barman. Here's where other SSE properties are set: https://github.com/EnterpriseDB/barman/blob/aaff0600465e0c44192a6453aa76cb8942dfef2b/barman/cloud_providers/aws_s3.py#L175
Unfortunately, I'm not familiar with barman or Python. I imagine something like this:
but my usage of barman also includes retrieving backups (
barman-cloud-restore
, etc) and I'm not sure where the key would be configured for those.