mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Generate SOC SRVKey during setup
This commit is contained in:
@@ -47,6 +47,11 @@ soc:
|
|||||||
global: True
|
global: True
|
||||||
advanced: True
|
advanced: True
|
||||||
server:
|
server:
|
||||||
|
srvKey:
|
||||||
|
description: Unique key for protecting the integrity of user submitted data via the web browser.
|
||||||
|
global: True
|
||||||
|
sensitive: True
|
||||||
|
advanced: True
|
||||||
maxPacketCount:
|
maxPacketCount:
|
||||||
description: Maximum number of packets to show in the PCAP viewer. Larger values can cause more resource utilization on both the SOC server and the browser.
|
description: Maximum number of packets to show in the PCAP viewer. Larger values can cause more resource utilization on both the SOC server and the browser.
|
||||||
global: True
|
global: True
|
||||||
|
|||||||
@@ -1245,6 +1245,7 @@ generate_passwords(){
|
|||||||
SENSORONIKEY=$(get_random_value)
|
SENSORONIKEY=$(get_random_value)
|
||||||
KRATOSKEY=$(get_random_value)
|
KRATOSKEY=$(get_random_value)
|
||||||
REDISPASS=$(get_random_value)
|
REDISPASS=$(get_random_value)
|
||||||
|
SOCSRVKEY=$(get_random_value 64)
|
||||||
}
|
}
|
||||||
|
|
||||||
generate_interface_vars() {
|
generate_interface_vars() {
|
||||||
@@ -1380,7 +1381,11 @@ idstools_pillar() {
|
|||||||
soc_pillar() {
|
soc_pillar() {
|
||||||
title "Creating the SOC pillar"
|
title "Creating the SOC pillar"
|
||||||
touch $adv_soc_pillar_file
|
touch $adv_soc_pillar_file
|
||||||
touch $soc_pillar_file
|
printf '%s\n'\
|
||||||
|
"soc:"\
|
||||||
|
" server:"\
|
||||||
|
" srvKey: '$SOCSRVKEY'"\
|
||||||
|
"" > "$soc_pillar_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
telegraf_pillar() {
|
telegraf_pillar() {
|
||||||
|
|||||||
Reference in New Issue
Block a user