-
Notifications
You must be signed in to change notification settings - Fork 16
Description
We have noticed that the password can be seen when running
puppet agent -t --debug
Debug: /Stage[main]/Adcli::Join/Exec[adcli_join]: '/bin/echo -n 'passwordinplaintext' | /usr/sbin/adcli join --login-user='adjoin' --domain='example.local' --domain-ou='OU=Linux,OU=Servers,OU=AdminOU,DC=example,DC=local' --stdin-password --verbose ' won't be executed because of failed check 'unless'
It was expected that the password would be obscured with xxxxxxx possibly by using the Sensative() fucntions
We are calling it using heira vars but also called it this way
class {'::adcli':
ad_join_password => lookup('adcli::ad_join_password')
}
also tried
class {'::adcli':
ad_join_password => Sensitive(lookup('adcli::ad_join_password'))
}
and this errors out as you are using plain text strings I believe
Is there any way to mask the password?