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

Unable to use proxy for outgoing connections #1367

Closed
jascsch opened this issue Jul 12, 2022 · 4 comments
Closed

Unable to use proxy for outgoing connections #1367

jascsch opened this issue Jul 12, 2022 · 4 comments
Labels
argo-cd bug Something isn't working

Comments

@jascsch
Copy link

jascsch commented Jul 12, 2022

Describe the bug

Error: looks like "https://helm.traefik.io/traefik" is not a valid chart repository or cannot be reached: Get "https://helm.traefik.io/traefik/index.yaml": dial tcp: lookup helm.traefik.io on 192.168.64.10:53: no such host

Related helm chart

argo-cd

Helm chart version

4.9.12

To Reproduce

  # -- Environment variables to pass to Argo CD server
  env:
  - name: http_proxy
    value: http://security-proxy.emea.svc.corpintra.net:3128/
  - name: https_proxy
    value: http://security-proxy.emea.svc.corpintra.net:3128/
  - name: no_proxy
    value: argocd-repo-server,argocd-application-controller,argocd-metrics,argocd-server,argocd-server-metrics,argocd-redis,192.168.0.0/8

Expected behavior

The corporate proxy should be able to resolve the DNS name helm.traefik.io correctly but it does not seem to work.

Screenshots

No response

Additional context

No response

@jascsch jascsch added the bug Something isn't working label Jul 12, 2022
@jascsch
Copy link
Author

jascsch commented Jul 19, 2022

Hello, any news to this issue? this is currently a blocker for our use case. Is there any way to pass the dns resolution to the corporate proxy server?

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@pdrastil
Copy link
Member

Hi @jascsch,
I would take a look on following thread argoproj/argo-cd#2954. Argo CD server is just UI component, but cloning of the chart is actually done by repo-server. You can also try to use configuration for repository with proxy, however I believe this was implemented only for Git repo (not credential template) and doesn't work for Helm repositories.

Another thought about corporate proxies - IMHO I believe Argo CD should not access public internet directly in enterprise setup and should be pulling all your charts and images from solutions like Nexus, Artifactory or Harbor that acts as a local cache and some of them offers security scanning for downloaded images.

@jascsch
Copy link
Author

jascsch commented Sep 19, 2022

Hi @pdrastil Thanks for your feedback. I found a solution in the meantime which is exactly what you said.
The DNS resolution for external Helm Charts works if you set the http and https proxy env for both argocd-server and repo-server.
Therefore I will close this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
argo-cd bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants