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

Conceal the AD join password using an ENV var #29

Merged
merged 1 commit into from Jul 19, 2017

Conversation

jeffmccune
Copy link
Contributor

Without this patch the AD join password is shown in the Puppet logs:

Aug 15 16:42:10 agent1 puppet-agent[2476]: \
  (/Stage[main]/Realmd::Join::Password/Exec[realm_join_with_password]/returns) \
  change from notrun to 0 failed: echo  Password1' | realm join puppet.vm \
  --unattended --user=Administrator returned 1 instead of one of [0]

This patch addresses the problem by wrapping the redirection in a shell script
and reading the password from an environment variable set by Puppet. This
prevents the password from showing up in the Puppet logs or in the process
table.

Resolves #9

Without this patch the AD join password is shown in the Puppet logs:

    Aug 15 16:42:10 agent1 puppet-agent[2476]: \
      (/Stage[main]/Realmd::Join::Password/Exec[realm_join_with_password]/returns) \
      change from notrun to 0 failed: echo  Password1' | realm join puppet.vm \
      --unattended --user=Administrator returned 1 instead of one of [0]

This patch addresses the problem by wrapping the redirection in a shell script
and reading the password from an environment variable set by Puppet.  This
prevents the password from showing up in the Puppet logs or in the process
table.

Resolves walkamongus#9
@walkamongus walkamongus merged commit 28180f8 into walkamongus:master Jul 19, 2017
@walkamongus
Copy link
Owner

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants