Skip to content

Draft: Update pipeline secret detection docs to highlight new capabilities

This is a work in progress. More information will follow later.

What does this MR do and why?

This merge request updates Pipeline Secret Detection documentation to highlight capabilities introduced in secrets!310.

Changes

  • Introduced a new page called customize_rulesets to match the one we have for SAST analyzers.
  • Took the liberty to restructure the page. Most of the updates are in the configuration section, see below.

Updated Structure

Below is the updated structure of the Pipeline SD page, with sections marked in bold highlighting the changes.

  • Outputcreated to match similar section in SAST page
  • Configuration
    • Enable the analyzer
      • Edit the .gitlab-ci.yml file manually
      • Use an automatically configured merge request
    • Customize analyzer settings
      • Add new patternsmoved to be under Customize analyzer settings / Shall we perhaps move it out of Configuration?
      • Pin to a specific analyzer version
      • Enable full history detection
      • Run jobs in merge request pipelines
      • Override analyzer jobsmoved to be under Customize analyzer settings
    • Customize analyzer rulesets – renamed from Custom rulesets
      • Create a ruleset configuration filecreated to match similar section in SAST page
      • Modify pre-defined rulescreated to add instructions on modifying predfined rules
        • Disable rulemoved to this section
        • Override rulemoved to this section
        • Modify rules using a remote ruleset – created to explain using SECRET_DETECTION_RULESET_GIT_REFERENCE
      • Replace the default rulesetrenamed from Synthesize a custom configuration
        • Inlinecreated to add instructions on using raw passthrough
        • With a local rulesetcreated to add instructions on using file passthrough
        • With a remote rulesetcreated to add instructions on using git/url passthroughs
      • Extend the default rulesetrenamed from Extending the default configuration
        • With a local rulesetcreated to add instructions on using file passthrough to extend default ruleset
        • With a remote rulesetcreated to add instructions on using git/url passthroughs to extend default ruleset
      • Ignore patterns and paths – created to add instructions on using Gitleaks' [allowlist] directive.
      • Ignore secrets inlinerenamed from Ignore secrets
    • Available CI/CD variables
    • Offline configuration
    • Using a custom SSL CA certificate authority
    • Demosrenamed from Demo Projects

MR acceptance checklist

I have evaluated this MR against the MR acceptance checklist.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Ahmed Hemdan

Merge request reports