-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feat: added v3
API version for the detector captaindatago
#3484
feat: added v3
API version for the detector captaindatago
#3484
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as #3414 (comment) and #3427 (comment)
Verified with API Key @rgmz |
} | ||
|
||
// Ensure the Scanner satisfies the interface at compile time. | ||
var _ detectors.Detector = (*Scanner)(nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The versioning interface is currently unimplemented. When running trufflehog, the following warning is displayed:
2024-10-25T11:39:18+05:00 info-0 trufflehog possible duplicate detector configured {"detector": "CaptainData"}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are you testing this @kashifkhan0771 , can you tell me the command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add your token in some file locally and run following command against it
trufflehog filesystem ~/<path_to_file_where_secret_is>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I checked with the changes, this warning is not coming now, I have fixed it.
a1760ca
to
4a9bb67
Compare
Signed-off-by: Sahil Silare <[email protected]>
@@ -1642,6 +1642,8 @@ func DefaultDetectors() []detectors.Detector { | |||
saladcloudapikey.Scanner{}, | |||
boxoauth.Scanner{}, | |||
apimetrics.Scanner{}, | |||
captainDataV2.Scanner{}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is V1
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is no V1
, We should start with V1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is
V1
?
I named them according to API versions available, there was v2
and v3
hence the name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the versioning is based on detectors not the API. Correct me If I am wrong @zricethezav @abmussani
Correct way would be to start with V1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, please check @kashifkhan0771
Signed-off-by: Sahil Silare <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Good Work @sahil9001 - Thanks for the contribution.
Description:
Fixes #3483
Checklist:
make test-community
)?make lint
this requires golangci-lint)?