-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
BigQuery Row Level Security Policy #17464
Comments
Note from triage: This doesn't seem to be supported at the REST API layer, only by calls to BigQuery directly, which means we can't support it in the provider at this time. Support would need to be added to the REST API first. |
That's good know, thank you for pointing that out. Update: It looks like there is already an issue created for this from April 2022: https://issuetracker.google.com/issues/229861829 |
RowAccessPolicy is its own GCP resource (https://cloud.google.com/bigquery/docs/reference/rest/v2/rowAccessPolicies), so it'll likely translate to a new resource in the Terraform provider. As mentioned, there is no official API to manage RowAccessPolicy at the time. The standard procedure would be to make the API available first before adding it to the provider. Since it's possible to manage it using DDL statement today, it may be possible to implement the new Terraform resource in such a way that behind the scenes we just execute the DDL statement instead of calling an API, but it's generally not ideal as e.g. it requires careful surface design to be as forward-compatible as possible to match the potential API surface when an API does become available, and it requires the user to have IAM permission for e.g. |
There is now work underway to support managing Row Level Security Policies through the API which will unblock adding support for this resource in Terraform. A tentative timeline for availability is Q4. Please continue to follow this bug for updates. |
@wj-chen is there any source that you can link here for others to view the ETA or completion? I can't find anything in their public issue webpage or anywhere else. |
This work is scheduled for Q4 and we'll do planning at the beginning of the quarter. Otherwise progress will be communicated here in this issue. |
The underlying API support is currently Google-internal and waiting for a public release in early January, after all the waves of end-of-year deployment freeze. The Terraform side of development can begin once the underlying API is ready, tentatively Q1 2025. |
We're hoping to see this feature very soon 🙏🏻 |
Community Note
Description
I can't seem to find any documentation or resources for BigQuery's Row Level Security. Do exists resources provide for this already, or does a new resource or modification of existing resource need to be crafted?
The only workaround to this seems to be a to create BigQuery Job to add the permissions.
New or Affected Resource(s)
Potential Terraform Configuration
References
https://cloud.google.com/bigquery/docs/managing-row-level-security#create-policy
b/328133777
The text was updated successfully, but these errors were encountered: