cloudnative-pg / cloudnative-pg/plugin-barman-cloud
[Request] - support encrypt files before pushing to object store
- 主要语言
- Go
- 星标
- 192
- 派生
- 75
- 平均合并
- 1 天 16 小时
- 30 天内合并 PR
- 18
描述
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.
贡献指南
调研方向
从 EncryptionType API 和 internal/cnpgi/common/wal.go 入手,查看链接的 archiver 调用。跟踪 WAL 文件如何交给 archiver,以及加密选项如何传递到 object-store API;完成的要求是定义对称加密配置,并在上传前验证保护已生效。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- go
- 领域
- cloud, security
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100