Merge pull request #13164 from Security-Onion-Solutions/cogburn/tls-options

AdditionalCA and InsecureSkipVerify
This commit is contained in:
coreyogburn
2024-06-07 13:10:45 -06:00
committed by GitHub
4 changed files with 29 additions and 6 deletions

View File

@@ -2,4 +2,6 @@ manager:
reposync: reposync:
enabled: True enabled: True
hour: 3 hour: 3
minute: 0 minute: 0
additionalCA: ''
insecureSkipVerify: False

7
salt/manager/map.jinja Normal file
View File

@@ -0,0 +1,7 @@
{# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
https://securityonion.net/license; you may not use this file except in compliance with the
Elastic License 2.0. #}
{% import_yaml 'manager/defaults.yaml' as MANAGERDEFAULTS %}
{% set MANAGERMERGED = salt['pillar.get']('manager', MANAGERDEFAULTS.manager, merge=True) %}

View File

@@ -7,7 +7,7 @@ manager:
hour: hour:
description: The hour of the day in which the repo sync takes place. description: The hour of the day in which the repo sync takes place.
global: True global: True
helpLink: soup.html helpLink: soup.html
minute: minute:
description: The minute within the hour to run the repo sync. description: The minute within the hour to run the repo sync.
global: True global: True
@@ -16,11 +16,23 @@ manager:
description: Enable elastalert 1=enabled 0=disabled. description: Enable elastalert 1=enabled 0=disabled.
global: True global: True
helpLink: elastalert.html helpLink: elastalert.html
no_proxy: no_proxy:
description: String of hosts to ignore the proxy settings for. description: String of hosts to ignore the proxy settings for.
global: True global: True
helpLink: proxy.html helpLink: proxy.html
proxy: proxy:
description: Proxy server to use for updates. description: Proxy server to use for updates.
global: True global: True
helpLink: proxy.html helpLink: proxy.html
additionalCA:
description: Additional CA certificates to trust in PEM format.
global: True
advanced: True
multiline: True
helpLink: proxy.html
insecureSkipVerify:
description: Disable TLS verification for outgoing requests. This will make your installation less secure to MITM attacks. Recommended only for debugging purposes.
advanced: True
forcedType: bool
global: True
helpLink: proxy.html

View File

@@ -6,13 +6,15 @@
{% from 'vars/globals.map.jinja' import GLOBALS %} {% from 'vars/globals.map.jinja' import GLOBALS %}
{% from 'soc/defaults.map.jinja' import SOCDEFAULTS with context %} {% from 'soc/defaults.map.jinja' import SOCDEFAULTS with context %}
{% from 'logstash/map.jinja' import LOGSTASH_NODES %} {% from 'logstash/map.jinja' import LOGSTASH_NODES %}
{% from 'manager/map.jinja' import MANAGERMERGED %}
{% set DOCKER_EXTRA_HOSTS = LOGSTASH_NODES %} {% set DOCKER_EXTRA_HOSTS = LOGSTASH_NODES %}
{% do DOCKER_EXTRA_HOSTS.append({GLOBALS.influxdb_host:pillar.node_data[GLOBALS.influxdb_host].ip}) %} {% do DOCKER_EXTRA_HOSTS.append({GLOBALS.influxdb_host:pillar.node_data[GLOBALS.influxdb_host].ip}) %}
{% set SOCMERGED = salt['pillar.get']('soc', SOCDEFAULTS, merge=true) %} {% set SOCMERGED = salt['pillar.get']('soc', SOCDEFAULTS, merge=true) %}
{% set MANAGER_PROXY = salt['pillar.get']('manager:proxy', '') %} {% do SOCMERGED.config.server.update({'proxy': MANAGERMERGED.proxy}) %}
{% do SOCMERGED.config.server.update({'proxy': MANAGER_PROXY}) %} {% do SOCMERGED.config.server.update({'additionalCA': MANAGERMERGED.additionalCA}) %}
{% do SOCMERGED.config.server.update({'insecureSkipVerify': MANAGERMERGED.insecureSkipVerify}) %}
{# if SOCMERGED.config.server.modules.cases == httpcase details come from the soc pillar #} {# if SOCMERGED.config.server.modules.cases == httpcase details come from the soc pillar #}
{% if SOCMERGED.config.server.modules.cases != 'soc' %} {% if SOCMERGED.config.server.modules.cases != 'soc' %}