hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.29k stars 1.72k forks source link

google_bigquery_routine missing ability to configure `EXTERNAL SECURITY INVOKER` mode #19221

Open eastlondoner opened 3 weeks ago

eastlondoner commented 3 weeks ago

Community Note

Description

The google_bigquery_routine does not have a way to set the INVOKER security mode that is described here: https://cloud.google.com/bigquery/docs/spark-procedures#use_a_custom_service_account

Without this set it's not possible to call the procedure using a custom service account. When calling with a custom service account the following error is encountered:

Invalid input during Spark procedure invocation. Custom service account is only allowed for Spark procedure in INVOKER security mode.

it would be great to add the ability to set this security mode on the google_bigquery_routine resource.

It may be that the REST API is missing the ability to set this property, I cannot see any mention of it in the REST docs https://cloud.google.com/bigquery/docs/reference/rest/v2/routines#Routine

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_bigquery_routine" "sproc" {
  ...
  external_security = "INVOKER"
}

References

No response

b/362278269

melinath commented 2 weeks ago

Note from triage: Terraform can only support features that are exposed through the REST API, so I'm marking this as blocked pending that support.

wj-chen commented 2 weeks ago

I have reached out to the BigQuery Routines team to ask about API support for setting security mode.