Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support CSEK for GCS Storage Backend #8039

Open
salrashid123 opened this issue Dec 17, 2019 · 0 comments
Open

Support CSEK for GCS Storage Backend #8039

salrashid123 opened this issue Dec 17, 2019 · 0 comments

Comments

@salrashid123
Copy link

Support setting a CSEK key for GCS as a Storage Backend.
Vault will use provided Customer Supplied Encryption Key to encode the files it uses on Google Cloud Storage.

I'm unsure how to provide the unseal CSEK key to Vault to bootstrap the connection but as a small POC, here is a copy of the GCS backend where line 50 has the csek hardcoded

https://gist.github.com/salrashid123/e29c6af62e5780622d477c1d46237940
 
from there, the crud operations simply specifieds that key, for example

r, err := b.client.Bucket(b.bucket).Object(key).Key([]byte(csekKey)).NewReader(ctx)

in the end, you're left with CSEK sealed backend:

vault_csek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants