From 7fc2467951c864627c0c3beff04b45259eb61f32 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Wed, 24 Mar 2021 15:00:02 -0400 Subject: [PATCH 1/2] Correct local online docs link to release notes --- salt/soc/files/soc/motd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/soc/files/soc/motd.md b/salt/soc/files/soc/motd.md index 43da6732a..295329f39 100644 --- a/salt/soc/files/soc/motd.md +++ b/salt/soc/files/soc/motd.md @@ -6,7 +6,7 @@ If you're ready to dive-in, take a look at the [Alerts](/#/alerts) interface to ## What's New -The release notes have moved to the upper-right menu. Click on the [What's New](/docs/release-notes.html) menu option to find all the latest fixes and features in this version of Security Onion! +The release notes have moved to the upper-right menu. Click on the [What's New](/docs/#document-release-notes) menu option to find all the latest fixes and features in this version of Security Onion! ## Customize This Space From 0195d366cc9b386f73e1aa47ce4c437fb354118b Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Fri, 26 Mar 2021 14:44:27 -0400 Subject: [PATCH 2/2] Add custom banner to login page --- salt/nginx/etc/nginx.conf | 2 +- salt/soc/files/soc/banner.md | 0 salt/soc/init.sls | 10 ++++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 salt/soc/files/soc/banner.md diff --git a/salt/nginx/etc/nginx.conf b/salt/nginx/etc/nginx.conf index 25e8bc11f..ea820442b 100644 --- a/salt/nginx/etc/nginx.conf +++ b/salt/nginx/etc/nginx.conf @@ -157,7 +157,7 @@ http { ssl_prefer_server_ciphers on; ssl_protocols TLSv1.2; - location ~* (^/login/|^/js/.*|^/css/.*|^/images/.*) { + location ~* (^/login/.*|^/js/.*|^/css/.*|^/images/.*) { proxy_pass http://{{ manager_ip }}:9822; proxy_read_timeout 90; proxy_connect_timeout 90; diff --git a/salt/soc/files/soc/banner.md b/salt/soc/files/soc/banner.md new file mode 100644 index 000000000..e69de29bb diff --git a/salt/soc/init.sls b/salt/soc/init.sls index a2d3ecf89..18fda41da 100644 --- a/salt/soc/init.sls +++ b/salt/soc/init.sls @@ -44,6 +44,15 @@ socmotd: - mode: 600 - template: jinja +socbanner: + file.managed: + - name: /opt/so/conf/soc/banner.md + - source: salt://soc/files/soc/banner.md + - user: 939 + - group: 939 + - mode: 600 + - template: jinja + soccustom: file.managed: - name: /opt/so/conf/soc/custom.js @@ -62,6 +71,7 @@ so-soc: - /nsm/soc/jobs:/opt/sensoroni/jobs:rw - /opt/so/conf/soc/soc.json:/opt/sensoroni/sensoroni.json:ro - /opt/so/conf/soc/motd.md:/opt/sensoroni/html/motd.md:ro + - /opt/so/conf/soc/banner.md:/opt/sensoroni/html/login/banner.md:ro - /opt/so/conf/soc/custom.js:/opt/sensoroni/html/js/custom.js:ro - /opt/so/log/soc/:/opt/sensoroni/logs/:rw {%- if salt['pillar.get']('nodestab', {}) %}