plugin-barman-cloud icon indicating copy to clipboard operation
plugin-barman-cloud copied to clipboard

[Feature request] Support for S3 SSE-C - Server-Side Encryption with Customer-provided keys

Open cytrinox opened this issue 1 year ago • 9 comments

I'm using k3s on Hetzner Cloud (https://docs.hetzner.com/storage/object-storage/faq/general#what-configuration-and-security-features-are-currently-supported) and running a PostgreSQL cluster with cnpg. I tried to configure barman-cloud for automatic backups to Hetzner S3 storage, but it seems that this is only possible without encryption.

Currently, Hetzner S3 only supports SSE-C (which means you have to provide an encryption key). I don't really understand what the option encryption: AES256 means in context of S3 encryption, but I assume for SSE-C there are more options required - at least for providing a secret containing the SSE-C key.

Any chance to get SSE-C support in barman-cloud? I've spend much time in securing my k8s setup (node encryption, pv encryption etc.) and storing plaintext backups in external storage makes this whole effort pointless 😞

BTW: if I just enable encryption: ASE265, barman-cloud fails with this log line:

{"level":"info","ts":"2025-11-06T19:57:05.717632266Z","logger":"barman-cloud-wal-archive","msg":"2025-11-06 19:57:05,717 [947] ERROR: Barman cloud WAL archiver exception: An error occurred (InvalidArgument) when calling the PutObject operation: None","pipe":"stderr","logging_pod":"my-pg-cluster-1"}

cytrinox avatar Nov 06 '25 20:11 cytrinox

+1

Heckinator avatar Feb 19 '26 13:02 Heckinator

+1

MaikBuse avatar Apr 02 '26 09:04 MaikBuse

+1

younes313 avatar Apr 04 '26 09:04 younes313

+1

speedone avatar Apr 23 '26 08:04 speedone

This is most likely blocked by EnterpriseDB/barman#973.

ibotty avatar Apr 23 '26 10:04 ibotty

This is also required to support Bring Your Own Key encryption at Wasabi.

dbackeus avatar Apr 27 '26 08:04 dbackeus

+1

adrame-slashexec avatar Jul 01 '26 10:07 adrame-slashexec

This is most likely blocked by EnterpriseDB/barman#973.

Looks like its completed now ! https://github.com/EnterpriseDB/barman/issues/973#issuecomment-4883211061

zewelor avatar Jul 07 '26 07:07 zewelor

+1

kamikaze avatar Oct 26 '26 13:10 kamikaze