On Wednesday, September 16, 2015 at 6:19:27 PM UTC-7, Corey Osman wrote:
>
>
> [...] how can I keep the password from showing up in the reports when the 
> password changes.  Basically I don’t want the following to occur.  Is there 
> a way to suppress the logging of this info?  Or is there a way to 
> “munge/encrypt” the info being logged? [...]
>
> Notice: /Stage[main]/Main/Bmcuser[testuser]/userpass: userpass changed 
> '**Hidden**' to ‘123456'
>
The user type in Puppet core does this mostly, using change_to_s(), 
is_to_s(), and should_to_s(). Check out this part of the newproperty() 
method for password.

https://github.com/puppetlabs/puppet/blob/master/lib/puppet/type/user.rb#L212-L225


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/cbbc5f61-d61e-4c31-82a4-f1b1877ae34c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to