Skip to content
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

[SPARK-36122][CORE] Passing on needClientAuth to Jetty SSLContextFactory #33301

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions core/src/main/scala/org/apache/spark/SSLOptions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ private[spark] case class SSLOptions(
trustStore.foreach(file => sslContextFactory.setTrustStorePath(file.getAbsolutePath))
trustStorePassword.foreach(sslContextFactory.setTrustStorePassword)
trustStoreType.foreach(sslContextFactory.setTrustStoreType)
/*
* Need to pass needClientAuth flag to jetty for Jetty server to authenticate
* client certificates. This would help enable mTLS authentication.
*/
sslContextFactory.setNeedClientAuth(needClientAuth)
srowen marked this conversation as resolved.
Show resolved Hide resolved

}
protocol.foreach(sslContextFactory.setProtocol)
if (supportedAlgorithms.nonEmpty) {
Expand Down