-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Cannot resolve requests containing cookies in Kubernetes #33735
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
Comments
Does the problem occur without Spring Cloud? |
Removed all the application code besides the main and removed Spring Cloud dependencies. I'm using Spring actuator in this example but experienced the same behaviour with |
Thanks for trying things with a more minimal setup. It appears that something is using the value of the I've never seen anything like this before, either with Kubernetes or without. As such, I am inclined to suspect that something in your K8S enviroment is causing the problem. What is listening on port 80? It's quite unusual for a Boot app to listen directly on port 80. If it's something else that's routing requests to the Boot application, what is it and how is it configured? |
Changing the port to 8080 and Docker image from We'll have to do more investigation on our end to find the root cause. |
@rob-oberbeck I'll close this one for now whilst you investigate. If you're able to create a simple reproducer, please let us know and we can reopen it. |
Same issue from our application. Strange things is that: we have two application, one application can work fine with cookie, other application can't work fine, both are same spring boot version 3.0.1. |
@rob-oberbeck After our application upgrade com.datadoghq:dd-java-agent to 1.3.0, then fix this issue. |
Did the same to fix the issue. Thank you! |
Uh oh!
There was an error while loading. Please reload this page.
Versions:
3.0.1
2022.0.0
v1.22.11
Description:
Spring application cannot resolve requests containing cookies when running in a Kubernetes cluster.
However, running the application locally from the IDE works just fine.
Did not experience this issue with Spring Boot
2.7.6
and Spring Cloud2021.0.5
.Given the application is deployed in a Kubernetes cluster, the following requests have been sent from the pod itself.
Request without a cookie:
Request with cookie:
Server log:
The text was updated successfully, but these errors were encountered: