However the webhooks are blocked due to the source IP being the IP address of my private GKE node. It appears the source IP from Stripe is not preserved. Is this correct? and what can I do to pass the original source IP through?
{
httpRequest: {
latency: "0.026s"
protocol: "http"
remoteIp: "
10.146.64.8"
requestMethod: "POST"
requestSize: "1660"
requestUrl: "/stripe?key=XXXXXXXXXXXXXRDUfVThbJUjQQVs5TYvi4v-UI"
responseSize: "217"
status: 403
}
"insertId": "4195ccbe-35c1-4027-b67d-ebb64b1452084850908905639612439@a1",
"jsonPayload": {
"error_cause": "IP address blocked.",
"api_key_state": "VERIFIED",
"service_config_id": "2022-07-26r0",
"service_agent": "ESPv2/2.37.0",
"api_method": "1.stripe_gke_endpoints_devproj_dev20i_cloud_goog.Stripe",
"http_status_code": 403,
"producer_project_id": "devproj-dev20i",
"response_code_detail": "service_control_check_error{IP_ADDRESS_BLOCKED}",
"api_key": "XXXXXXXXXXXfVThbJUjQQVs5TYvi4v-UI",
"api_version": "1.0.0",
"log_message": "1.stripe_gke_endpoints_devproj_dev20i_cloud_goog.Stripe is called",
"timestamp": 1658906703.4400651,
"location": "us-east4-a",
"api_name": "1.stripe_gke_endpoints_devproj_dev20i_cloud_goog"
},
"httpRequest": {
"requestMethod": "POST",
"requestUrl": "/stripe?key=XXXXXXXXXXXXXRDUfVThbJUjQQVs5TYvi4v-UI",
"requestSize": "1660",
"status": 403,
"responseSize": "217",
"remoteIp": "
10.146.64.8",
"latency": "0.026s",
"protocol": "http"
},
"resource": {
"type": "api",
"labels": {
"version": "1.0.0",
"project_id": "devproj-dev20i",
"service": "
stripe.gke.endpoints.devproj-dev20i.cloud.goog",
"location": "us-east4-a",
"method": "1.stripe_gke_endpoints_devproj_dev20i_cloud_goog.Stripe"
}
},
"timestamp": "2022-07-27T07:25:03.440065113Z",
"severity": "ERROR",
"logName": "projects/devproj-dev20i/logs/
stripe.gke.endpoints.devproj-dev20i.cloud.goog%2Fendpoints_log",
"trace": "projects/devproj-dev20i/traces/55fc1a4bfdda47e6b42adffe3be37d16",
"receiveTimestamp": "2022-07-27T07:25:06.150356778Z"
}