voxpupuli / puppet-vault_lookup

Apache License 2.0
25 stars 40 forks source link

Issue authenticating to Vault using AppRole method #83

Closed celldara closed 7 months ago

celldara commented 1 year ago

Affected Puppet, Ruby, OS and module versions/distributions

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

use approle with HashiCorp Vault

What are you seeing

Unable to authenticate (403 error)

What behaviour did you expect instead

Authenticate.

Output log

Any additional information you'd like to impart

Fix is in lib/puppet_x/vault_lookup/lookup.rb

Depending on the version depends on the line, but in current code, line 48

      approle_path_segment = 'v1/auth/approle'

should be approle_path_segment = 'v1/auth/approle/'

(Missing / after approle)