Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(bigquery): expose customer managed encryption key for ML models#9302

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@HemangChothani
Copy link
Contributor

@HemangChothaniHemangChothani commentedSep 26, 2019
edited by IlyaFaer
Loading

Fixes:#9251

@HemangChothaniHemangChothani requested a review froma teamSeptember 26, 2019 11:18
@googlebotgooglebot added the cla: yesThis human has signed the Contributor License Agreement. labelSep 26, 2019
fromgoogle.api_coreimportdatetime_helpers
fromgoogle.cloud.bigqueryimport_helpers
fromgoogle.cloud.bigquery_v2importtypes
fromgoogle.cloud.bigquery.tableimportEncryptionConfiguration
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It seems wrong forEncryptionConfiguration to live in thetable module now that it's used for tables and models. Let's create a newencryption_configuration model for this to live. (Similar toexternal_config.)

We can make an alias in thetable module to keep this from being a breaking change.

importgoogle.cloud._helpers
fromgoogle.cloud.bigquery_v2.gapicimportenums

KMS_KEY_NAME="projects/1/locations/global/keyRings/1/cryptoKeys/1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I know this is a unit test, but we're supposed to discourage use ofglobal location. Let's change this tous.

@HemangChothaniHemangChothani added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelOct 1, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelOct 1, 2019
@HemangChothani
Copy link
ContributorAuthor

@tswast PTAL.

self._verify_field(field,r_field)


classTestEncryptionConfiguration(unittest.TestCase):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Can we please keep one test to ensure thatfrom google.cloud.bigquery.table import EncryptionConfiguration continues to work? I don't want to make this feature into breaking change.


deftest_encryption_configuration_setter(self):
fromgoogle.cloud.bigquery.tableimportEncryptionConfiguration
fromgoogle.cloud.bigquery.encryption_configurationimport (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I meant that we need to test that the old location needs to continue to work.

Suggested change
fromgoogle.cloud.bigquery.encryption_configurationimport (
# Previously, the EncryptionConfiguration class was in the table module, not the
# encryption_configuration module. It was moved to support models encryption.
# This test import from the table module to ensure that the previous location
# continues to function as an alias.
fromgoogle.cloud.bigquery.tableimport (

@tswasttswast merged commit1dd4731 intogoogleapis:masterOct 16, 2019
@HemangChothaniHemangChothani deleted the Bigquery_expose_CMEK_functionality_for_ML_models branchDecember 17, 2019 12:17
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tswasttswasttswast approved these changes

Assignees

No one assigned

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

BigQuery: expose CMEK functionality for ML models

4 participants

@HemangChothani@tswast@googlebot@yoshi-kokoro

[8]ページ先頭

©2009-2025 Movatter.jp