-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-49104][CORE][DOCS] Document JWSFilter usage in Spark UI and REST API and rename parameter to secretKey
#47596
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
…REST API and rename parameter to `secretKey`
| <tr> | ||
| <td><code>spark.redaction.regex</code></td> | ||
| <td>(?i)secret|password|token|access[.]key</td> | ||
| <td>(?i)secret|password|token|access[.]?key</td> |
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.
Actually, this is missed at #47392 .
| */ | ||
| override def init(config: FilterConfig): Unit = { | ||
| key = Keys.hmacShaKeyFor(Decoders.BASE64URL.decode(config.getInitParameter("key"))); | ||
| key = Keys.hmacShaKeyFor(Decoders.BASE64URL.decode(config.getInitParameter("secretKey"))); |
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.
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.
secretKey will be redact by Spark, right?
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.
As you make the change #47596 (comment), do we still need to change this param to secretKey?
|
Could you review this, @viirya ? |
|
Could you review this PR, @yaooqinn ? |
|
Merged to master. |
|
Thank you, @viirya and @HyukjinKwon . To @viirya , yes. We need to rename
|
|
Late LGTM |

What changes were proposed in this pull request?
This PR aims the following.
JWSFilterand its usage inSpark UIandREST APISpark UIsection ofConfigurationpageSpark SecuritypageSpark StandalonepagekeytosecretKeyto redact it in Spark Driver UI and Spark Master UI.Why are the changes needed?
To apply recent new security features
JWSFilter#47575spark.master.rest.filters#47595Does this PR introduce any user-facing change?
No because this is a new feature of Apache Spark 4.0.0.
How was this patch tested?
Pass the CIs and manual review.
spark-standalone.htmlsecurity.htmlconfiguration.htmlWas this patch authored or co-authored using generative AI tooling?
No.