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

Use hash object for passing extra info to deferred function #184

Closed
1 task
sgnn7 opened this issue Aug 11, 2020 · 1 comment
Closed
1 task

Use hash object for passing extra info to deferred function #184

sgnn7 opened this issue Aug 11, 2020 · 1 comment

Comments

@sgnn7
Copy link
Contributor

sgnn7 commented Aug 11, 2020

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

  • Deferred function with baked-in credentials should be able to support configuration somewhat like this:
$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

@sgnn7 sgnn7 self-assigned this Aug 11, 2020
@sgnn7 sgnn7 changed the title Investigate use of hash object for passing extra info to deferred function Use hash object for passing extra info to deferred function Aug 11, 2020
@sgnn7
Copy link
Contributor Author

sgnn7 commented Sep 11, 2020

Released with v3.0.0rc3. Closing.

@sgnn7 sgnn7 closed this as completed Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant