Doubled timeout, as MongoDB secrets are repeatedly hitting this and failing to verify (#5222)
This commit is contained in:
@@ -27,7 +27,7 @@ var _ detectors.Detector = (*Scanner)(nil)
|
|||||||
var _ detectors.CustomFalsePositiveChecker = (*Scanner)(nil)
|
var _ detectors.CustomFalsePositiveChecker = (*Scanner)(nil)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
defaultTimeout = 5 * time.Second
|
defaultTimeout = 10 * time.Second
|
||||||
// Make sure that your group is surrounded in boundary characters such as below to reduce false positives.
|
// Make sure that your group is surrounded in boundary characters such as below to reduce false positives.
|
||||||
connStrPat = regexp.MustCompile(`\b(mongodb(?:\+srv)?://(?P<username>\S{3,50}):(?P<password>\S{3,88})@(?P<host>[-.%\w]+(?::\d{1,5})?(?:,[-.%\w]+(?::\d{1,5})?)*)(?:/(?P<authdb>[\w-]+)?(?P<options>\?\w+=[\w@/.$-]+(?:&(?:amp;)?\w+=[\w@/.$-]+)*)?)?)(?:\b|$)`)
|
connStrPat = regexp.MustCompile(`\b(mongodb(?:\+srv)?://(?P<username>\S{3,50}):(?P<password>\S{3,88})@(?P<host>[-.%\w]+(?::\d{1,5})?(?:,[-.%\w]+(?::\d{1,5})?)*)(?:/(?P<authdb>[\w-]+)?(?P<options>\?\w+=[\w@/.$-]+(?:&(?:amp;)?\w+=[\w@/.$-]+)*)?)?)(?:\b|$)`)
|
||||||
// TODO: Add support for sharded cluster, replica set and Atlas Deployment.
|
// TODO: Add support for sharded cluster, replica set and Atlas Deployment.
|
||||||
|
|||||||
Reference in New Issue
Block a user