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

Access the values of attributes from get method #288

Open
ncode opened this issue Jun 11, 2021 · 2 comments
Open

Access the values of attributes from get method #288

ncode opened this issue Jun 11, 2021 · 2 comments

Comments

@ncode
Copy link

ncode commented Jun 11, 2021

Use Case

Allow credentials to be passed to the provider without storing those on the local machine

Describe the Solution You Would Like

    vault_secret_engine { 'nomad':
      type        => 'nomad',
      ensure      => 'present',
      description => 'dynamic token management for nomad',
      vault_token => 'my super token',
    }

Writing providers like this one for vault or even the consul one (https://github.com/solarkennedy/puppet-consul/blob/master/lib/puppet/provider/consul_policy/default.rb) some times require different tokens for each type of operation, the issue is that you don't have access to attributes during get or prefetch and it leads to hacks to make it work. I'd like have access to specific values so it become possible to use these values on API requests without the need to a transport.

@DavidS
Copy link
Contributor

DavidS commented Jun 11, 2021

There's a prototype implementation for this in #284 (for #242) - the missing piece there is verifying that the implementation doesn't leak the catalog across agent runs.

@Dan33l
Copy link

Dan33l commented Mar 31, 2022

@jpogran @binford2k is there anything planned about this enhancement ?

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

3 participants