-
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
Add a configuration option kms_key_name
to dbt_project.yml for BigQ…
#1851
Add a configuration option kms_key_name
to dbt_project.yml for BigQ…
#1851
Conversation
…uery projects where a Cloud KMS key can be specified and used to encrypt models. The key is specified to bigquery in the ddl OPTIONS.
Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA. In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, don't hesitate to ping @drewbanin. CLA has not been signed by users: @kconvey |
CLA should be signed now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor change requested around some recently-updated code, but the core logic implemented here looks very good to me! :D
@@ -36,24 +36,25 @@ | |||
{% if temporary %} | |||
{% do opts.update({'expiration_timestamp': 'TIMESTAMP_ADD(CURRENT_TIMESTAMP(), INTERVAL 12 hour)'}) %} | |||
{% endif %} | |||
{% if kms_key_name %} | |||
{% do opts.update({'kms_key_name': "'" ~ kms_key_name ~ "'"}) %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a lot we can do to make these settings less onerous to manage, especially if we intend to add more of them in the future. For now though, this is a-ok with me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't say they're too bad to mess with at present, but maybe a pointer to how one might go about it would help.
The cla-bot has been summoned, and re-checked this pull request! |
Merge branch 'dev/louisa-may-alcott' of https://github.com/fishtown-analytics/dbt into kms-encryption
Merge branch 'dev/louisa-may-alcott' of https://github.com/fishtown-analytics/dbt into kms-encryption
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hoping this looks better now. Thanks for reviewing @drewbanin !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me now, thanks @kconvey!
I just kicked off the test suite - I'll merge this once the tests pass :)
@kconvey looks like the tests here are failing because of an issue with the |
This looks great! Thanks for your contribution @kconvey - I'll merge this now. |
…uery projects where a Cloud KMS key can be specified and used to encrypt models. The key is specified to bigquery in the ddl OPTIONS.
ex.
Fixes #1829