serverinit: add b2 and encrypt secrets to redaction list

Change-Id: Ie8d6011979128a60f2c151726fbef2c352caf1e0
This commit is contained in:
Filippo Valsorda 2016-10-24 13:17:10 +01:00
parent 46ea7699a8
commit e4b5e99e3f
1 changed files with 1 additions and 1 deletions

View File

@ -703,7 +703,7 @@ type configHandler struct {
var (
knownKeys = regexp.MustCompile(`(?ms)^\s+"_knownkeys": {.+?},?\n`)
sensitiveLine = regexp.MustCompile(`(?m)^\s+\"(auth|aws_secret_access_key|password|client_secret)\": "[^\"]+".*\n`)
sensitiveLine = regexp.MustCompile(`(?m)^\s+\"(auth|aws_secret_access_key|password|client_secret|application_key|passphrase)\": "[^\"]+".*\n`)
trailingComma = regexp.MustCompile(`,(\n\s*\})`)
)