Merge pull request #749 from buzzdeee/master
prevent information leak of database user password
This commit is contained in:
commit
107af3cb83
1 changed files with 5 additions and 1 deletions
|
@ -38,8 +38,12 @@ Puppet::Type.type(:postgresql_psql).provide(:ruby) do
|
||||||
env_name = $1
|
env_name = $1
|
||||||
value = $2
|
value = $2
|
||||||
if environment.include?(env_name) || environment.include?(env_name.to_sym)
|
if environment.include?(env_name) || environment.include?(env_name.to_sym)
|
||||||
|
if env_name == 'NEWPGPASSWD'
|
||||||
|
warning "Overriding environment setting '#{env_name}' with '****'"
|
||||||
|
else
|
||||||
warning "Overriding environment setting '#{env_name}' with '#{value}'"
|
warning "Overriding environment setting '#{env_name}' with '#{value}'"
|
||||||
end
|
end
|
||||||
|
end
|
||||||
environment[env_name] = value
|
environment[env_name] = value
|
||||||
else
|
else
|
||||||
warning "Cannot understand environment setting #{setting.inspect}"
|
warning "Cannot understand environment setting #{setting.inspect}"
|
||||||
|
|
Loading…
Reference in a new issue