From 4e1935f8a0bad057dee6a15c7360ed7d7e3ef958 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Tue, 21 Jul 2026 11:58:11 -0400 Subject: [PATCH] postgress updates --- salt/common/tools/sbin/so-log-check | 1 + salt/soc/defaults.yaml | 2 +- salt/soc/merged.map.jinja | 2 +- salt/soc/soc_soc.yaml | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/salt/common/tools/sbin/so-log-check b/salt/common/tools/sbin/so-log-check index 42ceea47b..56c0278da 100755 --- a/salt/common/tools/sbin/so-log-check +++ b/salt/common/tools/sbin/so-log-check @@ -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|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|relation \"audit_settings\" does not exist" # salt checking for changes before SOC starts fi if [[ $EXCLUDE_FALSE_POSITIVE_ERRORS == 'Y' ]]; then diff --git a/salt/soc/defaults.yaml b/salt/soc/defaults.yaml index 9705c1863..e04b966c0 100644 --- a/salt/soc/defaults.yaml +++ b/salt/soc/defaults.yaml @@ -1539,7 +1539,7 @@ soc: postgres: host: "" port: 5432 - sslMode: "allow" + sslMode: "require" database: securityonion user: "" password: "" diff --git a/salt/soc/merged.map.jinja b/salt/soc/merged.map.jinja index a421711e2..452fba0b9 100644 --- a/salt/soc/merged.map.jinja +++ b/salt/soc/merged.map.jinja @@ -88,7 +88,7 @@ 'host': GLOBALS.manager_ip, 'password': PG_PASS, 'port': 5432, - 'sslMode': 'allow', + 'sslMode': 'require', 'user': PG_USER, } }) %} diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index f09317f39..eb4cd3154 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -486,7 +486,7 @@ soc: global: True advanced: True 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 advanced: True database: