From e7d4c92f3a5d8aa890cf4abf11e331f4c1ca6c59 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Tue, 13 Feb 2024 21:23:48 +0000 Subject: [PATCH] Promote `user_ip_request_headers` field on `google_compute_security_policy` resource to GA (#9872) [upstream:379d462fa7096c0f4789fc9e75463320603b14e2] Signed-off-by: Modular Magician --- .changelog/9872.txt | 3 +++ .../services/compute/resource_compute_security_policy_test.go | 3 +-- website/docs/r/compute_security_policy.html.markdown | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .changelog/9872.txt diff --git a/.changelog/9872.txt b/.changelog/9872.txt new file mode 100644 index 0000000000..06ac3cc376 --- /dev/null +++ b/.changelog/9872.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +compute: promoted `user_ip_request_headers` field on `google_compute_security_policy` resource to GA +``` \ No newline at end of file diff --git a/google-beta/services/compute/resource_compute_security_policy_test.go b/google-beta/services/compute/resource_compute_security_policy_test.go index 36ac7454e3..203271e71f 100644 --- a/google-beta/services/compute/resource_compute_security_policy_test.go +++ b/google-beta/services/compute/resource_compute_security_policy_test.go @@ -1095,11 +1095,10 @@ resource "google_compute_security_policy" "policy" { ] } log_level = "VERBOSE" - user_ip_request_headers = [ + user_ip_request_headers = [ "True-Client-IP", "x-custom-ip" ] - } } `, spName) diff --git a/website/docs/r/compute_security_policy.html.markdown b/website/docs/r/compute_security_policy.html.markdown index 98af03c921..92d2b5ab5b 100644 --- a/website/docs/r/compute_security_policy.html.markdown +++ b/website/docs/r/compute_security_policy.html.markdown @@ -204,7 +204,7 @@ The following arguments are supported: * `NORMAL` - Normal log level. * `VERBOSE` - Verbose log level. -* `user_ip_request_headers` - (Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html)) An optional list of case-insensitive request header names to use for resolving the callers client IP address. +* `user_ip_request_headers` - (Optional) An optional list of case-insensitive request header names to use for resolving the callers client IP address. The `json_custom_config` block supports: