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

Add UpstreamClientUserAgent to dockerclient #1678

Merged
merged 2 commits into from Dec 13, 2022
Merged

Conversation

mfridman
Copy link
Member

This sets an UpstreamClient User-Agent on our docker client which gets injected in the outgoing request.

https://github.com/moby/moby/blob/a4cbaa958d03b54da713162c8a23574430dacfa8/dockerversion/useragent.go#L70-L78

On the OCI registry side we can inspect the incoming request, which will look something like this:

docker/20.10.21 go/go1.18.7 git-commit/3056208 kernel/5.15.49-linuxkit os/linux arch/arm64 UpstreamClient(buf-cli-1.11.0-dev)

And parse out the UpstreamClient portion.

@mfridman mfridman merged commit 2991585 into main Dec 13, 2022
@mfridman mfridman deleted the update-docker-client branch December 13, 2022 21:31
Monirul1 pushed a commit to Monirul1/buf that referenced this pull request Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants