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): adds Bigquery datapolicies samples for C.G.C. documentation#902

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

Open
ankitiit84 wants to merge2 commits intoterraform-google-modules:main
base:main
Choose a base branch
Loading
fromankitiit84:main

Conversation

@ankitiit84
Copy link

@ankitiit84ankitiit84 commentedOct 9, 2025
edited
Loading

Description

Adds Bigquery datapolicies samples for C.G.C. documentation

Checklist

Readiness

  • Yes,merge this PR after it is approved
  • No, don'tmerge this PR after it is approved

Style

Testing

Intended location

API enablement

  • If the sample needs an API enabled to pass testing, I have added the service to theTest setup file

Review

  • If this sample adds a new directory, I have added codeowners to theCODEOWNERS file

@ankitiit84ankitiit84 requested review froma team ascode ownersOctober 9, 2025 22:19
@snippet-bot
Copy link

Here is the summary of changes.

You are about to add 4 region tags.

This comment is generated bysnippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, addsnippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@msampathkumar
Copy link
Contributor

/gcbrun

2 similar comments
@ankitiit84
Copy link
Author

/gcbrun

@msampathkumar
Copy link
Contributor

/gcbrun

@glasntglasnt changed the titleAdds Bigquery datapolicies samples for C.G.C. documentationfeat(bigquery): adds Bigquery datapolicies samples for C.G.C. documentationOct 27, 2025
Copy link
Contributor

@glasntglasnt left a comment

Choose a reason for hiding this comment

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

Some questions on the default values being used in this sample that require addressing

location = "US"
data_policy_type = "RAW_DATA_ACCESS_POLICY"
grantees = [
"principal://goog/subject/raha@altostrat.com"
Copy link
Contributor

Choose a reason for hiding this comment

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

This princpal has been referenced in a handful of other BigQuery samples. Is this a testing account? Could it be replaced with a more obvious testing value?

language = "SQL"
data_governance_type = "DATA_MASKING"
definition_body = "SAFE.REGEXP_REPLACE(ssn, '[0-9]', 'X')"
return_type = "{\"typeKind\" : \"STRING\"}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason why this has to be an escape-encoded string, and not usejsonencode?

Same for the arguments.data_type.


resource "google_bigquery_datapolicyv2_data_policy" "default" {
location = "US"
data_policy_id = "custom_masking_policy"
Copy link
Contributor

Choose a reason for hiding this comment

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

The value used here looks too close to the faux enum in the next like. Could it be changed to "my_custom_policy" or similar?

@glasntglasnt added the waiting-responseWaiting for issue author to respond. labelNov 4, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@glasntglasntglasnt requested changes

@wj-chenwj-chenwj-chen approved these changes

Requested changes must be addressed to merge this pull request.

Assignees

No one assigned

Labels

waiting-responseWaiting for issue author to respond.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@ankitiit84@msampathkumar@glasnt@wj-chen

[8]ページ先頭

©2009-2025 Movatter.jp