Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ffc8cf56db | ||
|
|
d2e03ab7e8 | ||
|
|
a2d17be0c4 | ||
|
|
a5f7b8e586 | ||
|
|
c2b44332d6 | ||
|
|
bb7968b612 |
@@ -124,7 +124,7 @@ func MaskSensitiveInfo(str string) string {
|
||||
// Mask IP addresses
|
||||
str = maskIPPattern.ReplaceAllString(str, "***.***.***.***")
|
||||
|
||||
// Mask API keys (e.g., "api_key:test-api-key-for-redaction" -> "api_key:***")
|
||||
// Mask API keys (e.g., "api_key:AIzaSyAAAaUooTUni8AdaOkSRMda30n_Q4vrV70" -> "api_key:***")
|
||||
str = maskApiKeyPattern.ReplaceAllString(str, "${1}api_key:***${3}")
|
||||
|
||||
return str
|
||||
|
||||
Reference in new issue
Block a user