Compare commits

..
Author SHA1 Message Date
Jason Ertel 4e1935f8a0 postgress updates 2026-07-21 11:58:11 -04:00
Mike ReevesandGitHub 89f4950521 Merge pull request #16084 from Security-Onion-Solutions/postgres-log-password-scrub
PostgreSQL: prevent password log leak + self-heal SOC database bootstrap
2026-07-20 15:33:05 -04:00
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -133,6 +133,7 @@ if [[ $EXCLUDE_STARTUP_ERRORS == 'Y' ]]; then
EXCLUDED_ERRORS="$EXCLUDED_ERRORS|Cancelling deferred write event maybeFenceReplicas because the event queue is now closed" # Kafka controller log during shutdown/restart EXCLUDED_ERRORS="$EXCLUDED_ERRORS|Cancelling deferred write event maybeFenceReplicas because the event queue is now closed" # Kafka controller log during shutdown/restart
EXCLUDED_ERRORS="$EXCLUDED_ERRORS|Redis may have been restarted" # Redis likely restarted by salt EXCLUDED_ERRORS="$EXCLUDED_ERRORS|Redis may have been restarted" # Redis likely restarted by salt
EXCLUDED_ERRORS="$EXCLUDED_ERRORS|file already closed" # Go logging race condition during container restart EXCLUDED_ERRORS="$EXCLUDED_ERRORS|file already closed" # Go logging race condition during container restart
EXCLUDED_ERRORS="$EXCLUDED_ERRORS|relation \"audit_settings\" does not exist" # salt checking for changes before SOC starts
fi fi
if [[ $EXCLUDE_FALSE_POSITIVE_ERRORS == 'Y' ]]; then if [[ $EXCLUDE_FALSE_POSITIVE_ERRORS == 'Y' ]]; then
+1 -1
View File
@@ -1539,7 +1539,7 @@ soc:
postgres: postgres:
host: "" host: ""
port: 5432 port: 5432
sslMode: "allow" sslMode: "require"
database: securityonion database: securityonion
user: "" user: ""
password: "" password: ""
+1 -1
View File
@@ -88,7 +88,7 @@
'host': GLOBALS.manager_ip, 'host': GLOBALS.manager_ip,
'password': PG_PASS, 'password': PG_PASS,
'port': 5432, 'port': 5432,
'sslMode': 'allow', 'sslMode': 'require',
'user': PG_USER, 'user': PG_USER,
} }
}) %} }) %}
+1 -1
View File
@@ -486,7 +486,7 @@ soc:
global: True global: True
advanced: True advanced: True
sslMode: sslMode:
description: "Use encrypted connections to the PostgreSQL server. Must be one of the following values: disable, allow, prefer, require, verify-ca, verify-full. Defaults to allow." description: "Use encrypted connections to the PostgreSQL server. Must be one of the following values: disable, allow, prefer, require, verify-ca, verify-full."
global: True global: True
advanced: True advanced: True
database: database: