Does this issue occur when all extensions are disabled?: Yes
The email telemetry security regex incorrectly treats near everything that includes @xxx as email
| IMG (see last two example) |
 |
|
const userDataRegexes = [ |
|
{ label: 'Google API Key', regex: /AIza[A-Za-z0-9_\\\-]{35}/ }, |
|
{ label: 'Slack Token', regex: /xox[pbar]\-[A-Za-z0-9]/ }, |
|
{ label: 'Generic Secret', regex: /(key|token|sig|secret|signature|password|passwd|pwd|android:value)[^a-zA-Z0-9]/ }, |
|
{ label: 'Email', regex: /@[a-zA-Z0-9-.]+/ } // Regex which matches @*.site |
|
]; |
|
|
|
// Check for common user data in the telemetry events |
|
for (const secretRegex of userDataRegexes) { |
|
if (secretRegex.regex.test(value)) { |
|
return `<REDACTED: ${secretRegex.label}>`; |
|
} |
|
} |
- VS Code Version: From sources
- OS Version:
Steps to Reproduce:
- Copy regex of email and test it
Does this issue occur when all extensions are disabled?: Yes
The email telemetry security regex incorrectly treats near everything that includes
@xxxas emailvscode/src/vs/platform/telemetry/common/telemetryService.ts
Lines 202 to 214 in a8cb6ba
Steps to Reproduce: