Skip to content

Find, verify, and analyze leaked credentials

Update stripe detector regex (#2261)

NIKHIL PANWAR7365dba9c9c5
diff --git a/pkg/detectors/stripe/stripe.go b/pkg/detectors/stripe/stripe.go
index 98c3a7682..498904f85 100644
--- a/pkg/detectors/stripe/stripe.go
+++ b/pkg/detectors/stripe/stripe.go
@@ -18,7 +18,7 @@ var _ detectors.Detector = (*Scanner)(nil)
var (
//doesn't include test keys with "sk_test"
- secretKey = regexp.MustCompile(`[rs]k_live_[a-zA-Z0-9]{20,30}`)
+ secretKey = regexp.MustCompile(`[rs]k_live_[a-zA-Z0-9]{20,247}`)
)
// Keywords are used for efficiently pre-filtering chunks.