Closed src386 closed 11 months ago
The update_pgpass resource may fail when using strong ${database_password} that contain special characters such as & because the echoed string is not escaped. This Pull request adds double quotes shell_escape() (as suggested by @smortex).
update_pgpass
${database_password}
&
shell_escape()
In https://github.com/voxpupuli/puppet-zabbix/pull/904 I've taken another approach where I provide all the data via env vars, removing the need for the pgpass file altogether.
Pull Request (PR) description
The
update_pgpass
resource may fail when using strong${database_password}
that contain special characters such as&
because the echoed string is not escaped. This Pull request addsdouble quotesshell_escape()
(as suggested by @smortex).This Pull Request (PR) fixes the following issues