mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #1121 from Security-Onion-Solutions/fix/thehive_static
Fix/thehive static
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
{%- set MANAGERIP = salt['pillar.get']('static:managerip', '') %}
|
{%- set MANAGERIP = salt['pillar.get']('static:managerip', '') %}
|
||||||
{%- set CORTEXKEY = salt['pillar.get']('static:cortexorguserkey', '') %}
|
{%- set CORTEXKEY = salt['pillar.get']('static:cortexorguserkey', '') %}
|
||||||
|
{%- set HIVEPLAYSECRET = salt['pillar.get']('static:hiveplaysecret', '') %}
|
||||||
|
|
||||||
# Secret Key
|
# Secret Key
|
||||||
# The secret key is used to secure cryptographic functions.
|
# The secret key is used to secure cryptographic functions.
|
||||||
# WARNING: If you deploy your application on several servers, make sure to use the same key.
|
# WARNING: If you deploy your application on several servers, make sure to use the same key.
|
||||||
play.http.secret.key="letsdewdis"
|
play.http.secret.key="{{ HIVEPLAYSECRET }}"
|
||||||
play.http.context=/thehive/
|
play.http.context=/thehive/
|
||||||
search.uri = "http://{{ MANAGERIP }}:9400"
|
search.uri = "http://{{ MANAGERIP }}:9400"
|
||||||
# Elasticsearch
|
# Elasticsearch
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
{%- set MANAGERIP = salt['pillar.get']('static:managerip', '') %}
|
{%- set MANAGERIP = salt['pillar.get']('static:managerip', '') %}
|
||||||
|
{%- set CORTEXPLAYSECRET = salt['pillar.get']('static:cortexplaysecret', '') %}
|
||||||
|
|
||||||
# Secret Key
|
# Secret Key
|
||||||
# The secret key is used to secure cryptographic functions.
|
# The secret key is used to secure cryptographic functions.
|
||||||
# WARNING: If you deploy your application on several servers, make sure to use the same key.
|
# WARNING: If you deploy your application on several servers, make sure to use the same key.
|
||||||
play.http.secret.key="letsdewdis"
|
play.http.secret.key="{{ CORTEXPLAYSECRET }}"
|
||||||
play.http.context=/cortex/
|
play.http.context=/cortex/
|
||||||
search.uri = "http://{{ MANAGERIP }}:9400"
|
search.uri = "http://{{ MANAGERIP }}:9400"
|
||||||
|
|
||||||
|
|||||||
@@ -875,8 +875,10 @@ generate_passwords(){
|
|||||||
FLEETPASS=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
FLEETPASS=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
||||||
FLEETJWT=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
FLEETJWT=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
||||||
HIVEKEY=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
HIVEKEY=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
||||||
|
HIVEPLAYSECRET=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
||||||
CORTEXKEY=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
CORTEXKEY=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
||||||
CORTEXORGUSERKEY=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
CORTEXORGUSERKEY=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
||||||
|
CORTEXPLAYSECRET=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
||||||
SENSORONIKEY=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
SENSORONIKEY=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
||||||
KRATOSKEY=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
KRATOSKEY=$(tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 20 | head -n 1)
|
||||||
}
|
}
|
||||||
@@ -1027,12 +1029,14 @@ manager_static() {
|
|||||||
" hiveuser: $WEBUSER"\
|
" hiveuser: $WEBUSER"\
|
||||||
" hivepassword: '$WEBPASSWD1'"\
|
" hivepassword: '$WEBPASSWD1'"\
|
||||||
" hivekey: $HIVEKEY"\
|
" hivekey: $HIVEKEY"\
|
||||||
|
" hiveplaysecret: $HIVEPLAYSECRET"\
|
||||||
" cortexuser: $WEBUSER"\
|
" cortexuser: $WEBUSER"\
|
||||||
" cortexpassword: '$WEBPASSWD1'"\
|
" cortexpassword: '$WEBPASSWD1'"\
|
||||||
" cortexkey: $CORTEXKEY"\
|
" cortexkey: $CORTEXKEY"\
|
||||||
" cortexorgname: SecurityOnion"\
|
" cortexorgname: SecurityOnion"\
|
||||||
" cortexorguser: $WEBUSER"\
|
" cortexorguser: soadmin"\
|
||||||
" cortexorguserkey: $CORTEXORGUSERKEY"\
|
" cortexorguserkey: $CORTEXORGUSERKEY"\
|
||||||
|
" cortexplaysecret: $CORTEXPLAYSECRET"\
|
||||||
" fleet_custom_hostname: "\
|
" fleet_custom_hostname: "\
|
||||||
" fleet_manager: False"\
|
" fleet_manager: False"\
|
||||||
" fleet_node: False"\
|
" fleet_node: False"\
|
||||||
|
|||||||
Reference in New Issue
Block a user