Skip to content

Conversation

@MuneebUllahKhan222
Copy link
Contributor

Description:
According to this GitHub issue, secrets detected by the DatadogToken detector that failed verification were not being reported to the notifier worker (CLI output).

This PR updates the DatadogToken detector to follow the same verification pattern used by newer detectors by Setting verificationError on the detectors.Result with the error returned from verifyMatch function.
With this change, unverified Datadog token findings are correctly propagated to the notifier worker and reported in CLI output.

This PR also introduces resetVerificationError function which reset the verificationError field on the results struct required when the secret is verified with any of the endpoint found/configured so as to not report a false verification error.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@MuneebUllahKhan222 MuneebUllahKhan222 requested review from a team as code owners January 14, 2026 10:07
@MuneebUllahKhan222 MuneebUllahKhan222 changed the title [INS-255] Updated datadog detector to user verifyMatch func and report verifica… [INS-255] Updated datadog detector to set verificationError in case of a verification error Jan 14, 2026
@MuneebUllahKhan222 MuneebUllahKhan222 changed the base branch from datadog-detector-verification-fix to main January 14, 2026 10:43
@MuneebUllahKhan222 MuneebUllahKhan222 marked this pull request as draft January 14, 2026 10:45
@MuneebUllahKhan222
Copy link
Contributor Author

This PR is a PR stacked on top of PR #4616 . So we will wait for PR #4616 to be merged first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant