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.25k stars 1.7k forks source link

Setting field-level access control in logging buckets #10142

Open TomBAMU opened 2 years ago

TomBAMU commented 2 years ago

Community Note

Description

The feature of field-level access control should be supported via terraform provider. It is possible to restrict the access control of certain logging fields to a minimum of individuals . Especially for sensitive data, this option is very useful. Unfortunately the provider does not offer a functionality to do so for the logging bucket. My desired enhancement would be a equivalent to the gcloud command:

gcloud alpha logging buckets update myLoggingBucketWithSensitiveData --location=global \
--restricted-fields="jsonPayload.mySensitiveLoggingData,jsonPayload.anotherSensitiveInformation"

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_logging_project_bucket_config" "basic" {
    project    = google_project.default.name
    location  = "global"
    retention_days = 30
    bucket_id = "myLoggingBucketWithSensitiveData"
    restricted_fields = "jsonPayload.mySensitiveLoggingData,jsonPayload.anotherSensitiveInformation"
}

References

GCP Documentation - logging field-level access control

b/312911398

nbrys commented 1 week ago

Is there any plan into supporting this?