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

User-Agent missing version #7669

Closed
3 tasks done
james-callahan opened this issue Nov 10, 2021 · 2 comments · Fixed by #8566
Closed
3 tasks done

User-Agent missing version #7669

james-callahan opened this issue Nov 10, 2021 · 2 comments · Fixed by #8566
Assignees
Labels
bug/priority:medium Should be fixed in the next minor releases bug/severity:minor Bug has limited impact, maybe affects only an edge-case or is of cosmetic nature bug Something isn't working good first issue Good for newcomers

Comments

@james-callahan
Copy link
Contributor

If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a question in argocd slack channel.

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

The HTTP User-Agent sent by the ArgoCD application controller is missing version information.
Out kubernetes API server sees: argocd-application-controller/v0.0.0 (linux/amd64) kubernetes/$Format

To Reproduce

  • Use official ArgoCD docker container
  • Look at your kube api server logs

Expected behavior

User-Agent sent by ArgoCD should contain the ArgoCD version.

Version

Argo CD v2.1.2+7af9dfb

Logs

As seen by kube-apiserver-audit:

{"kind":"Event","apiVersion":"audit.k8s.io/v1","level":"Request","stage":"ResponseComplete","verb":"get","userAgent":"argocd-application-controller/v0.0.0 (linux/amd64) kubernetes/$Format",......}
@james-callahan james-callahan added the bug Something isn't working label Nov 10, 2021
@jannfis jannfis added bug/priority:medium Should be fixed in the next minor releases bug/severity:minor Bug has limited impact, maybe affects only an edge-case or is of cosmetic nature good first issue Good for newcomers labels Nov 12, 2021
@jannfis
Copy link
Member

jannfis commented Nov 12, 2021

I agree, we could supply the version in the user agent.

@hzliangbin
Copy link

@jannfis I would like to give it a try, may I take this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/priority:medium Should be fixed in the next minor releases bug/severity:minor Bug has limited impact, maybe affects only an edge-case or is of cosmetic nature bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants