Skip to content

Conversation

cgwalters
Copy link
Collaborator

I want this for bootc-dev/bootc#1686 so we can distinguish pulls there.

But more generally it's can be a good idea for people writing scripts using skopeo to set custom user agents so that registries can more easily trace which actors are performing tasks.

Copy link
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I… don’t think that identifying use cases via User-Agent generalizes at all. Podman is not going to use a different User-Agent depending on operation, for example.

But, *shrug*, c/image does have DockerRegistryUserAgent so it makes sense for Skopeo to expose an option.

I read https://www.rfc-editor.org/rfc/rfc7231.html#section-5.5.3 to mean that () is a comment syntax, that is not what I’d expect here.

@cgwalters
Copy link
Collaborator Author

I… don’t think that identifying use cases via User-Agent generalizes at all. Podman is not going to use a different User-Agent depending on operation, for example.

Yes, it would be unusual. But conceptually think of this as for rich enough use cases where one has a proper "application" on top of skopeo - it might be e.g. a registry which supports auto-mirroring from another registry and forks skopeo as a binary instead of vendoring the libraries because it doesn't want to hop on the CVE train.

I read https://www.rfc-editor.org/rfc/rfc7231.html#section-5.5.3 to mean that (…) is a comment syntax, that is not what I’d expect here.

Fixed, thanks!

Copy link
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

LGTM, but I’d like a second pair of eyes.

cgwalters added a commit to cgwalters/cstor-dist that referenced this pull request Oct 15, 2025
- Log data via structured logging
- Include user agent (to test out containers/skopeo#2724 )

Signed-off-by: Colin Walters <[email protected]>
@cgwalters cgwalters force-pushed the user-agent branch 2 times, most recently from 9dfc64b to 169091e Compare October 15, 2025 19:31
@cgwalters
Copy link
Collaborator Author

Added an Assisted-by: Claude Code written integration test

@cgwalters
Copy link
Collaborator Author

LGTM, but I’d like a second pair of eyes.

Who would that be?

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Still hanging watching : ^)

@vrothberg
Copy link
Member

/lgtm

@vrothberg
Copy link
Member

/lgtm

Ah, this doesn't work anymore as I am not maintainer anymore

@mtrmac
Copy link
Contributor

mtrmac commented Oct 17, 2025

Ah, this doesn't work anymore as I am not maintainer anymore

AFAICS you do still have an admin role in GitHub, but we never had the bot set up.

Copy link
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after the lint passes. Thanks!

I want this for bootc-dev/bootc#1686
so we can distinguish pulls there.

But more generally it's can be a good idea for people writing
scripts using skopeo to set custom user agents so that registries
can more easily trace which actors are performing tasks.

Assisted-by: Claude Code
Signed-off-by: Colin Walters <[email protected]>
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.

3 participants