-
Notifications
You must be signed in to change notification settings - Fork 594
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
HashOnCookie and HashOnCookiePath are not propagated through the Ingress Controller #132
Comments
Types.go line 119
Kong.go line 126
|
@jdevalk2 Do you mind sending a PR for this? Thanks! |
I will send a PR though internally we are working on signing off on the CLA. When that is done I can submit a PR. |
#139 was merged into master. Stay tuned for our next release! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
How each request is routed to which backend server is determined by HashOn setting.
One strategy is to write a cookie in the request so that the next request that comes in can be routed to the same backend server (stick session).
Setting a route with HashOn strategy based on Cookie, the HashOnCookie and HashOnCookiePath are never parsed and thus ignored.
By being empty the HashOn strategy can never be set to cookie in Kong Ingress Controller rule specification.
Note I have an initial patch for this below.
Kubernetes version
1.11.3
Environment
Azure AKS
What happened
Trying to set the hash strategy to cookie, without success.
Upon investigation it seems that the code is not there to propagate HashOnCookie and HashOnCookiePath. So these values are always empty.
Because they are not parsed and empty, the Cookie setting itself is also flagged as invalid.
Expected behaviour
I can set HashOn strategy to Cookie
I can set the HashOnCookie and HashOnCookiePath and when I then look in the Kong database, I can see those settings persisted and used by the Kong api gateway.
Steps To Reproduce
The text was updated successfully, but these errors were encountered: