Skip to content

Commit

Permalink
Merge branch 'main' into go-1.21.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Sep 4, 2024
2 parents 484aece + 2fa7360 commit f62ef74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
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
2 changes: 1 addition & 1 deletion test/bouncer/test_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_tls_mutual(crowdsec, certs_dir, api_key_factory, bouncer, cf_cfg_factor
"*API error: access forbidden*",
])

cs.wait_for_log("*client certificate OU (?agent-ou?) doesn't match expected OU (?bouncer-ou?)*")
cs.wait_for_log("*client certificate OU ?agent-ou? doesn't match expected OU ?bouncer-ou?*")

cfg['cert_path'] = (certs / 'bouncer.crt').as_posix()
cfg['key_path'] = (certs / 'bouncer.key').as_posix()
Expand Down

0 comments on commit f62ef74

Please sign in to comment.