azdo-cli 0.19.0-feature-037-api-error-surfacing.695 → 0.19.0-feature-037-api-error-surfacing.697
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -78,12 +78,11 @@ function redactUrl(url) {
|
|
|
78
78
|
return url;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
+
var SECRET_ASSIGNMENT = String.raw`["']?\s*[:=]\s*["']?)[^"'\s,;&}]+`;
|
|
81
82
|
var SECRET_IN_TEXT = [
|
|
82
|
-
[/\b(Bearer|Basic)\s+[
|
|
83
|
-
[
|
|
84
|
-
|
|
85
|
-
`$1${REDACTED}`
|
|
86
|
-
],
|
|
83
|
+
[/\b(Bearer|Basic)\s+[\w.~+/=-]{8,}/gi, `$1 ${REDACTED}`],
|
|
84
|
+
[new RegExp(`(\\b(?:access|refresh|api)[_-]?(?:token|key)\\b${SECRET_ASSIGNMENT}`, "gi"), `$1${REDACTED}`],
|
|
85
|
+
[new RegExp(`(\\b(?:token|pat|password|secret)\\b${SECRET_ASSIGNMENT}`, "gi"), `$1${REDACTED}`],
|
|
87
86
|
[/\beyJ[A-Za-z0-9._~+/=-]{20,}/g, REDACTED],
|
|
88
87
|
[/\b(?=[A-Za-z0-9]*\d)(?=[A-Za-z0-9]*[A-Za-z])[A-Za-z0-9]{40,}\b/g, REDACTED]
|
|
89
88
|
];
|