cloudnative-pg / cloudnative-pg/plugin-barman-cloud

[Request] - support encrypt files before pushing to object store

Aperta
#911 3 commenti 5 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Go
Stelle
191
Fork
72
Merge medio
2g 21h
PR unite (30g)
21

Descrizione

As best as I can tell, the only [options for tuning encryption](https://pkg.go.dev/github.com/cloudnative-pg/barman-cloud/pkg/api#EncryptionType) are 'passed through' to the underlying `s3` (or compatible) API calls.

If it turns out that I'm wrong on that one, please let me know!

My question/request: allow use of symmetric encryption _before_ the files leave the host and are sent off to the object store.

I think this could be as straight forward as passing in a key/cypher to the [underlying archiver](https://github.com/cloudnative-pg/plugin-barman-cloud/blob/9be87b0d9c87c0df7f1f72caa33bf848fbc16582/internal/cnpgi/common/wal.go#L147)

The motivation: not all object stores support "BYO" key for bucket encryption and even if they do, you're still required to hand the sensitive key material off to the remote backend so that it can encrypt things for you. One of the simplest ways to address this is to encrypt objects before they're ever off the host.
Symmetric encryption is sufficient for "at rest, I need to know that I truly am the only person that can read it" needs.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con la EncryptionType API e internal/cnpgi/common/wal.go nella chiamata collegata a archiver. Traccia come i file WAL vengono passati ad archiver e come le opzioni di crittografia raggiungono la object-store API; per considerarlo completato sono necessarie una configurazione definita per la crittografia simmetrica e una protezione verificata prima dell'upload.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
go
Ambito
cloud, security
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.