Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[SPARK-16796][Web UI] Visible passwords on Spark environment page
  • Loading branch information
Devian-ua committed Jul 31, 2016
commit 1bee0da0d88ea76d38f557b89560c0651fd50963
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ import org.apache.spark.ui.{UIUtils, WebUIPage}

private[ui] class EnvironmentPage(parent: EnvironmentTab) extends WebUIPage("") {
private val listener = parent.listener
val passwordProperties: Set[String] = Set("spark.ssl.keyPassword",
"spark.ssl.keyStorePassword", "spark.ssl.trustStorePassword")

def removePass(kv: (String, String)): (String, String) = {
if (passwordProperties.contains(kv._1)) {
private def removePass(kv: (String, String)): (String, String) = {
if (kv._1.toLowerCase.contains("password")) {
return (kv._1, "******")
}
kv
Expand Down