Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,332
    • Merge requests 1,332
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #350660
Closed
Open
Issue created Jan 19, 2022 by Zach Rice@zriceDeveloper1 of 3 checklist items completed1/3 checklist items

Deprecate SECRET_DETECTION_COMMIT_* options

Description

Gitleaks v8.0.0 removed all --commit* options and instead offered a more flexible --log-opts option which accepts git log options.

Commit related options
Variable Reason for deprecation
SECRET_DETECTION_COMMIT_FROM Can be replaced by SECRET_DETECTION_LOG_OPTS
SECRET_DETECTION_COMMIT_TO Can be replaced by SECRET_DETECTION_LOG_OPTS
SECRET_DETECTION_COMMITS Can be replaced by SECRET_DETECTION_LOG_OPTS
SECRET_DETECTION_COMMITS_FILE Can be replaced by SECRET_DETECTION_LOG_OPTS

These deprecations would reduce the complexity in the analyzer as we are parsing a commits file and generating git log options from that commits file.

Other options that should be deprecated
Variable Reason for deprecation
SECRET_DETECTION_ENTROPY_LEVEL Entropy only rules are not supported by gitleaks. They caused too many false positives

Tasks

  • Update documentation
  • Remove variables
  • Detect if these variables are provided and print a warning
Edited May 17, 2022 by Zach Rice
Assignee
Assign to
Time tracking