mirror of https://github.com/perkeep/perkeep.git
serverinit: add b2 and encrypt secrets to redaction list
Change-Id: Ie8d6011979128a60f2c151726fbef2c352caf1e0
This commit is contained in:
parent
46ea7699a8
commit
e4b5e99e3f
|
@ -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*\})`)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue