Closed sgnn7 closed 4 years ago
Use of positional arguments in deferred function use seems a bit clunky so we should try to see if we can use a hash of options instead
$sslcert = @("EOT") -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- |-EOT
$dbpass = Sensitive(Deferred(conjur::secret, ['production/postgres/password', { appliance_url => "https://my.conjur.org", account => "myaccount", authn_account => "host/myhost", authn_api_key => Sensitive("2z9mndg1950gcx1mcrs6w18bwnp028dqkmc34vj8gh2p500ny1qk8n"), ssl_certificate => $sslcert }))
## Describe alternatives you have considered N/A ## Additional context N/A
Released with v3.0.0rc3. Closing.
Is your feature request related to a problem? Please describe.
Use of positional arguments in deferred function use seems a bit clunky so we should try to see if we can use a hash of options instead
Describe the solution you would like
$dbpass = Sensitive(Deferred(conjur::secret, ['production/postgres/password', { appliance_url => "https://my.conjur.org", account => "myaccount", authn_account => "host/myhost", authn_api_key => Sensitive("2z9mndg1950gcx1mcrs6w18bwnp028dqkmc34vj8gh2p500ny1qk8n"), ssl_certificate => $sslcert }))