-
Notifications
You must be signed in to change notification settings - Fork 780
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
Skopeo inspect fails if Image-Repository (Sonatype Nexus) returns 'null' Tag #2409
Comments
Thanks for reaching out. I think this is primarily a bug in the server: The spec at https://github.com/opencontainers/distribution-spec/blob/main/spec.md#listing-tags shows the values as strings, and Skopeo 1.14.4 ’s code has, as a part of fixing CVE-2024-3727 , started rejecting invalid tag values, so that further uses of the tag can avoid unexpected behavior. Ideally, this should be fixed in the server’s implementation. That said, we have already added one workaround for a registry returning unexpected values, so I guess we can add one more… |
Thanks for your reply. I agree that this is mainly caused by a bug in the Server implementation. I was just wondering what's different between 1.14.3 and 1.14.4. Actually we found a workaround for that problem. As we do not need the Tag list we added Parameter -n to skopeo inspect command to suppress the processing of the Tag list and the command succeeds although the Tag list still contains invalid "null" values. For others that want to process the Tag list a workaround in the Skopeo implementation to handle "null" values in the Tag list would surely be helpful. |
@timbocau would you be able to confirm that containers/image#2544 fixes the failure? Also, could you identify the specific version of the server that exhibits this behavior for you, please? |
@mtrmac We are using Nexus 3.58 OSS. We posted a question in the Nexus community, too: https://community.sonatype.com/t/tags-list-yields-null-as-first-tag/13117 |
A friendly reminder that this issue had no activity for 30 days. |
With containers/image#2544 being merged, I think we can close this issue. Thanks! |
We use Sonatype Nexus as Image Repository. When calling the tags/list Endpoint of some images a 'null' Tag is returned:
This causes Skopeo inspect to fail with error "Error determining repository tags: registry returned invalid tag "": invalid tag format"
Running the following command produces the output below:
skopeo --debug inspect docker://my-nexus.mydomain/my-image:1.0.1-3
The error occurs with Skopeo versions 1.14.4. and newer. With Skopeo versions 1.14.3 and older (did not test all older versions) the error does not occur.
Is this a bug or a feature?
The text was updated successfully, but these errors were encountered: