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
  • #211892
Closed
Open
Issue created Mar 20, 2020 by Cameron Swords@cam_swordsDeveloper6 of 6 checklist items completed6/6 checklist items

Add the ability to exclude paths from API Scans

Problem to solve

In baseline and full scans, users can exclude URLs to scan by using the DAST_AUTH_EXCLUDE_PATHS configuration value. This is useful because often logout links will be scanned, which cause the rest of the scan to miss URLs that require authentication.

While logout is not a typical feature on an API, there may be other reasons why a user may want to exclude URLs.

Intended users

  • Sasha (Software Developer)
  • Sam (Security Analyst)

Proposal

The implementation of _EXCLUDE_PATHS can be done by updating the configuration file route entries using information from this variable. This will only require changes to worker-entry and/or ci script.

The format of _EXLUDE_PATHS will be:

  • Use ; to separate entries
  • Provide only the path element, no query string scheme, or host.
  • Use ? for single character wildcard
  • Use * for multiple character wildcard

Examples:

  • /storage/*
  • /v?/*

Tasks:

  1. Add a new variable DAST_API_EXCLUDE_PATHS and FUZZAPI_EXCLUDE_PATHS that uses the same rules as the route include/exclude logic already available via API Security configuration files. This will make the implementation easier.
  2. Add tests to worker-entry
  3. Add e2e test for exclude urls
  4. Release new container image
  5. Update DAST API documentation
  6. Update API Fuzzing documentation to reflect new variable

What is the type of buyer?

Gold/Ultimate

Edited Jun 03, 2021 by Michael Eddington
Assignee
Assign to
Time tracking