Merge pull request #9516 from Security-Onion-Solutions/mkr24

Add PW auth for Redis
This commit is contained in:
Mike Reeves
2023-01-04 14:50:27 -05:00
committed by GitHub
8 changed files with 28 additions and 14 deletions

View File

@@ -4,9 +4,7 @@
# 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.
{%- set REDIS_PASS = salt['pillar.get']('redis:config:requirepass', '0') %}
. /usr/sbin/so-common
docker exec so-redis redis-cli llen logstash:unparsed
docker exec so-redis /bin/sh -c "export REDISCLI_AUTH={{ REDIS_PASS }} && redis-cli llen logstash:unparsed"