You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users/v kivlev/backport redaction to 3.227.2 (#4467)
* Restore expanded redaction as a default feature. Add a set of new, highly accurate detections.
* Simplify provider name.
* Add feature flag support
* Cleanup
* Set off by default / remove knob, add tracing
* added extension / fixed tests
* remove duplicate masker, changes related to tests
* Update tests, remove extra blank lines
* update agent version
---------
Co-authored-by: Michael C. Fanning <[email protected]>
Co-authored-by: v-kivlev <undefined>
"Use the CredScan regexes for masking secrets. CredScan is an internal tool developed at Microsoft to keep passwords and authentication keys from being checked in. This defaults to disabled, as there are performance problems with some task outputs.",
+@"[0-9A-Za-z+/]{33}(AIoT|\+(ASb|AEh|ARm))[A-P][0-9A-Za-z+/]{5}="// match
46
46
+@"",// post-match
47
-
48
-
// JsonWebToken
49
-
@""// pre-match
50
-
+@"(?-i)(?<JwtToken>eyJ(?i)[a-z0-9\-_%]+\.(?-i)eyJ(?i)[a-z0-9\-_%]+\.[a-z0-9\-_%]+)|([rR]efresh_?[tT]oken|REFRESH_?TOKEN)[""']?\s*[:=]{1,2}\s*[""']?(?<JwtToken>(\w+-)+\w+)[""']?"// match
51
-
+@"",// post-match
52
-
53
-
// SlackTokens
54
-
@""// pre-match
55
-
+@"xox[pbar]\-[a-z0-9\-]+"// match
56
-
+@"",// post-match
57
-
58
-
// SymmetricKey128
59
-
@"(?<=[^\w/\+\._\$,\\])"// pre-match
60
-
+@"(?<SymmetricKey>[a-z0-9/\+]{22}==)"// match
61
-
+@"(?=([^\w/\+\.\$]|$))",// post-match
62
-
63
-
// SymmetricKey128Hex
64
-
@"(?<=[^\w/\+\._\$,\\][dapi]+)"// pre-match
65
-
+@"(?<SymmetricKey>[a-f0-9]{32})"// match
66
-
+@"(?=([^\w/\+\.\$]|$))",// post-match
67
-
68
-
// SymmetricKey160Hex
69
-
@"(?<=[^\w/\+\._\$,\\])"// pre-match
70
-
+@"(?<Hex160>[a-f0-9/\+]{40})"// match
71
-
+@"(?=([^\w/\+\.\$]|$))",// post-match
72
-
73
-
// SymmetricKey232
74
-
@"(?<=[^\w/\+\._\$,\\])"// pre-match
75
-
+@"(?<SymmetricKey>(?-i)AIza(?i)[a-z0-9_\\\-]{35})"// match
76
-
+@"(?=([^\w/\+\.\$]|$))",// post-match
77
-
78
-
// SymmetricKey240
79
-
@"(?<=[^\w/\+\.\-\$,\\])"// pre-match
80
-
+@"(?<SymmetricKey>[a-z0-9/\+]{40})"// match
81
-
+@"(?=([^\w/\+\.\-\$,\\]|$))",// post-match
82
-
83
-
// SymmetricKey256
84
-
@"(?<=[^\w/\+\.\$,\\])"// pre-match
85
-
+@"(?<SymmetricKey>[a-z0-9/\+]{43}=)"// match
86
-
+@"(?=([^\w/\+\.\$]|$))",// post-match
87
-
88
-
// SymmetricKey256B32
89
-
@"(?<=[^\w/\+\._\-\$,\\])"// pre-match
90
-
+@"(?<SymmetricKey>(?-i)[a-z2-7]{52}(?i))"// match
0 commit comments