Ensure keywords are case-sensitive
What does this MR do?
Modifies the keywords array of well-known patterns so they have a case-sensitive match to the beginning of the key. This should have no effect on the scanner as Gitleaks normalises the input fragment as well as the keywords before performing the string comparison. It will have an impact however in the performance of gitlab-org/gitlab#376716 (closed), as string lowercasing can be a wasteful operation.
What are the relevant issue numbers?
- Preparation for gitlab-org/gitlab#376716 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests updated/added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Vishwa Bhat