Skip to content

Commit 41a15c6

Browse files
add attack surface scan options (#136)
1 parent 2430945 commit 41a15c6

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

pkg/models/attack_surface.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package models
2+
3+
type AttackSurface struct {
4+
// global only
5+
EnableDNSTraversal bool `yaml:"enable_dns_traversal,omitempty"`
6+
DomainNames []string `yaml:"domain_names,omitempty"`
7+
IgnoreDomainNames []string `yaml:"ignore_domain_names,omitempty"`
8+
}

pkg/models/models.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ type Configuration struct {
1818
Integrations Integrations `yaml:"integrations,omitempty"`
1919

2020
// features
21-
Code Code `yaml:"code,omitempty"`
22-
Dependencies Dependencies `yaml:"dependencies,omitempty"`
23-
Secrets Secrets `yaml:"secrets,omitempty"`
21+
Code Code `yaml:"code,omitempty"`
22+
Dependencies Dependencies `yaml:"dependencies,omitempty"`
23+
Secrets Secrets `yaml:"secrets,omitempty"`
24+
AttackSurface AttackSurface `yaml:"attack_surface,omitempty"`
2425

2526
// TODO deprecate
2627
SecretsWhitelist []string `yaml:"secrets_whitelist,omitempty"`

0 commit comments

Comments
 (0)