-
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 |
…REST API and rename parameter to `secretKey` ### What changes were proposed in this pull request? This PR aims the following. - Document `JWSFilter` and its usage in `Spark UI` and `REST API` - `Spark UI` section of `Configuration` page - `Spark Security` page - `Spark Standalone` page - Rename the parameter `key` to `secretKey` to redact it in Spark Driver UI and Spark Master UI. ### Why are the changes needed? To apply recent new security features - apache#47575 - apache#47595 ### Does 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.html`  - `security.html`   - `configuration.html`  ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#47596 from dongjoon-hyun/SPARK-49104. Authored-by: Dongjoon Hyun <dhyun@apple.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
…REST API and rename parameter to `secretKey` This PR aims the following. - Document `JWSFilter` and its usage in `Spark UI` and `REST API` - `Spark UI` section of `Configuration` page - `Spark Security` page - `Spark Standalone` page - Rename the parameter `key` to `secretKey` to redact it in Spark Driver UI and Spark Master UI. To apply recent new security features - apache#47575 - apache#47595 No because this is a new feature of Apache Spark 4.0.0. Pass the CIs and manual review. - `spark-standalone.html`  - `security.html`   - `configuration.html`  No. Closes apache#47596 from dongjoon-hyun/SPARK-49104. Authored-by: Dongjoon Hyun <dhyun@apple.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
…REST API and rename parameter to `secretKey` ### What changes were proposed in this pull request? This PR aims the following. - Document `JWSFilter` and its usage in `Spark UI` and `REST API` - `Spark UI` section of `Configuration` page - `Spark Security` page - `Spark Standalone` page - Rename the parameter `key` to `secretKey` to redact it in Spark Driver UI and Spark Master UI. ### Why are the changes needed? To apply recent new security features - apache#47575 - apache#47595 ### Does 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.html`  - `security.html`   - `configuration.html`  ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#47596 from dongjoon-hyun/SPARK-49104. Authored-by: Dongjoon Hyun <dhyun@apple.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
…REST API and rename parameter to `secretKey` ### What changes were proposed in this pull request? This PR aims the following. - Document `JWSFilter` and its usage in `Spark UI` and `REST API` - `Spark UI` section of `Configuration` page - `Spark Security` page - `Spark Standalone` page - Rename the parameter `key` to `secretKey` to redact it in Spark Driver UI and Spark Master UI. ### Why are the changes needed? To apply recent new security features - apache#47575 - apache#47595 ### Does 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.html`  - `security.html`   - `configuration.html`  ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#47596 from dongjoon-hyun/SPARK-49104. Authored-by: Dongjoon Hyun <dhyun@apple.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
What changes were proposed in this pull request?
This PR aims the following.
JWSFilter
and its usage inSpark UI
andREST API
Spark UI
section ofConfiguration
pageSpark Security
pageSpark Standalone
pagekey
tosecretKey
to 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.html
security.html
configuration.html
Was this patch authored or co-authored using generative AI tooling?
No.