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

Update HubSpot detectors #2845

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

rgmz
Copy link
Contributor

@rgmz rgmz commented May 14, 2024

Description:

This changes the HubSpot v1 detector to tri-state verification and adds two other common keywords.

  1. hubapi the actual domain associated with the HubSpot API
  2. hapikey the query parameter used to pass in legacy auth

It also closes #2369 by merging those changes to align the implementations, and add unit tests to both.

Checklist:

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

@rgmz rgmz force-pushed the feat/hubspotv1-update branch 5 times, most recently from 425fa83 to 2dc1279 Compare May 16, 2024 23:30
@rgmz rgmz force-pushed the feat/hubspotv1-update branch 3 times, most recently from f881f05 to 43fc620 Compare May 24, 2024 21:38
@rgmz rgmz force-pushed the feat/hubspotv1-update branch 2 times, most recently from c319443 to 307d7d0 Compare June 5, 2024 00:40
@rgmz rgmz force-pushed the feat/hubspotv1-update branch 3 times, most recently from b50418d to 1b4ca8a Compare June 18, 2024 13:53
@rgmz rgmz requested a review from a team as a code owner June 18, 2024 13:53
@CLAassistant
Copy link

CLAassistant commented Jun 18, 2024

CLA assistant check
All committers have signed the CLA.

@rgmz rgmz force-pushed the feat/hubspotv1-update branch 2 times, most recently from af8c7c9 to 1a7e796 Compare June 18, 2024 14:07
@rgmz rgmz changed the title Update HubSpot v1 detector Update HubSpot detectors Jun 18, 2024
@rgmz rgmz force-pushed the feat/hubspotv1-update branch 2 times, most recently from aeffc12 to ab7f4d5 Compare July 1, 2024 18:36
@rgmz rgmz requested a review from a team as a code owner November 3, 2024 14:30
Copy link
Collaborator

@ahrav ahrav left a comment

Choose a reason for hiding this comment

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

This looks good. We'll hold off on approval until we can test with a credential for the new version.

pkg/detectors/hubspot_apikey/v1/hubspot_apikey_v1.go Outdated Show resolved Hide resolved
pkg/detectors/hubspot_apikey/v2/hubspot_apikey_v2.go Outdated Show resolved Hide resolved
"github.com/kylelemons/godebug/pretty"

"github.com/trufflesecurity/trufflehog/v3/pkg/detectors"

Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Can we remove this new line in order to group the imports.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually, If this was created using the template file, please disregard my last comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably didn't get caught because of the build tags. Can fix it in template + others in another PR.

@rgmz rgmz force-pushed the feat/hubspotv1-update branch 3 times, most recently from 6927d3e to 88e0001 Compare November 11, 2024 19:19
@rgmz rgmz requested a review from a team as a code owner November 20, 2024 03:06
feat(hubspot): unify v1 and v2 implementation
@ahrav ahrav merged commit 9d99de8 into trufflesecurity:main Nov 20, 2024
13 checks passed
@rgmz rgmz deleted the feat/hubspotv1-update branch November 20, 2024 21:55
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.

4 participants