@@ -5,17 +5,17 @@ import (
55)
66
77type Config struct {
8- Logger LoggerConfig `mapstructure:"logger"`
9- Database DatabaseConfig `mapstructure:"database"`
10- Redis RedisConfig `mapstructure:"redis"`
11- Worker WorkerConfig `mapstructure:"worker"`
12- Telemetry TelemetryConfig `mapstructure:"telemetry"`
13- Security SecurityConfig `mapstructure:"security"`
14- Tools ToolsConfig `mapstructure:"tools"`
15- Platforms BugBountyPlatforms `mapstructure:"platforms"`
16- ShodanAPIKey string `mapstructure:"shodan_api_key"`
17- CensysAPIKey string `mapstructure:"censys_api_key"`
18- CensysSecret string `mapstructure:"censys_secret"`
8+ Logger LoggerConfig `mapstructure:"logger"`
9+ Database DatabaseConfig `mapstructure:"database"`
10+ Redis RedisConfig `mapstructure:"redis"`
11+ Worker WorkerConfig `mapstructure:"worker"`
12+ Telemetry TelemetryConfig `mapstructure:"telemetry"`
13+ Security SecurityConfig `mapstructure:"security"`
14+ Tools ToolsConfig `mapstructure:"tools"`
15+ Platforms BugBountyPlatforms `mapstructure:"platforms"`
16+ ShodanAPIKey string `mapstructure:"shodan_api_key"`
17+ CensysAPIKey string `mapstructure:"censys_api_key"`
18+ CensysSecret string `mapstructure:"censys_secret"`
1919}
2020
2121type LoggerConfig struct {
@@ -331,34 +331,34 @@ type FaviconConfig struct {
331331
332332// BugBountyPlatforms contains configuration for all bug bounty platform integrations
333333type BugBountyPlatforms struct {
334- HackerOne HackerOneConfig `mapstructure:"hackerone"`
335- Bugcrowd BugcrowdConfig `mapstructure:"bugcrowd"`
336- AWS AWSBountyConfig `mapstructure:"aws"`
334+ HackerOne HackerOneConfig `mapstructure:"hackerone"`
335+ Bugcrowd BugcrowdConfig `mapstructure:"bugcrowd"`
336+ AWS AWSBountyConfig `mapstructure:"aws"`
337337 Azure AzureBountyConfig `mapstructure:"azure"`
338- GCP GCPBountyConfig `mapstructure:"gcp"`
338+ GCP GCPBountyConfig `mapstructure:"gcp"`
339339}
340340
341341// HackerOneConfig configures HackerOne API integration
342342type HackerOneConfig struct {
343- Enabled bool `mapstructure:"enabled"`
344- APIUsername string `mapstructure:"api_username"`
345- APIToken string `mapstructure:"api_token"`
346- BaseURL string `mapstructure:"base_url"`
347- Timeout time.Duration `mapstructure:"timeout"`
348- AutoSubmit bool `mapstructure:"auto_submit"`
349- MinimumSeverity string `mapstructure:"minimum_severity"` // critical, high, medium, low
350- DraftMode bool `mapstructure:"draft_mode"` // Create as draft instead of submitting
343+ Enabled bool `mapstructure:"enabled"`
344+ APIUsername string `mapstructure:"api_username"`
345+ APIToken string `mapstructure:"api_token"`
346+ BaseURL string `mapstructure:"base_url"`
347+ Timeout time.Duration `mapstructure:"timeout"`
348+ AutoSubmit bool `mapstructure:"auto_submit"`
349+ MinimumSeverity string `mapstructure:"minimum_severity"` // critical, high, medium, low
350+ DraftMode bool `mapstructure:"draft_mode"` // Create as draft instead of submitting
351351}
352352
353353// BugcrowdConfig configures Bugcrowd API integration
354354type BugcrowdConfig struct {
355- Enabled bool `mapstructure:"enabled"`
356- APIToken string `mapstructure:"api_token"`
357- BaseURL string `mapstructure:"base_url"`
358- Timeout time.Duration `mapstructure:"timeout"`
359- AutoSubmit bool `mapstructure:"auto_submit"`
360- MinimumSeverity string `mapstructure:"minimum_severity"` // P1, P2, P3, P4, P5
361- DraftMode bool `mapstructure:"draft_mode"`
355+ Enabled bool `mapstructure:"enabled"`
356+ APIToken string `mapstructure:"api_token"`
357+ BaseURL string `mapstructure:"base_url"`
358+ Timeout time.Duration `mapstructure:"timeout"`
359+ AutoSubmit bool `mapstructure:"auto_submit"`
360+ MinimumSeverity string `mapstructure:"minimum_severity"` // P1, P2, P3, P4, P5
361+ DraftMode bool `mapstructure:"draft_mode"`
362362}
363363
364364// AWSBountyConfig configures AWS Vulnerability Research Program integration (via HackerOne)
0 commit comments