Skip to content

[DLP] Add missing predefined detection entries#30648

Merged
caley-b merged 4 commits intocloudflare:productionfrom
warnessa:dlp-predefined-detection-entries-clean
May 7, 2026
Merged

[DLP] Add missing predefined detection entries#30648
caley-b merged 4 commits intocloudflare:productionfrom
warnessa:dlp-predefined-detection-entries-clean

Conversation

@warnessa
Copy link
Copy Markdown
Contributor

@warnessa warnessa commented May 6, 2026

Summary

  • add the missing predefined detection entries from the current dashboard and YAML-backed set, including AI prompt topics
  • align the reference table to dashboard naming by replacing Names (CA/US) with Full Name and adding the US-prefixed driver's license and mailing address entries
  • sort the full table case-insensitively and sanitize token-like examples so the docs remain push-protection safe

| Australia Business (ABN) | Detects Australian Business Numbers (ABN) such as "51 824 753 556". |
| Australia Company (ACN) | Detects Australian Company Numbers (ACN) such as "001 000 004". |
| Australia Medicare | Detects Australian Medicare card numbers such as "2000000006". |
| Australia Passport | Detects Australian passport numbers such as "L1234567". |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be a somewhat duplicated line as line 31 ("AU Passport Number | Detects Australian passport numbers..."). Should we consider removing this new one and updating the original line instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it's a duplicate however it's also a duplicate in the code lol. I will remove it once eng decides which detection we'll keep!

| Germany VAT | Detects German VAT numbers (USt-IdNr) such as "DE100000003". |
| GitHub PAT | Detects GitHub personal access tokens such as a token beginning with `ghp_`. |
| Go | Detects Go source code. |
| Google GCP API Key | Detects Google Cloud Platform API keys such as "AIzaSyDaGmWKa4JsXZ-HjGw7ISLn_3namBGewQe". |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example API key, while a documented example from Google, sets off API key security alerts for us in Github. Would you be open to using something like "AIzaSyA-FAKE-KEY-FOR-DOCS-ONLY-000000" instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated description to use AIza<API_KEY>

@warnessa warnessa force-pushed the dlp-predefined-detection-entries-clean branch from ca4a771 to f23cbc9 Compare May 6, 2026 21:12
@caley-b caley-b merged commit 8ef4703 into cloudflare:production May 7, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants