Skip to content

Commit

Permalink
adding recipient and banner
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Gregory committed Jun 1, 2020
1 parent 09b98c5 commit 0d9f08a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,15 @@ var versionedExpressions = map[string]expression{

func main() {
log.SetFlags(0) // no timestamps on our logs

log.Println("***********************")
log.Println("*** Starting tfmask ***")
log.Println("***********************")

// Character used to mask sensitive output
var tfmaskChar = getEnv("TFMASK_CHAR", "*")
// Pattern representing sensitive output
var tfmaskValuesRegex = getEnv("TFMASK_VALUES_REGEX",
"(?i)^.*(oauth|secret|token|password|key|result|id).*$")
"(?i)^.*(oauth|secret|token|password|key|result|id|recipient).*$")
// Pattern representing sensitive resource
var tfmaskResourceRegex = getEnv("TFMASK_RESOURCES_REGEX",
"(?i)^(random_id|random_string).*$")
Expand Down

0 comments on commit 0d9f08a

Please sign in to comment.