Skip to content

Commit 00e6a9c

Browse files
authored
Add JWT redaction (microsoft#250320)
1 parent 8af658b commit 00e6a9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/platform/telemetry/common/telemetryUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ function removePropertiesWithPossibleUserInfo(property: string): string {
333333

334334
const userDataRegexes = [
335335
{ label: 'Google API Key', regex: /AIza[A-Za-z0-9_\\\-]{35}/ },
336+
{ label: 'JWT', regex: /eyJ[0eXAiOiJKV1Qi|hbGci|a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+/ },
336337
{ label: 'Slack Token', regex: /xox[pbar]\-[A-Za-z0-9]/ },
337338
{ label: 'GitHub Token', regex: /(gh[psuro]_[a-zA-Z0-9]{36}|github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59})/ },
338339
{ label: 'Generic Secret', regex: /(key|token|sig|secret|signature|password|passwd|pwd|android:value)[^a-zA-Z0-9]/i },

0 commit comments

Comments
 (0)