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

Allow passwords to be deferred #497

Open
weavage opened this issue May 16, 2023 · 0 comments
Open

Allow passwords to be deferred #497

weavage opened this issue May 16, 2023 · 0 comments

Comments

@weavage
Copy link

weavage commented May 16, 2023

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.20.0
  • Ruby: 2.7.6p219
  • Distribution: Ubuntu 20.04.6
  • Module version: 6.1.1

How to reproduce (e.g Puppet code you use)

Specify an archive that uses username and password

$password = Deferred('vault_lookup::lookup', ["secret/test", 'https://vault.hostname:8200'])

archive { '/tmp/some_name.tar':
  ensure       => present,
  source       => $source_uri,
  user         => 'root',
  group        => 'root,
  username     => 'user',
  password     => $password,
  proxy_server => 'http://proxy.server'
  proxy_type   => 'http',
}

What are you seeing

The vault_lookup object is being inserted into the URI instead of the actual value of the vault_lookup. See log output below.

What behaviour did you expect instead

The password lookup to be deferred.

Output log

Error: Could not set 'present' on ensure: bad URI(is not URI?): "https://user:Deferred({'name' => 'vault_lookup::lookup', 'arguments' => ['secret/test', {'vault_addr' => 'https://vault.hostname:8200'}]})@source.url.com/some_name.tar" (file: .... manifests/init.pp, line: ###)

Any additional information you'd like to impart

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

No branches or pull requests

1 participant