We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a77b73 commit 1e16a29Copy full SHA for 1e16a29
pkg/detectors/mongodb/mongodb.go
@@ -27,7 +27,7 @@ var _ detectors.Detector = (*Scanner)(nil)
27
var _ detectors.CustomFalsePositiveChecker = (*Scanner)(nil)
28
29
var (
30
- defaultTimeout = 2 * time.Second
+ defaultTimeout = 5 * time.Second
31
// Make sure that your group is surrounded in boundary characters such as below to reduce false positives.
32
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|$)`)
33
// TODO: Add support for sharded cluster, replica set and Atlas Deployment.
0 commit comments