Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SatisMeter Detector #3692

Merged
merged 7 commits into from
Dec 10, 2024

Conversation

kashifkhan0771
Copy link
Contributor

@kashifkhan0771 kashifkhan0771 commented Nov 28, 2024

Description:

This PR fix and update following things in SatisMeter detector:

  1. Update API authentication to Bearer <- As per documentation the APIs now use Bearer Auth instead of Basic Auth
  2. Remove unnecessary patterns
  3. Fix integration test cases
  4. Refactor the overall logic to improve the detector

Checklist:

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

@kashifkhan0771 kashifkhan0771 requested a review from a team as a code owner November 28, 2024 09:02
@kashifkhan0771 kashifkhan0771 changed the title Fix/satismeter detector Fix SatisMeter Detector Nov 28, 2024
@kashifkhan0771 kashifkhan0771 deleted the fix/satismeter-detector branch December 3, 2024 04:59
@kashifkhan0771 kashifkhan0771 restored the fix/satismeter-detector branch December 3, 2024 05:02
@kashifkhan0771 kashifkhan0771 reopened this Dec 3, 2024
@kashifkhan0771
Copy link
Contributor Author

Mistakenly deleted the branch 😢 - Restored it and reopened the PR

s1 := detectors.Result{
DetectorType: detectorspb.DetectorType_SatismeterProjectkey,
Raw: []byte(projectID),
RawV2: []byte(projectID + token),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note: Although this change is technically breaking, we never recorded any verified credentials using the previous regex combination. Therefore, I believe it’s acceptable.

@ahrav ahrav merged commit 4949561 into trufflesecurity:main Dec 10, 2024
13 checks passed
@kashifkhan0771 kashifkhan0771 deleted the fix/satismeter-detector branch December 11, 2024 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants