voxpupuli/puppet-vault_lookup

Retreiving a field value fails.

Closed this issue · 1 comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.28.0
  • Ruby:
  • Distribution: Windows Server 2019
  • Module version: 0.6.0

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

$v = vault_lookup::lookup('ad/creds/puppet',
  "https://vault.${trusted['domain']}:8200",
  'v1/auth/cert',
  'wsus',
  nil,
  'current_password'
)

What are you seeing

Error: Failed to apply catalog: Error parsing json secret data from vault response

What behaviour did you expect instead

Compiled catalog and value of current_password field retrieved.

Output log

Any additional information you'd like to impart

I was using the this module to lookup a value from a Active Directory secret engine. This module is only intended for use with the Key/Value secret engine. Sorry about the noise.