Skip to content

Conversation

@Devian-ua
Copy link
Contributor

@Devian-ua Devian-ua commented Aug 3, 2016

What changes were proposed in this pull request?

Mask spark.authenticate.secret on Spark environment page (Web UI).
This is addition to #14409

How was this patch tested?

./dev/run-tests
[info] ScalaTest
[info] Run completed in 1 hour, 8 minutes, 38 seconds.
[info] Total number of tests run: 2166
[info] Suites: completed 65, aborted 0
[info] Tests: succeeded 2166, failed 0, canceled 0, ignored 590, pending 0
[info] All tests passed.


private def removePass(kv: (String, String)): (String, String) = {
if (kv._1.toLowerCase.contains("password")) (kv._1, "******") else kv
if (kv._1.toLowerCase.contains("password") || propertiesToMask.contains(kv._1.toLowerCase)) {
Copy link
Member

Choose a reason for hiding this comment

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

Are we sure we don't want to mask every property with the word secret like we did with password?

@Devian-ua
Copy link
Contributor Author

@srowen @ajbozarth Yep, more properties with secret might be added, we can mask them all.

@Devian-ua
Copy link
Contributor Author

@srowen Can you verify the patch?

@srowen
Copy link
Member

srowen commented Aug 5, 2016

Jenkins test this please

@SparkQA
Copy link

SparkQA commented Aug 5, 2016

Test build #63280 has finished for PR 14484 at commit a73d818.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Aug 6, 2016

Merged to master

@asfgit asfgit closed this in 14dba45 Aug 6, 2016
asfgit pushed a commit that referenced this pull request Nov 2, 2016
## What changes were proposed in this pull request?

Mask `spark.authenticate.secret` on Spark environment page (Web UI).
This is addition to #14409

## How was this patch tested?
`./dev/run-tests`
[info] ScalaTest
[info] Run completed in 1 hour, 8 minutes, 38 seconds.
[info] Total number of tests run: 2166
[info] Suites: completed 65, aborted 0
[info] Tests: succeeded 2166, failed 0, canceled 0, ignored 590, pending 0
[info] All tests passed.

Author: Artur Sukhenko <artur.sukhenko@gmail.com>

Closes #14484 from Devian-ua/SPARK-16796.

(cherry picked from commit 14dba45)
Signed-off-by: Sean Owen <sowen@cloudera.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants