mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-11-02 10:38:18 +01:00
Mount the host trust store into zeek, suricata, tcpreplay, the strelka containers and idh, and restart them when it changes. Point the Python requests clients in strelka-backend and idh at it instead of certifi. Remove the frozen /opt/so/conf/ca bundles from every node in ca.trust rather than only on the manager in soup.
33 lines
757 B
YAML+Jinja
33 lines
757 B
YAML+Jinja
{% from 'allowed_states.map.jinja' import allowed_states %}
|
|
{% if sls in allowed_states %}
|
|
|
|
{% from 'vars/globals.map.jinja' import GLOBALS %}
|
|
{% from 'ca/trust.map.jinja' import CATRUST %}
|
|
|
|
include:
|
|
- ca.trust
|
|
|
|
so-tcpreplay:
|
|
docker_container.running:
|
|
- network_mode: "host"
|
|
- image: {{ GLOBALS.registry_host }}:5000/{{ GLOBALS.image_repo }}/so-tcpreplay:{{ GLOBALS.so_version }}
|
|
- restart_policy: unless-stopped
|
|
- name: so-tcpreplay
|
|
- user: root
|
|
- interactive: True
|
|
- tty: True
|
|
- binds:
|
|
- {{ CATRUST.dir }}
|
|
- /opt/so/samples:/opt/so/samples:ro
|
|
- watch:
|
|
- cmd: ca_trust_extract
|
|
|
|
|
|
{% else %}
|
|
|
|
{{sls}}_state_not_allowed:
|
|
test.fail_without_changes:
|
|
- name: {{sls}}_state_not_allowed
|
|
|
|
{% endif %}
|