Open R3DRUN3 opened 1 year ago
NOTE
I was able to bypass this problem by specifying the full certificate chain instead of just the Conjur host certificate.
I don't know if this behavior is intentional, it seems a little strange having to specify the entire certificate chain bundle... In fact, it seems strange and a bit unconventional having to specify a public SSL certificate at all 🤔
The same problem occurred (and was bypassed) in the same way in the conjur-api-go library as well (see this issue).
Summary
I get an error when I try to retrieve a secret from Conjur (with self signed cert).
Steps to Reproduce
$secret = Deferred(conjur::secret, ['host/conjur/tekton-pipeline-demo', { appliance_url => "https://conjur-lb.vsphere.playground.com", account => "default", authn_login => "host/conjur/tekton-pipeline-demo", authn_api_key => Sensitive(""),
ssl_certificate => $sslcert
}])
file { '/tmp/creds.txt': ensure => file, mode => '0600', content => $secret, }
Reproducible
Version/Tag number
Environment setup
Puppet server and agent are both installed (and working) on a local Ubuntu VM.
Conjur is installed on a remote VM (Connection via VPN).
Additional Information
From the Ubuntu VM I can reach conjur api and retrieve secrets.