-
Notifications
You must be signed in to change notification settings - Fork 29k
[MINOR][SQL] Remove signature from Hive thriftserver exception #43402
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
Conversation
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM.
### What changes were proposed in this pull request? Don't return expected signature to caller in Hive thriftserver exception ### Why are the changes needed? Please see private discussion ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing tests ### Was this patch authored or co-authored using generative AI tooling? No Closes #43402 from srowen/HiveCookieSigner. Authored-by: Sean Owen <srowen@gmail.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com> (cherry picked from commit cf59b1f) Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
### What changes were proposed in this pull request? Don't return expected signature to caller in Hive thriftserver exception ### Why are the changes needed? Please see private discussion ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing tests ### Was this patch authored or co-authored using generative AI tooling? No Closes #43402 from srowen/HiveCookieSigner. Authored-by: Sean Owen <srowen@gmail.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com> (cherry picked from commit cf59b1f) Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
### What changes were proposed in this pull request? Don't return expected signature to caller in Hive thriftserver exception ### Why are the changes needed? Please see private discussion ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing tests ### Was this patch authored or co-authored using generative AI tooling? No Closes #43402 from srowen/HiveCookieSigner. Authored-by: Sean Owen <srowen@gmail.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com> (cherry picked from commit cf59b1f) Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
|
Merged to master/3.5/3.4/3.3. |
| if (!MessageDigest.isEqual(originalSignature.getBytes(), currentSignature.getBytes())) { | ||
| throw new IllegalArgumentException("Invalid sign, original = " + originalSignature + | ||
| " current = " + currentSignature); | ||
| throw new IllegalArgumentException("Invalid sign"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add incorrect signature? Invalid sign makes confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went for minimal change here. This is copied from Hive and meant to be a stopgap until Hive addresses an ongoing discussion about a potential security issue here
|
late LGTM, hahaha, this is a very old security issue. |
### What changes were proposed in this pull request? Don't return expected signature to caller in Hive thriftserver exception ### Why are the changes needed? Please see private discussion ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing tests ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#43402 from srowen/HiveCookieSigner. Authored-by: Sean Owen <srowen@gmail.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com> (cherry picked from commit cf59b1f) Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
### What changes were proposed in this pull request? This PR aims to remove signature from Hive thriftserver DEBUG log. ### Why are the changes needed? This is aligned with the upstream Apache Hive project. - apache/hive#4887 This is also aligned with the previous Spark change. - #43402 ### Does this PR introduce _any_ user-facing change? No, this is a debug message removal. ### How was this patch tested? Pass the CIs and manual review (because this is a removal). ### Was this patch authored or co-authored using generative AI tooling? No. Closes #49752 from dongjoon-hyun/minor_debug_msg. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
### What changes were proposed in this pull request? This PR aims to remove signature from Hive thriftserver DEBUG log. ### Why are the changes needed? This is aligned with the upstream Apache Hive project. - apache/hive#4887 This is also aligned with the previous Spark change. - #43402 ### Does this PR introduce _any_ user-facing change? No, this is a debug message removal. ### How was this patch tested? Pass the CIs and manual review (because this is a removal). ### Was this patch authored or co-authored using generative AI tooling? No. Closes #49752 from dongjoon-hyun/minor_debug_msg. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 4a33e96) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
…e#676) ### What changes were proposed in this pull request? Don't return expected signature to caller in Hive thriftserver exception ### Why are the changes needed? Please see private discussion ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing tests ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#43402 from srowen/HiveCookieSigner. Authored-by: Sean Owen <srowen@gmail.com> (cherry picked from commit cf59b1f) Signed-off-by: Dongjoon Hyun <dhyun@apple.com> Co-authored-by: Sean Owen <srowen@gmail.com>
### What changes were proposed in this pull request? This PR aims to remove signature from Hive thriftserver DEBUG log. ### Why are the changes needed? This is aligned with the upstream Apache Hive project. - apache/hive#4887 This is also aligned with the previous Spark change. - apache#43402 ### Does this PR introduce _any_ user-facing change? No, this is a debug message removal. ### How was this patch tested? Pass the CIs and manual review (because this is a removal). ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#49752 from dongjoon-hyun/minor_debug_msg. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 04e0ddf) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
Don't return expected signature to caller in Hive thriftserver exception
Why are the changes needed?
Please see private@ discussion
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing tests
Was this patch authored or co-authored using generative AI tooling?
No