mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 15:14:38 +00:00
4409210b87
* Add custom_detectors proto * Generate proto code * Create custom_detectors package Also create protoyaml package to test YAML unmarshalling the configuration. * Simplify custom_detectors proto by removing connection * Generate proto code * Update custom_detectors parsing tests
25 lines
565 B
Protocol Buffer
25 lines
565 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package custom_detectors;
|
|
|
|
option go_package = "github.com/trufflesecurity/trufflehog/v3/pkg/pb/custom_detectorspb";
|
|
|
|
import "validate/validate.proto";
|
|
|
|
message CustomDetectors {
|
|
repeated CustomRegex detectors = 1;
|
|
}
|
|
|
|
message CustomRegex {
|
|
string name = 1;
|
|
repeated string keywords = 2;
|
|
map<string, string> regex = 3;
|
|
repeated VerifierConfig verify = 4;
|
|
}
|
|
|
|
message VerifierConfig {
|
|
string endpoint = 1 [(validate.rules).string.uri_ref = true];
|
|
bool unsafe = 2;
|
|
repeated string headers = 3;
|
|
repeated string successRanges = 4;
|
|
}
|