A way to tell fnox how to get a secret for a provider
#171
Replies: 4 comments 1 reply
-
|
I just want to get some idea of if this makes sense for |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for bringing this up Kyle - this is a real pain point, especially when working with multiple instances of the same provider type. I've been thinking through a few approaches (AI-assisted analysis): Current Statefnox already supports [providers.vault-one]
type = "vault"
address = "https://my-vault-one.com/"
token = { secret = "VAULT_ONE_TOKEN" } # references another secretBut this doesn't solve the bootstrap problem - how do you obtain the token in the first place? Proposed Path ForwardI'm leaning toward a hybrid approach: Phase 1: Generic
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the detailed breakdown. A few thoughts on the approach and open questions: On the phased approach:
I think this approach makes a ton of sense. I can put together a draft PR if you'd like for phase 1 so we can have a more technical discussion of the implementation. On the open questions:
|
Beta Was this translation helpful? Give feedback.
-
|
I agree with the proposal here - #171 (comment) and would like to add We have a need to use the We also require As you suggested, allowing the consumer to configure that makes sense and is easier to maintain rather than baking all the provider options into |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
today, I need to externally provider some configuration to
fnox(e.g.VAULT_TOKEN) but if I have multiple providers defined with different vaults, I need to know ahead of time which vault fnox needs, and replace theVAULT_TOKENvariable with one for the correct vault. Ideally, a provider should have some configuration that allows us to define how to get the credentials. I would love it if this was consistent across providers, but that isn't a deal breaker.We could create a raw "command" concept that allows us to pass in an arbitrary command that returns the token, something like:
or we could create a more purpose driven config per provider, that allows us to configure args and such for the
logincommand, something like:Beta Was this translation helpful? Give feedback.
All reactions