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

Host factory token use with hiera-backed on newly-provisioned machines causes errors #112

Closed
1 of 3 tasks
sgnn7 opened this issue Jul 13, 2020 · 0 comments
Closed
1 of 3 tasks

Comments

@sgnn7
Copy link
Contributor

sgnn7 commented Jul 13, 2020

Summary

When using HFTs to provision new Conjur machine identities and using hiera, the code throws errors due to the fact that the registry key that this module uses to store configuration data is not present on the first run.

Dev info:

  • Problem code is here
  • The fix would just involve make sure that this block of code returns an empty hash on errors

Steps to Reproduce

Steps to reproduce the behavior:

  1. Setup puppet with a clean Windows host ready (don't run agent yet)
  2. Setup conjur HFTs
  3. Configure hiera to pass all of the Windows configuration options for that host for HFT-specific use
  4. Run the agent on the node

Expected Results

Agent can pull secrets

Actual Results (including error logs, if applicable)

Agent run fails with errors as the conjur configuration registry key is not present

Reproducible

  • Always
  • Sometimes
  • Non-Reproducible

Version/Tag number

Tested on Puppet 6 and pre-3.0.0 version. This error would be visible on puppet 5 and any older version as well probably.

Environment setup

Puppet Master: Docker-compose, v6
Puppet Agent: Windows 2012r2 VM in VirtualBox
Conjur Master: Docker-compose, v5

Additional Information

N/A

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

No branches or pull requests

2 participants