Skip to content

apigee: send zero values for ip_header_index in google_apigee_environment#17663

Open
ramonvermeulen wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
ramonvermeulen:patch-1
Open

apigee: send zero values for ip_header_index in google_apigee_environment#17663
ramonvermeulen wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
ramonvermeulen:patch-1

Conversation

@ramonvermeulen
Copy link
Copy Markdown
Contributor

@ramonvermeulen ramonvermeulen commented May 21, 2026

Closes hashicorp/terraform-provider-google#27493

Because the field represents a zero-based index on a comma-separated list, such as an IP list in an HTTP request header (e.g., X-Forwarded-For), it is essential that index 0 will be sent to the API and not be ignored.

We encountered this limitation, and as a workaround, we are currently forced to rewrite the header in our external load balancer as follows: some-header:1.1.1.1,${observed_client_ip}, where 1.1.1.1 serves as a placeholder to bypass the index issue. In Apigee, we then set ip_header_index=1 to work around this provider-specific limitation.

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

apigee: send zero values for `ip_header_index` in `google_apigee_environment`

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label May 21, 2026
@ramonvermeulen ramonvermeulen marked this pull request as ready for review May 21, 2026 10:21
@github-actions github-actions Bot requested a review from slevenick May 21, 2026 10:21
@github-actions
Copy link
Copy Markdown

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@slevenick, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

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

Labels

awaiting-approval Pull requests that need reviewer's approval to run presubmit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error when setting ip_header_index = 0 on google_apigee_environment

2 participants