Skip to content

Commit

Permalink
Patterns must match at start of line
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyist committed Jan 31, 2024
1 parent 4290df2 commit bca3c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channel_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func sanitizeSecrets(body string) string {
pattern, exists := os.LookupEnv("COURIER_SANITIZE_PATTERN")

if !exists {
pattern = "(?:Po-Api-Key:.+\\n|X-Api-Key:.+\\n|Authorization:.+\\n|Token:.+\\n)+"
pattern = "(?:^Po-Api-Key:.+\\n|^X-Api-Key:.+\\n|^Authorization:.+\\n|^Token:.+\\n)+"
}

if sanitizeSecretsRegexp == nil {
Expand Down

0 comments on commit bca3c61

Please sign in to comment.