-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 KMS encryption for BigQuery #1829
Comments
Really neat idea @kconvey! It looks to me like a It appears to me that the
If I haven't use KMS on BQ before - if you have insight into how this works in practice, I'd love to hear it! |
As a quick note on querying, the KMS key name is not needed when reading tables. See https://cloud.google.com/bigquery/docs/customer-managed-encryption:
|
Describe the feature
Allow for KMS encryption to be specified in project configuration. Ideally this would be done in dbt_projects.yml like:
but may also exist in a model's {{ config() }}
Describe alternatives you've considered
It may be possible to do this as a post-processing step outside of dbt, or in a post-hook (although I am not aware of any way to specify KMS key in sql).
Additional context
This feature is specific to BigQuery as it currently stands but may generalize to other databases.
Who will this benefit?
Anyone who uses BigQuery and may need to encrypt their data with cloud KMS keys (as opposed to the default encryption BigQuery already performs).
The text was updated successfully, but these errors were encountered: