guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/10: services: zabbix-frontend: Fix configuration file for hard coded


From: guix-commits
Subject: 02/10: services: zabbix-frontend: Fix configuration file for hard coded passwords.
Date: Sat, 29 Jan 2022 06:53:58 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 4657a39270f64c071d6b68693e9e5b7fcbb2bfa5
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Jan 28 10:56:26 2022 +0100

    services: zabbix-frontend: Fix configuration file for hard coded passwords.
    
    This is a follow-up to commit 078f5bfae7ee174177791defcfd350117a503a6d.
    
    * gnu/services/monitoring.scm (zabbix-front-end-config): When DB-PASSWORD is
    set, enclose the password with quotes in the configuration file.
---
 gnu/services/monitoring.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/services/monitoring.scm b/gnu/services/monitoring.scm
index 1b49dbd3cb..957672882a 100644
--- a/gnu/services/monitoring.scm
+++ b/gnu/services/monitoring.scm
@@ -598,7 +598,7 @@ $DB['PASSWORD'] = " (let ((file (location-file %location))
                              (display-hint (format #f (G_ "~a:~a:~a: ~a:
 Consider using @code{db-secret-file} instead of @code{db-password} for better
 security.") file line column 'zabbix-front-end-configuration))
-                             db-password)))
+                             (format #f "'~a';~%" db-password))))
 "
 // Schema name. Used for IBM DB2 and PostgreSQL.
 $DB['SCHEMA'] = '';



reply via email to

[Prev in Thread] Current Thread [Next in Thread]