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
Filter every property containing secret
  • Loading branch information
Devian-ua committed Aug 3, 2016
commit a73d81834a62546048fe0c4ddd3158b6a2edffc4
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
// Spark Properties (lowercase). Their values will be changed to ***** in WebUI
private val propertiesToMask = Set("spark.authenticate.secret")

private def removePass(kv: (String, String)): (String, String) = {
if (kv._1.toLowerCase.contains("password") || propertiesToMask.contains(kv._1.toLowerCase)) {
if (kv._1.toLowerCase.contains("password") || kv._1.toLowerCase.contains("secret")) {
(kv._1, "******")
} else kv
}
Expand Down