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

Endpoint customizer refresh #3308

Merged

Conversation

kashifkhan0771
Copy link
Contributor

@kashifkhan0771 kashifkhan0771 commented Sep 19, 2024

Description:

Updated Endpoint Customizer and Detectors using it.

This change separates configuration for using found URLs in the data and using known cloud URLs, while centralizing the logic for detectors to use in the EndpointSetter struct. The driving force for this change is that we have some URLs known ahead of time and some URLs known only at detection time, and we would like to configure both.

The embeddable EndpointSetter struct has a simplified interface: A detector calls s.Endpoints(foundURLs...) to get a slice of the endpoints to perform verification against.

A CloudProvider interface is also introduced in this PR for a detector to signal there is a cloud endpoint associated with it.

Checklist:

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

@kashifkhan0771 kashifkhan0771 requested review from a team as code owners September 19, 2024 17:57
@zricethezav zricethezav merged commit 4b6957d into trufflesecurity:main Sep 24, 2024
12 checks passed
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.

6 participants