mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
relax login rate limiting when testing
This commit is contained in:
@@ -910,7 +910,7 @@ create_manager_pillars() {
|
|||||||
influxdb_pillar
|
influxdb_pillar
|
||||||
logrotate_pillar
|
logrotate_pillar
|
||||||
patch_pillar
|
patch_pillar
|
||||||
|
nginx_pillar
|
||||||
}
|
}
|
||||||
|
|
||||||
create_repo() {
|
create_repo() {
|
||||||
@@ -1395,6 +1395,19 @@ idstools_pillar() {
|
|||||||
touch $adv_idstools_pillar_file
|
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() {
|
soc_pillar() {
|
||||||
title "Creating the SOC pillar"
|
title "Creating the SOC pillar"
|
||||||
touch $adv_soc_pillar_file
|
touch $adv_soc_pillar_file
|
||||||
|
|||||||
Reference in New Issue
Block a user