Skip to content

Conversation

Tapiocaba
Copy link
Contributor

@Tapiocaba Tapiocaba commented Jun 5, 2025

Closes #1889

This commit adds the Notion API regex key token pattern and detection rule to GitLeaks.

Notion API tokens have the format ntn_{11-digit timestamp}_{32-character alphanumeric}_{3-character suffix}

You can retrieve test Notion API keys by creating a Notion account, then navigating to the integrations page to create an API key. Reference documentation for the Notion Public API can be found here: https://developers.notion.com/docs/create-a-notion-integration

Copy link
Contributor

@rgmz rgmz left a comment

Choose a reason for hiding this comment

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

Thanks @Tapiocaba! I have two suggestions to improve the accuracy of the rule.

@zricethezav
Copy link
Collaborator

@rgmz beat me to it

Tapiocaba and others added 2 commits June 7, 2025 22:05
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com>
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com>
@Tapiocaba
Copy link
Contributor Author

Thanks @Tapiocaba! I have two suggestions to improve the accuracy of the rule.

Thanks so much!!

@zricethezav
Copy link
Collaborator

Super duper! Thanks @Tapiocaba @rgmz

@zricethezav zricethezav merged commit 79068b3 into gitleaks:master Jun 8, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detect Notion Public API Keys
3 participants