Skip to content

fix: report TimeCamp verifier errors#4942

Open
Big-Comfy wants to merge 1 commit intotrufflesecurity:mainfrom
Big-Comfy:fix-timecamp-verification-errors
Open

fix: report TimeCamp verifier errors#4942
Big-Comfy wants to merge 1 commit intotrufflesecurity:mainfrom
Big-Comfy:fix-timecamp-verification-errors

Conversation

@Big-Comfy
Copy link
Copy Markdown

@Big-Comfy Big-Comfy commented May 4, 2026

Summary

Small scoped follow-up to #4051 for the TimeCamp detector.

Before this change, TimeCamp verification treated request failures and unexpected API responses the same as invalid credentials: the result came back unverified, with no VerificationError. This keeps 401 and 403 as normal invalid-token responses, but records a VerificationError when the verifier cannot make a clean decision.

The patch also adds a test-only client path so the verifier cases can be covered without hitting the live TimeCamp API.

Test plan

  • go test ./pkg/detectors/timecamp
  • git diff --check

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 4, 2026

CLA assistant check
All committers have signed the CLA.

@Big-Comfy Big-Comfy marked this pull request as ready for review May 4, 2026 04:50
@Big-Comfy Big-Comfy requested a review from a team May 4, 2026 04:50
@Big-Comfy Big-Comfy requested a review from a team as a code owner May 4, 2026 04:50
Copy link
Copy Markdown
Contributor

@MuneebUllahKhan222 MuneebUllahKhan222 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

4 participants