From 3103af67a768287827cf5ccaac71ba00e3a74df9 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Tue, 9 Mar 2021 18:24:15 +0100 Subject: [PATCH] redis: escape password in Munin configuration --- CHANGELOG.md | 1 + redis/templates/munin-plugin-instances.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 892a54c1..51dfcf5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ The **patch** part changes incrementally at each release. * minifirewall: change some defaults * nagios-nrpe: update check_phpfpm_status.pl & install perl dependencies * redis: use /run instead or /var/run +* redis: escape password in Munin configuration ### Fixed diff --git a/redis/templates/munin-plugin-instances.conf.j2 b/redis/templates/munin-plugin-instances.conf.j2 index 7e6a00ac..3a0551fc 100644 --- a/redis/templates/munin-plugin-instances.conf.j2 +++ b/redis/templates/munin-plugin-instances.conf.j2 @@ -4,5 +4,5 @@ env.title_prefix Instance {{ redis_instance_name }} env.port {{ redis_port }} {% if redis_password %} -env.password {{ redis_password }} +env.password {{ redis_password | replace("#", "\#") }} {% endif %}