Skip to content

Commit

Permalink
Add a new CrawlConfig option for enforcing crawling scope checks.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 369662429
Change-Id: Icd29d76376ac4ecd91bc5aa377551412f2e94020
  • Loading branch information
Tsunami Team authored and copybara-github committed Apr 21, 2021
1 parent 3ed174a commit 7e3c986
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions proto/web_crawl.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ option java_outer_classname = "WebCrawlProtos";
option java_package = "com.google.tsunami.proto";
option go_package = "github.com/google/tsunami-security-scanner/proto";

// Next ID: 6
message CrawlConfig {
// The crawler should only interact with web resources under certain scopes.
message Scope {
Expand Down Expand Up @@ -53,6 +54,10 @@ message CrawlConfig {
// Optional. When empty, scopes are autogenerated from seeding_urls.
repeated Scope scopes = 3;

// Whether crawling scope check should be enforced.
// Optional.
bool should_enforce_scope_check = 5;

// The network service to be crawled.
// Required.
NetworkService network_service = 4;
Expand Down

0 comments on commit 7e3c986

Please sign in to comment.