Merge pull request #10354 from Security-Onion-Solutions/kilo

Relax rate limiting thresholds when installing in test mode
This commit is contained in:
Jason Ertel
2023-05-15 13:02:07 -04:00
committed by GitHub

View File

@@ -910,7 +910,7 @@ create_manager_pillars() {
influxdb_pillar
logrotate_pillar
patch_pillar
nginx_pillar
}
create_repo() {
@@ -1395,6 +1395,19 @@ idstools_pillar() {
touch $adv_idstools_pillar_file
}
nginx_pillar() {
title "Creating the NGINX pillar"
[[ -z "$TESTING" ]] && return
# When testing, set the login rate limiting to high values to avoid failing automated logins
printf '%s\n'\
"nginx:"\
" config:"\
" throttle_login_burst: 9999"\
" throttle_login_rate: 9999"\
"" > "$nginx_pillar_file"
}
soc_pillar() {
title "Creating the SOC pillar"
touch $adv_soc_pillar_file