-
Notifications
You must be signed in to change notification settings - Fork 248
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
Retain all cookies by default #509
Comments
I'm interested in doing this, can you assign it to me? |
MikaelSmith
added a commit
to MikaelSmith/impyla
that referenced
this issue
Jun 28, 2024
Adds wildcard ('*') support to the `http_cookie_names` connect property to preserve all cookies returned by the server. Preserves prior behavior for any other value of `http_cookie_names`.
MikaelSmith
added a commit
to MikaelSmith/impyla
that referenced
this issue
Jun 28, 2024
Adds wildcard ('*') support to the `http_cookie_names` connect property to preserve all cookies returned by the server. Preserves prior behavior for any other value of `http_cookie_names`.
MikaelSmith
added a commit
to MikaelSmith/impyla
that referenced
this issue
Jun 28, 2024
Adds wildcard ('*') support to the `http_cookie_names` connect property to preserve all cookies returned by the server. Preserves prior behavior for any other value of `http_cookie_names`.
MikaelSmith
added a commit
to MikaelSmith/impyla
that referenced
this issue
Aug 6, 2024
Adds wildcard ('*') support to the `http_cookie_names` connect property to preserve all cookies returned by the server. Preserves prior behavior for any other value of `http_cookie_names`.
csringhofer
pushed a commit
that referenced
this issue
Aug 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
connect's 'http_cookie_names' parameter specifies a list of cookies to retain and pass along for HS2 HTTP connections. This currently defaults to ['impala.auth', 'impala.session.id', 'hive.server2.auth'] (see https://github.com/cloudera/impyla/blob/master/impala/dbapi.py#L192 ).
In general, we don't know what proxies are between impala-shell and Impala, and we don't know what cookie name they rely on being preserved. As an example, Apache Knox can rely on a cookie it sets to route requests to the appropriate Impala coordinator. Limiting our cookie preservation to a small allow list makes this much more brittle and hard to use. Clients need to know the right list of cookies to put in http_cookie_names, and that is not obvious.
It seems like the default behavior should be to preserve all cookies. Maybe http_cookie_names=None adopts this behavior, and the user can still specify http_cookie_names to limit the cookies for unusual cases.
Companion Impala issue: IMPALA-12093
The text was updated successfully, but these errors were encountered: