Skip to content

Commit

Permalink
Fix exposing password for debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DEFERME Bert committed Oct 19, 2022
1 parent d3b8e7e commit cf74d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/database/postgresql.pp
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
}

exec { 'update_pgpass':
command => "echo ${database_host}:5432:${database_name}:${database_user}:${database_password_unsensitive} >> /root/.pgpass",
command => Sensitive("echo ${database_host}:5432:${database_name}:${database_user}:${database_password_unsensitive} >> /root/.pgpass"),
path => "/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:${database_path}",
unless => "grep \"${database_host}:5432:${database_name}:${database_user}:${database_password_unsensitive}\" /root/.pgpass",
unless => Sensitive("grep \"${database_host}:5432:${database_name}:${database_user}:${database_password_unsensitive}\" /root/.pgpass"),
require => File['/root/.pgpass'],
}

Expand Down

0 comments on commit cf74d57

Please sign in to comment.