Skip to content

Find, verify, and analyze leaked credentials

Revert duplicate --no-ignore-tag changes from #5293 (#5369)

Shahzad Haider54c65cdab942
diff --git a/docs/man/trufflehog.1 b/docs/man/trufflehog.1
index a47a467ad..b417a7041 100644
--- a/docs/man/trufflehog.1
+++ b/docs/man/trufflehog.1
@@ -59,9 +59,6 @@ Allow verification of similar credentials across detectors
\fB--filter-unverified\fR
Only output first unverified result per chunk per detector if there are more than one results.
.TP
-\fB--no-ignore-tag\fR
-Do not suppress results on lines containing a 'trufflehog:ignore' comment.
-.TP
\fB--filter-entropy=FILTER-ENTROPY\fR
Filter unverified results with Shannon entropy. Start with 3.0.
.TP
diff --git a/main.go b/main.go
index 1fd6a1696..0527f72a4 100644
--- a/main.go
+++ b/main.go
@@ -65,7 +65,6 @@ var (
allowVerificationOverlap = cli.Flag("allow-verification-overlap", "Allow verification of similar credentials across detectors").Bool()
filterUnverified = cli.Flag("filter-unverified", "Only output first unverified result per chunk per detector if there are more than one results.").Bool()
- noIgnoreTag = cli.Flag("no-ignore-tag", "Do not suppress results on lines containing a 'trufflehog:ignore' comment.").Bool()
filterEntropy = cli.Flag("filter-entropy", "Filter unverified results with Shannon entropy. Start with 3.0.").Float64()
noIgnoreTag = cli.Flag("no-ignore-tag", "Report results even if the line has a 'trufflehog:ignore' comment.").Bool()
scanEntireChunk = cli.Flag("scan-entire-chunk", "Scan the entire chunk for secrets.").Hidden().Default("false").Bool()
@@ -661,7 +660,6 @@ func run(state overseer.State, logSync func() error) {
VerifierEndpoints: *verifiers,
Dispatcher: engine.NewPrinterDispatcher(printer),
FilterUnverified: *filterUnverified,
- NoIgnoreTag: *noIgnoreTag,
FilterEntropy: *filterEntropy,
NoIgnoreTag: *noIgnoreTag,
VerificationOverlap: *allowVerificationOverlap,
diff --git a/pkg/engine/engine.go b/pkg/engine/engine.go
index bc6167f1d..de5c412e2 100644
--- a/pkg/engine/engine.go
+++ b/pkg/engine/engine.go
@@ -123,10 +123,7 @@ type Config struct {
FilterEntropy float64
// FilterUnverified sets the filterUnverified flag on the engine. If set to
// true, the engine will only return the first unverified result for a chunk for a detector.
- FilterUnverified bool
- // NoIgnoreTag, when true, disables the default behavior of dropping results
- // whose line contains a "trufflehog:ignore" comment.
- NoIgnoreTag bool
+ FilterUnverified bool
ShouldScanEntireChunk bool
// NoIgnoreTag disables the "trufflehog:ignore" tag. If set to true, results are
@@ -191,9 +188,6 @@ type Engine struct {
// If there are multiple unverified results for the same chunk for the same detector,
// only the first one will be kept.
filterUnverified bool
- // noIgnoreTag disables suppression of results on lines containing the
- // "trufflehog:ignore" comment tag.
- noIgnoreTag bool
// entropyFilter is used to filter out unverified results using Shannon entropy.
filterEntropy float64
notifyVerifiedResults bool
@@ -265,7 +259,6 @@ func NewEngine(ctx context.Context, cfg *Config) (*Engine, error) {
dispatcher: cfg.Dispatcher,
verify: cfg.Verify,
filterUnverified: cfg.FilterUnverified,
- noIgnoreTag: cfg.NoIgnoreTag,
filterEntropy: cfg.FilterEntropy,
printAvgDetectorTime: cfg.PrintAvgDetectorTime,
retainFalsePositives: cfg.LogFilteredUnverified,