Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passwords shown in puppet agent/apply --test output #576

Open
stefanbethke opened this issue Jul 14, 2017 · 3 comments
Open

Passwords shown in puppet agent/apply --test output #576

stefanbethke opened this issue Jul 14, 2017 · 3 comments

Comments

@stefanbethke
Copy link

stefanbethke commented Jul 14, 2017

When running puppet with --test, passwords are shown in the diff output:

Notice: /Stage[main]/Foreman::Database::Postgresql/Postgresql::Server::Db[foreman]/Postgresql::Server::Role[foreman]/Postgresql_psql[ALTER ROLE foreman ENCRYPTED PASSWORD ****]/command: command changed 'notrun' to 'ALTER ROLE "foreman" ENCRYPTED PASSWORD '$NEWPGPASSWD''
Notice: /Stage[main]/Foreman::Config/File[/etc/foreman/database.yml]/content:
--- /etc/foreman/database.yml   2016-09-22 15:17:30.849893994 +0200
+++ /tmp/puppet-file20160922-2739-1bwkd1t       2016-09-22 15:31:04.026653398 +0200
@@ -24,5 +24,5 @@
   port: 5432
   database: foreman
   username: foreman
-  password: "foo"
+  password: "foobar"
   pool: 5

The file resources should be declared with { show_diff => false }.

Originally noticed by @elconas

@mmoll
Copy link
Contributor

mmoll commented Jul 14, 2017

@stefanbethke
Copy link
Author

Of course, I'd be happy for someone to implement proper use of Sensitive in this module, as well :-)

@mmoll
Copy link
Contributor

mmoll commented Jul 14, 2017

someone[tm] ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants