Document patterns used by client-side secret detection
Problem to solve
The patterns used to detect secrets in comments/descriptions is specific to this feature. The list of patterns is not documented.
Proposal
Document the patterns that client-side secret detection uses when checking for secrets. The list of patterns is contained in the file app/assets/javascripts/lib/utils/secret_detection_patterns.js. This could be a page titled "Detected secrets", to match those of pipeline secret detection and secret push protection.
Dheeraj shared this list of patterns (to be checked against secret_detection_patterns.js):
- GitLab Personal Access Token
- Feed Token
- GitLab OAuth Application Secret
- GitLab Deploy Token
- GitLab SCIM OAuth Access Token
- GitLab CI Build (Job) Token
- GitLab Feature Flags Client Token
- GitLab Runner Token
- GitLab Incoming Mail Token
- GitLab Agent for Kubernetes Token
- GitLab Pipeline Trigger Token
Who can address the issue
Anyone
Other links/references
- MR in which the "Detected secrets" pages for pipeline secret detection and secret push protection were documented.
- I found out after completing the above MR that Claude AI could extract the information and format it as a Markdown table. The source file for this issue is JavaScript, not TOML, but information in that issue might be useful for this issue.
Edited by Phillip Wells