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