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

SDK should use local configuration file when no ENV variables are available #83

Open
gitirabassi opened this issue Mar 18, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@gitirabassi
Copy link

Much like kubectl, aws and gcloud-cli, az-cli: env variables are the first source of credentials, but they all fall back to local credentials (using the current configured profile)

@vlastahajek
Copy link
Contributor

Interesting idea, @gitirabassi. However, I don't think such functionality belongs to the library. This should be incorporated into a tool that uses the library. E.g. if the influx tool would use go client it could use env variables to feed them to the go client API.
The examples you provided are actually also tools and they internally use some libraries for connecting to the respective server.

@gitirabassi
Copy link
Author

@vlastahajek all these tools use the official sdk which has the functionality i’m asking for. This helps giving a consistent feel and usage. Using the influx tool and a custom go program on their machine should work seamesly

@vlastahajek vlastahajek added the enhancement New feature or request label Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants