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

How to use in a corporate environment with a security proxy? #183

Open
amrap030 opened this issue Jan 22, 2024 · 1 comment
Open

How to use in a corporate environment with a security proxy? #183

amrap030 opened this issue Jan 22, 2024 · 1 comment
Labels
triage/support Indicates an issue that is a support question.

Comments

@amrap030
Copy link

Hello,

I would like to use this in a corporate environment, but for some reason, the container proxies the request to our internal security proxy and doesn't address the thanos query endpoint directly. I don't know why it is using the security proxy, because I actually specified the upstream as http://thanos-query.thanos.svc.cluster.local:9090.

I also tried to set the environment variables no_proxy, NO_PROXY, http_proxy, HTTP_PROXY, https_proxy and HTTPS_PROXY with no success.

Do you have any idea how to fix this?

@simonpasquier
Copy link
Contributor

Hmm, I'm quite surprised that prom-label-proxy didn't honor the proxy env variables because it doesn't specify any Transport meaning that it uses [http.DefaultTransport](https://pkg.go.dev/net/[email protected]#DefaultTransport:

It uses HTTP proxies as directed by the environment variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY (or the lowercase versions thereof). 

@simonpasquier simonpasquier added the triage/support Indicates an issue that is a support question. label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/support Indicates an issue that is a support question.
Projects
None yet
Development

No branches or pull requests

2 participants