Skip to content

[SPARK-41958][CORE][3.3] Disallow arbitrary custom classpath with pro… - #706

Merged
hellozepp merged 1 commit into
Kyligence:kyspark-3.3.x-4.x-qafrom
hellozepp:KE-42913
Oct 30, 2023
Merged

[SPARK-41958][CORE][3.3] Disallow arbitrary custom classpath with pro…#706
hellozepp merged 1 commit into
Kyligence:kyspark-3.3.x-4.x-qafrom
hellozepp:KE-42913

Conversation

@hellozepp

Copy link
Copy Markdown

What changes were proposed in this pull request?

Cherry-pick from #39474 Disallow arbitrary custom classpath with proxy user in cluster mode

Fix snyk for Improper Privilege Management

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

…xy user in cluster mode

Backporting fix for SPARK-41958 to 3.3 branch from apache#39474
Below description from original PR.

--------------------------

### What changes were proposed in this pull request?

This PR proposes to disallow arbitrary custom classpath with proxy user in cluster mode by default.

### Why are the changes needed?

To avoid arbitrary classpath in spark cluster.

### Does this PR introduce _any_ user-facing change?

Yes. User should reenable this feature by `spark.submit.proxyUser.allowCustomClasspathInClusterMode`.

### How was this patch tested?

Manually tested.

Closes apache#39474 from Ngone51/dev.

Lead-authored-by: Peter Toth <peter.tothgmail.com>
Co-authored-by: Yi Wu <yi.wudatabricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223apache.org>

(cherry picked from commit 909da96)

### What changes were proposed in this pull request?

### Why are the changes needed?

### Does this PR introduce _any_ user-facing change?

### How was this patch tested?

Closes apache#41428 from degant/spark-41958-3.3.

Lead-authored-by: Degant Puri <depuri@microsoft.com>
Co-authored-by: Peter Toth <peter.toth@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@hellozepp
hellozepp merged commit 07fc833 into Kyligence:kyspark-3.3.x-4.x-qa Oct 30, 2023
yhcast0 pushed a commit to yhcast0/spark that referenced this pull request Nov 16, 2023
…xy user in cluster mode (Kyligence#706)

Backporting fix for SPARK-41958 to 3.3 branch from apache#39474
Below description from original PR.

--------------------------

### What changes were proposed in this pull request?

This PR proposes to disallow arbitrary custom classpath with proxy user in cluster mode by default.

### Why are the changes needed?

To avoid arbitrary classpath in spark cluster.

### Does this PR introduce _any_ user-facing change?

Yes. User should reenable this feature by `spark.submit.proxyUser.allowCustomClasspathInClusterMode`.

### How was this patch tested?

Manually tested.

Closes apache#39474 from Ngone51/dev.

Lead-authored-by: Peter Toth <peter.tothgmail.com>



(cherry picked from commit 909da96)

### What changes were proposed in this pull request?

### Why are the changes needed?

### Does this PR introduce _any_ user-facing change?

### How was this patch tested?

Closes apache#41428 from degant/spark-41958-3.3.

Lead-authored-by: Degant Puri <depuri@microsoft.com>

Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Co-authored-by: Degant Puri <depuri@microsoft.com>
Co-authored-by: Peter Toth <peter.toth@gmail.com>
yhcast0 pushed a commit that referenced this pull request Nov 16, 2023
…xy user in cluster mode (#706)

Backporting fix for SPARK-41958 to 3.3 branch from apache#39474
Below description from original PR.

--------------------------

### What changes were proposed in this pull request?

This PR proposes to disallow arbitrary custom classpath with proxy user in cluster mode by default.

### Why are the changes needed?

To avoid arbitrary classpath in spark cluster.

### Does this PR introduce _any_ user-facing change?

Yes. User should reenable this feature by `spark.submit.proxyUser.allowCustomClasspathInClusterMode`.

### How was this patch tested?

Manually tested.

Closes apache#39474 from Ngone51/dev.

Lead-authored-by: Peter Toth <peter.tothgmail.com>



(cherry picked from commit 909da96)

### What changes were proposed in this pull request?

### Why are the changes needed?

### Does this PR introduce _any_ user-facing change?

### How was this patch tested?

Closes apache#41428 from degant/spark-41958-3.3.

Lead-authored-by: Degant Puri <depuri@microsoft.com>

Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Co-authored-by: Degant Puri <depuri@microsoft.com>
Co-authored-by: Peter Toth <peter.toth@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants