From f3bf21380d468309961cdb3c6b1ddc628d6ef01f Mon Sep 17 00:00:00 2001 From: Akond Rahman Date: Wed, 3 Apr 2019 19:56:02 -0500 Subject: [PATCH] Update database_mysql.rb MD5 has security weaknesses, better to use SHA 512. Any feedback is welcome. --- cookbooks/zabbix/recipes/database_mysql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/zabbix/recipes/database_mysql.rb b/cookbooks/zabbix/recipes/database_mysql.rb index 90f286f7..a958c298 100644 --- a/cookbooks/zabbix/recipes/database_mysql.rb +++ b/cookbooks/zabbix/recipes/database_mysql.rb @@ -126,7 +126,7 @@ username = node.zabbix.api.username first_name = 'Zabbix' last_name = 'Administrator' - md5 = Digest::MD5.hexdigest(node.zabbix.api.password) + md5 = Digest::SHA2.new(512).hexdigest(node.zabbix.api.password) rows = 200 type = 3 grp_name = node.zabbix.api.user_group