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

enhance: Add option to insecure skip verify #169

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,10 @@ func Execute() error {
ScenariosContaining: strings.Join(conf.IncludeScenariosContaining, ","),
Origins: strings.Join(conf.OnlyIncludeDecisionsFrom, ","),
},
CertPath: conf.CertPath,
KeyPath: conf.KeyPath,
CAPath: conf.CAPath,
CertPath: conf.CertPath,
KeyPath: conf.KeyPath,
CAPath: conf.CAPath,
InsecureSkipVerify: &conf.CrowdSecInsecureSkipVerify,
}
if err := csLAPI.Init(); err != nil {
return err
Expand Down
1 change: 1 addition & 0 deletions pkg/cfg/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ type PrometheusConfig struct {
type bouncerConfig struct {
CrowdSecLAPIUrl string `yaml:"crowdsec_lapi_url"`
CrowdSecLAPIKey string `yaml:"crowdsec_lapi_key"`
CrowdSecInsecureSkipVerify bool `yaml:"crowdsec_insecure_skip_verify"`
CrowdsecUpdateFrequencyYAML string `yaml:"crowdsec_update_frequency"`
IncludeScenariosContaining []string `yaml:"include_scenarios_containing"`
ExcludeScenariosContaining []string `yaml:"exclude_scenarios_containing"`
Expand Down
Loading