-
Notifications
You must be signed in to change notification settings - Fork 794
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
[feature request] Set a unique user-agent for skopeo #1109
Comments
Thanks for the request, @jonjohnsonjr. |
Alternatively, should c/image have a default User-Agent value? Podman and Buildah set a value, but it’s unclear that the registry cares about the difference. (OTOH I vaguely remember that at one time we have traced back a behavior difference between Podman and Skopeo down to User-Agent, and I can’t remember which one worked; so it might not be safe enough to default to an User-Agent value — or maybe that case was sufficiently obscure that we shouldn’t need to care; I can’t remember the details and I can’t search for them today.) |
I'd be fine with that as well, especially if some version information is included. Mostly I'm looking for a way to reproduce issues and determine how many users are affected by said issues. Some kind of containers/image UA by default like skopeo could supply its own to produce
containers/podman#1792 might be what you're thinking of? Looks like it's fixed. That kind of user-agent sniffing is super brittle and I'd argue any registries doing this are broken :) |
I was actually thinking of containers/podman#4254 (comment) , which is at least per the issue ~unresolved , though the other one is also relevant (as is, to an extent, containers/podman#3788 “Our setup uses a nginx reverse proxy that only forwards requests to https://repo:443/... if the User-Agent string matches the pattern docker,” — but we really can’t support arbitrary user-agent-restrictive configurations, so that one is moot). Anyway, yes, I think this should happen, and the syntax you suggest does seem to be valid per RFC 7231 section 5.5.3 . c/image will probably need a new |
Yeah... that's hard to accommodate. Luckily for them, if the useragent is set to
👍 |
I did some quick grepping around and don't see any skopeo-specific user-agent being set, which makes debugging things from the registry side a bit challenging.
The text was updated successfully, but these errors were encountered: