-
Notifications
You must be signed in to change notification settings - Fork 10
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
Provider env var maps being hardcoded into core #10
Comments
@medikoo do you mean that we'd an Why do you think this won't scale? Adding new provider credentials in the CLI is pretty easy. |
It doesn't scale in sense, that if there will be 1000+ providers, it'll require writing in, those 1000+ cases manually here. of course that's just theoretical for now. Anyway any provider-specific logic in context of such generic module (which by definition is expected to be provider agnostic) just doesn't feel right. I think this design require some rethinking. I haven't thought that much about specific alternative (I'm still learning about components), still my first thought is that those credentials should be naturally assumed from env vars in provider components (it's how other libraries do that I think). |
Currently we hard-code handling of env var credential providers into
context.setCredentials()
.It won't scale, and in general it'll be better to encapsulate such information within components that are specific to given provider
cli/src/Context.js
Lines 107 to 129 in 9e48ce0
The text was updated successfully, but these errors were encountered: