Skip to content

Conversation

@srowen
Copy link
Member

@srowen srowen commented Oct 17, 2023

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

@github-actions github-actions bot added the SQL label Oct 17, 2023
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM.

dongjoon-hyun pushed a commit that referenced this pull request Oct 17, 2023
### 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>
dongjoon-hyun pushed a commit that referenced this pull request Oct 17, 2023
### 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>
dongjoon-hyun pushed a commit that referenced this pull request Oct 17, 2023
### 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>
@dongjoon-hyun
Copy link
Member

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");
Copy link
Contributor

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.

Copy link
Member Author

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

@LuciferYang
Copy link
Contributor

late LGTM, hahaha, this is a very old security issue.

viirya pushed a commit to viirya/spark-1 that referenced this pull request Oct 19, 2023
### 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>
dongjoon-hyun added a commit that referenced this pull request Jan 31, 2025
### 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>
dongjoon-hyun added a commit that referenced this pull request Jan 31, 2025
### 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>
turboFei pushed a commit to turboFei/spark that referenced this pull request Nov 6, 2025
…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>
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 14, 2025
### 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants