You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the bug?
When following the documentation instructions to setup a new IP2Geo datasource, the creation fail, likely because of proxying on the OpenSearch Project side (details bellow).
How can one reproduce the bug?
From the "Dev Tools", send this request:
PUT /_plugins/geospatial/ip2geo/datasource/asn
{
"endpoint": "https://geoip.maps.opensearch.org/v1/geolite2-asn/manifest.json",
"update_interval_in_days": 3
}
{
"error": {
"root_cause": [
{
"type": "action_request_validation_exception",
"reason": "Validation Failed: 1: Error occurred while reading a file from https://geoip.maps.opensearch.org/v1/geolite2-asn/manifest.json: java.io.IOException: Server returned HTTP response code: 403 for URL: https://geoip.maps.opensearch.org/v1/geolite2-asn/manifest.json;"
}
],
"type": "action_request_validation_exception",
"reason": "Validation Failed: 1: Error occurred while reading a file from https://geoip.maps.opensearch.org/v1/geolite2-asn/manifest.json: java.io.IOException: Server returned HTTP response code: 403 for URL: https://geoip.maps.opensearch.org/v1/geolite2-asn/manifest.json;"
},
"status": 400
}
What is the expected behavior?
The datasource should be created without error.
What is your host/environment?
OS: Debian
Version 2.11.1
Do you have any additional context?
The endpoint URL when reached with Firefox works as expected.
Accessing the same URL with curl fail with a same error code:
Accessing the same URL with curl and providing a custom User-Agent works:
romain@zappy ~ % curl -I -H "User-Agent: Firefox" https://geoip.maps.opensearch.org/v1/geolite2-asn/manifest.jsonHTTP/2 200 content-type: binary/octet-streamcontent-length: 282date: Sat, 10 Feb 2024 20:49:57 GMTlast-modified: Fri, 09 Feb 2024 22:22:36 GMTetag: "cb0bf663c6922899d806090aba4e0910"x-amz-server-side-encryption: AES256content-encoding: accept-ranges: bytesserver: AmazonS3x-cache: Hit from cloudfrontvia: 1.1 a45555e8d20cb505b62dfda511e6ba6c.cloudfront.net (CloudFront)x-amz-cf-pop: LAX3-C4x-amz-cf-id: C7EDBw-xoaqQfsos-RkY05yuuB3Xac6V95sPMsyOmrVffuSQyIkjJg==age: 29
According to the headers of the failing request, a proxy (CloudFront) in front of the service seems to prevent OpenSearch from downloading the manifest.
The text was updated successfully, but these errors were encountered:
Thanks for reporting the issue. The IP address is blocked by internal rule in firewall. We will re-evaluate the rule and see if we can unblock the IP address.
Look good, thanks 🤩 ! As far as I am concerted we can close this issue, but I will let you do so in case the change is temporary and you need this feedback to make it permanent.
What is the bug?
When following the documentation instructions to setup a new IP2Geo datasource, the creation fail, likely because of proxying on the OpenSearch Project side (details bellow).
How can one reproduce the bug?
From the "Dev Tools", send this request:
The request fail because of "HTTP response code: 403 for URL: https://geoip.maps.opensearch.org/v1/geolite2-asn/manifest.json":
What is the expected behavior?
The datasource should be created without error.
What is your host/environment?
Do you have any additional context?
The endpoint URL when reached with Firefox works as expected.
Accessing the same URL with curl fail with a same error code:
Accessing the same URL with curl and providing a custom User-Agent works:
According to the headers of the failing request, a proxy (CloudFront) in front of the service seems to prevent OpenSearch from downloading the manifest.
The text was updated successfully, but these errors were encountered: