You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2016/08/06 03:41:47 UTC
spark git commit: [SPARK-16796][WEB UI] Mask spark.authenticate.secret on Spark environ…
Repository: spark
Updated Branches:
refs/heads/master 55d6dad6f -> 14dba4520
[SPARK-16796][WEB UI] Mask spark.authenticate.secret on Spark environ\u2026
## What changes were proposed in this pull request?
Mask `spark.authenticate.secret` on Spark environment page (Web UI).
This is addition to https://github.com/apache/spark/pull/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 <ar...@gmail.com>
Closes #14484 from Devian-ua/SPARK-16796.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/14dba452
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/14dba452
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/14dba452
Branch: refs/heads/master
Commit: 14dba45208d8a5511be2cf8ddf22e688ef141e88
Parents: 55d6dad
Author: Artur Sukhenko <ar...@gmail.com>
Authored: Sat Aug 6 04:41:47 2016 +0100
Committer: Sean Owen <so...@cloudera.com>
Committed: Sat Aug 6 04:41:47 2016 +0100
----------------------------------------------------------------------
.../src/main/scala/org/apache/spark/ui/env/EnvironmentPage.scala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/14dba452/core/src/main/scala/org/apache/spark/ui/env/EnvironmentPage.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/ui/env/EnvironmentPage.scala b/core/src/main/scala/org/apache/spark/ui/env/EnvironmentPage.scala
index 22136a6..9f6e9a6 100644
--- a/core/src/main/scala/org/apache/spark/ui/env/EnvironmentPage.scala
+++ b/core/src/main/scala/org/apache/spark/ui/env/EnvironmentPage.scala
@@ -27,7 +27,9 @@ private[ui] class EnvironmentPage(parent: EnvironmentTab) extends WebUIPage("")
private val listener = parent.listener
private def removePass(kv: (String, String)): (String, String) = {
- if (kv._1.toLowerCase.contains("password")) (kv._1, "******") else kv
+ if (kv._1.toLowerCase.contains("password") || kv._1.toLowerCase.contains("secret")) {
+ (kv._1, "******")
+ } else kv
}
def render(request: HttpServletRequest): Seq[Node] = {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org