Skip to main content

secretPathExcluder

@webda/core


Function: secretPathExcluder()

secretPathExcluder(patterns?): (path) => boolean

Defined in: packages/core/src/services/secretscheck.ts:283

Parse the patterns of the secret paths to exclude

A pattern uses the path syntax of the findings, $. prefix optional: * matches one name or index (units[*].auth.pass), ** matches anything, and a pattern also excludes the values below it (services.demo).

Parameters​

patterns?​

string | string[] = []

the patterns, a comma-separated string or a list

Returns​

a function telling whether a finding path is excluded

(path) => boolean