Continue merge of ECS into Elastic Auth

This commit is contained in:
Jason Ertel
2021-06-15 09:11:58 -04:00
parent 3891ca2929
commit dd8eb29a18
8 changed files with 25 additions and 13 deletions

View File

@@ -49,6 +49,7 @@ curconf:
- source: salt://curator/files/curator.yml - source: salt://curator/files/curator.yml
- user: 934 - user: 934
- group: 939 - group: 939
- mode: 660
- template: jinja - template: jinja
curcloseddel: curcloseddel:

View File

@@ -99,6 +99,7 @@ elastaconf:
elastalert_config: {{ elastalert_config.elastalert.config }} elastalert_config: {{ elastalert_config.elastalert.config }}
- user: 933 - user: 933
- group: 933 - group: 933
- mode: 660
- template: jinja - template: jinja
wait_for_elasticsearch: wait_for_elasticsearch:

View File

@@ -1,3 +1,4 @@
# Copyright 2014,2015,2016,2017,2018,2019,2020,2021 Security Onion Solutions, LLC # Copyright 2014,2015,2016,2017,2018,2019,2020,2021 Security Onion Solutions, LLC
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@@ -83,6 +84,7 @@ filebeatmoduleconfsync:
- source: salt://filebeat/etc/module-setup.yml - source: salt://filebeat/etc/module-setup.yml
- user: root - user: root
- group: root - group: root
- mode: 660
- template: jinja - template: jinja
sodefaults_module_conf: sodefaults_module_conf:

View File

@@ -35,6 +35,7 @@ synckibanaconfig:
- source: salt://kibana/etc - source: salt://kibana/etc
- user: 932 - user: 932
- group: 939 - group: 939
- file_mode: 660
- template: jinja - template: jinja
kibanalogdir: kibanalogdir:

View File

@@ -78,6 +78,7 @@ ls_pipeline_{{PL}}_{{CONFIGFILE.split('.')[0] | replace("/","_") }}:
{% endif %} {% endif %}
- user: 931 - user: 931
- group: 939 - group: 939
- mode: 660
- makedirs: True - makedirs: True
{% endfor %} {% endfor %}

View File

@@ -3,18 +3,22 @@
{%- else %} {%- else %}
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%} {%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
{%- endif %} {%- endif %}
{%- set ES_USER = salt['pillar.get']('elasticsearch:auth:users:so_logstash_user:user', '') %}
{%- set ES_PASS = salt['pillar.get']('elasticsearch:auth:users:so_logstash_user:pass', '') %}
output { output {
if [metadata][pipeline] { if [metadata][pipeline] {
elasticsearch { elasticsearch {
id => "filebeat_modules_metadata_pipeline" id => "filebeat_modules_metadata_pipeline"
pipeline => "%{[metadata][pipeline]}" pipeline => "%{[metadata][pipeline]}"
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "so-%{[event][module]}-%{+YYYY.MM.dd}" user => "{{ ES_USER }}"
template_name => "so-common" password => "{{ ES_PASS }}"
template => "/templates/so-common-template.json" index => "so-%{[event][module]}-%{+YYYY.MM.dd}"
template_overwrite => true template_name => "so-common"
ssl => true template => "/templates/so-common-template.json"
ssl_certificate_verification => false template_overwrite => true
} ssl => true
} ssl_certificate_verification => false
}
}
} }

View File

@@ -44,6 +44,7 @@ playbookrulesdir:
- name: /opt/so/rules/elastalert/playbook - name: /opt/so/rules/elastalert/playbook
- user: 939 - user: 939
- group: 939 - group: 939
- mode: 660
- makedirs: True - makedirs: True
playbookrulessync: playbookrulessync:

View File

@@ -38,6 +38,7 @@ tgrafconf:
- name: /opt/so/conf/telegraf/etc/telegraf.conf - name: /opt/so/conf/telegraf/etc/telegraf.conf
- user: 939 - user: 939
- group: 939 - group: 939
- mode: 660
- template: jinja - template: jinja
- source: salt://telegraf/etc/telegraf.conf - source: salt://telegraf/etc/telegraf.conf