Skip to content
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 "Disable copy and export of table through APIs" for Analytics Hub GCP #20626

Open
DxaL opened this issue Dec 9, 2024 · 1 comment
Open

Comments

@DxaL
Copy link

DxaL commented Dec 9, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Description

Terraform Version & Provider Version(s)

Terraform v1.10.1
on macOS arm64

provider registry.terraform.io/hashicorp/google v6.12.0
provider registry.terraform.io/hashicorp/google-beta v6.12.0

Affected Resource(s)

google_bigquery_analytics_hub_listing

Terraform Configuration

[...]
  location         = "US"
  data_exchange_id = google_bigquery_analytics_hub_data_exchange.domain.data_exchange_id
  listing_id       = each.value.name
  display_name     = each.value.name
  description      = substr(each.value.description, 0, 254)
  project          = var.project_id_exchange

  bigquery_dataset {
    dataset = "projects/${var.project_id}/datasets/${each.value.dataset}"
  }

  restricted_export_config {
    enabled               = true
    restrict_query_result = true
  }
}

Expected Behavior

you want to activate the option Disable copy and export of tables through APIs

Actual Behavior

only activates two options and the third is activated manually, after the terraform apply.
image

New or Affected Resource(s)

  • google_bigquery_analytics_hub_listing

Potential Terraform Configuration

[...]
  location         = "US"
  data_exchange_id = google_bigquery_analytics_hub_data_exchange.domain.data_exchange_id
  listing_id       = each.value.name
  display_name     = each.value.name
  description      = substr(each.value.description, 0, 254)
  project          = var.project_id_exchange

  bigquery_dataset {
    dataset = "projects/${var.project_id}/datasets/${each.value.dataset}"
  }

  restricted_export_config {
    enabled               = true
    restrict_query_result = true
    restrict_copy_and_export_of_table_through_APIs = true   <------------
  }
}

image

References

https://cloud.google.com/bigquery/docs/analytics-hub-manage-listings#create_a_listing

  • Data Egress (point 8)

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/bigquery_analytics_hub_listing

b/383134034

@github-actions github-actions bot added forward/review In review; remove label to forward service/bigquery labels Dec 9, 2024
@BBBmau BBBmau removed the forward/review In review; remove label to forward label Dec 9, 2024
@BBBmau BBBmau added this to the Goals milestone Dec 9, 2024
@BBBmau BBBmau added the size/s label Dec 9, 2024
@BBBmau
Copy link
Contributor

BBBmau commented Dec 9, 2024

Currently the API docs have it marked as output only, however it seems like this is incorrect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants