Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
tighten keyword match (#2473)
ahrav5c313c14db61
diff --git a/pkg/detectors/okta/okta.go b/pkg/detectors/okta/okta.goindex e9a7212a9..165f603e8 100644--- a/pkg/detectors/okta/okta.go+++ b/pkg/detectors/okta/okta.go@@ -3,11 +3,12 @@ package oktaimport ("context""fmt"- regexp "github.com/wasilibs/go-re2""io""net/http""strings"+ regexp "github.com/wasilibs/go-re2"+"github.com/trufflesecurity/trufflehog/v3/pkg/common""github.com/trufflesecurity/trufflehog/v3/pkg/detectors""github.com/trufflesecurity/trufflehog/v3/pkg/pb/detectorspb"@@ -27,7 +28,7 @@ var (// Keywords are used for efficiently pre-filtering chunks.// Use identifiers in the secret preferably, or the provider name.func (s Scanner) Keywords() []string {- return []string{"okta"}+ return []string{".okta"}}// FromData will find and optionally verify Okta secrets in a given set of bytes.