Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRead Azure credentials from environment variable #4857
Comments
This comment has been minimized.
This comment has been minimized.
|
We recommend against using environment variables for secrets as they aren't designed for it. We also want to have just one place that configuration comes from. If the client we're using happens to this under the covers that's it's own business though. |
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil I understand your point but isn't this kind of inconsistent to have it for one type of service discovery and not for another? |
This comment has been minimized.
This comment has been minimized.
|
We can't control the consistency of the libraries vendors provide. Environment variables are worse than files on disk, as it's common to e.g. dump them when there's an error. |
simonpasquier
added
the
component/service discovery
label
Nov 13, 2018
This comment has been minimized.
This comment has been minimized.
|
@yanivroz I guess the question is whether azure has official environment variables similar to those you would use with the AWS cli: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html#cli-quick-configuration Even if it does, I agree with Brian. |
This comment has been minimized.
This comment has been minimized.
|
Azure does have these official environment variables used for similar use cases:
https://simple-azure.readthedocs.io/en/latest/arm.html
https://github.com/banzaicloud/azure-aks-client/blob/master/README.md
I just think it’s inconsistent that Prometheus supports this for AWS and not for Azure…
|
yanivroz commentedNov 12, 2018
Proposal
I saw in the documentation that you can obtain AWS credentials from environment varaibles:
Any plan to support the same for Azure?
something like this: