Skip to content

Argocd helm library does not seem to provide an User-Agent when downloading charts #25459

@kafeinnet

Description

@kafeinnet

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

When installing cfssl-issuers from wikimedia helm repo, this error is firing:

{"level":"fatal","msg":"rpc error: code = FailedPrecondition desc = error resolving repo revision: rpc error: code = Unknown desc = failed to list refs: authorization failed: Please set a user-agent and respect our robot policy https://w.wiki/4wJS. See also https://phabricator.wikimedia.org/T400119.\n","time":"2025-12-01T11:19:57+01:00"}

It seems that argocd helm library does not provide a User-Agent when pulling helm charts.

To Reproduce

Define an application like this:

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: cfssl-issuer
  namespace: argocd
spec:
  destination:
    name: in-cluster
    namespace: argocd
  project: default
  source:
    helm:
      valuesObject:
    path: cfssl-issuer
    repoURL: https://helm-charts.wikimedia.org/stable/
    targetRevision: 0.4.4

And sync the application.

Expected behavior

The helm chart is deployed (or at least downloaded) without error.

Version

argocd: v3.2.1+unknown
  BuildDate: 2025-11-30T14:07:55Z
  GitCommit: 
  GitTreeState: 
  GitTag: 3.2.1
  GoVersion: go1.25.4 X:nodwarf5
  Compiler: gc
  Platform: linux/amd64
argocd-server: v3.2.1+unknown
  BuildDate: 2025-11-30T14:07:55Z
  GitTag: 3.2.1
  GoVersion: go1.25.4 X:nodwarf5
  Compiler: gc
  Platform: linux/amd64
  Kustomize Version: could not get kustomize version: exec: "kustomize": executable file not found in $PATH
  Helm Version: v3.19.2+g8766e71
  Jsonnet Version: v0.21.0

Logs

❯ argocd app sync cfssl-issuer 
{"level":"fatal","msg":"rpc error: code = FailedPrecondition desc = error resolving repo revision: rpc error: code = Unknown desc = failed to list refs: authorization failed: Please set a user-agent and respect our robot policy https://w.wiki/4wJS. See also https://phabricator.wikimedia.org/T400119.\n","time":"2025-12-01T11:19:57+01:00"}

Metadata

Metadata

Assignees

Labels

component:source/helmIssue related to Helm as an Application sourceenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions