-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ControlFilter check fails when client IP is IPv6 #66
Comments
Facing the same issue on an Endpoint that was working fine until a month back. Haven't changed anything or deployed a new version so either something changed behind the scenes or a new requirement was added that has not been documented. |
Same issue since end of August. Any news ? |
It appears it was an API issue. No further reports since around 2021-09-10. |
Curious, did you change something in your API definition to make this go away? Still seeing the exception on our API |
@abhideep I did deploy a new App Engine version 2 days before, but I doubt it is related (only updated App Engine SDK and not e.g. this library). Did not deploy a new service configuration. |
Same here, we still got the exception... Probably caused by the brackets in IP address collected |
This is still an issue after having upgraded from Java 8 to Java 17. Was there a solution found that cause the issue to be closed? |
I can confirm that I'm seeing this again as I'm testing after migrating to the Java 11 runtime with legacy bundled services. Note that the request will pass on to the next filter (e.g. it is not blocked) after |
Turns out this is because the Servlet implementation (looks like Jetty for App Engine) has changed the format of IPv6 addresses returned from Submitted #67 to fix. As this repo wasn't updated since 2020 not holding my breath and will likely release this myself under a different package group given time. |
Since about 2021-08-26 the
GoogleAppEngineControlFilter
check fails for IPv6 addresses (sent ascaller_ip
, calledclientIp
in theCheckRequestInfo
API) with belowINVALID_ARGUMENT
error. If the IP address is IPv4 requests seem to succeed just fine.I'm not sure if this is due to this library not meeting a new requirement by the Google service control API or if the API itself is faulty. In the last case I hope you can forward this or let me know where to report it!
This is also reported by another user on Stack Overflow: https://stackoverflow.com/questions/69073149/invalid-caller-ip-in-google-cloud-endpoints-based-api
The text was updated successfully, but these errors were encountered: