-
Notifications
You must be signed in to change notification settings - Fork 788
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
Listing tags in JFrog Artifactory may fail #2346
Comments
We are having the same problem on our side with |
Per containers/skopeo#2346, that happens in the wild. Signed-off-by: Miloslav Trmač <[email protected]>
Thanks for your report. Could you test with containers/image#2440 and confirm that that is sufficient to list all tags without failure, please? |
Per containers/skopeo#2346, that happens in the wild. Signed-off-by: Miloslav Trmač <[email protected]>
Per containers/skopeo#2346, that happens in the wild. Signed-off-by: Miloslav Trmač <[email protected]>
git clone https://github.com/containers/skopeo.git && cd skopeo
git checkout release-1.15
go get -d github.com/mtrmac/image/v5@jfrog-invalid-tag
go mod edit -replace=github.com/containers/image/v5=github.com/mtrmac/image/[email protected]
make vendor
go mod tidy
DISABLE_DOCS=1 make and then run Thank you! |
@mtrmac I've also confirmed this patch works by ignoring the |
Per containers/skopeo#2346, that happens in the wild. Signed-off-by: Miloslav Trmač <[email protected]> Signed-off-by: tomsweeneyredhat <[email protected]>
Per containers/skopeo#2346, that happens in the wild. Signed-off-by: Miloslav Trmač <[email protected]>
Per containers/skopeo#2346, that happens in the wild. Signed-off-by: Miloslav Trmač <[email protected]> Signed-off-by: tomsweeneyredhat <[email protected]>
@TomSweeneyRedHat I unfortunately hit this issue as well. In term of releasing, I see that you are about to cut some releases of containers/image, does it mean there will be a point release 1.15.X of skopeo with a vendored version of containers/image ? If not, would you accept some patch backport sent directly into the fedora package to fix at least this issue for fedora users using Artifactory ? |
@Romain-Geissler-1A I think we should make a new Skopeo upstream version (after #2451 merges here). |
Thanks for the update. FYI, since on our side we are also paying customers on JFrog side, I have raised a ticket there and they just replied me this:
On our side, we are as blind as you on the status of this internal Jfrog ticket, so the only thing I can say is that Jfrog acknowledges they don't fully follow the OCI registry spec on this specific point and for now there exist no fixed Artifatory release. |
Sorry for late response. (I feel that they will not fix this behavior even if this is not compliant with neither OCI nor Docker specifications.) |
Hi @SSW-SCIENTIFIC & @marcaurele, I'm Tom, the Product Manager leading Docker & OCI package integrations at @jfrog Artifactory. Thank you for bringing this important issue to our attention and I apologize for not responding sooner. Firstly, I would like to assure you that we are actively addressing this issue as we speak and we will be ready shortly with a patch that aligns our I’d like to take this opportunity to share two points that are very important to us at @jfrog which are the amazing use patterns we see our community and customers are doing with technologies like OCI and secondly the fact that specifications and community usages are evolving. The latest change in the containers project reflects OCI's evolution by now enforcing a rule that tags cannot include certain characters (colon specifically). Since Artifactory does not intervene with the Clients tagging process the existence of these characters was not enforced previously and should be looked into by our friends in the client tool communities. At the time we did our best to balance between the motivations of Specification and Registry alignment and maintaining trust and transparency and until this last change we had no issues. With that being said, we truly understand these pains and we embrace change and want to continue to do our best to accommodate our communities & customer use cases and this is why we are of course making these changes. Furthermore, we will be actively reaching out to our developer community to promote this validation issue on the client level in hopes to prevent invalid characters even reaching a registry. Lastly, I would like to thank you all for your collaboration and positive discussion and we’re looking forward to collaborating again in the future Best regards, |
Per containers/skopeo#2346, that happens in the wild. Signed-off-by: Miloslav Trmač <[email protected]>
Thanks for the information. So there is a risk of the “list tags” endpoint returning values with other formats not matching the Right now the c/image code only specifically ignores values that match the digest format. Strings that match neither the tag nor the digest format would still cause a failure to parse the list output. (Such strings could never be referenced, for reading or writing, using the c/image code, either way — but their mere presence might prevent listing other tag values.) At this point we have no records of such unusual tag values happening; but the validation is new. |
Per containers/skopeo#2346, that happens in the wild. Signed-off-by: tomsweeneyredhat <[email protected]>
Per containers/skopeo#2346, that happens in the wild. Signed-off-by: tomsweeneyredhat <[email protected]>
Per containers/skopeo#2346, that happens in the wild. Signed-off-by: tomsweeneyredhat <[email protected]>
... in JFrog Artifactory may fail Addresses: containers#2346 and needed if everupgrading from v1.14 in Fedora Signed-off-by: tomsweeneyredhat <[email protected]>
Addresses the problem first described in containers#2346 in the release-1.14 branch Also addresses: https://issues.redhat.com/browse/RHEL-40801 https://issues.redhat.com/browse/RHEL-40805 Signed-off-by: tomsweeneyredhat <[email protected]>
A fix was now released in Skopeo 1.15.2, I apologize for the time necessary to run that process. |
Addresses the problem first described in containers/skopeo#2346 Also addresses: https://issues.redhat.com/browse/RHEL-40802 and https://issues.redhat.com/browse/RHEL-40799 Signed-off-by: tomsweeneyredhat <[email protected]>
Addresses the problem first described in containers/skopeo#2346 Signed-off-by: tomsweeneyredhat <[email protected]>
Addresses the problem first described in containers/skopeo#2346 Signed-off-by: tomsweeneyredhat <[email protected]>
Addresses the problem first described in containers/skopeo#2346 This is a follow on fix to the CVE-2024-3727 fix which had an error. Addresses: https://issues.redhat.com/browse/RHEL-40800 https://issues.redhat.com/browse/RHEL-40804 https://issues.redhat.com/browse/OCPBUGS-35311 Signed-off-by: tomsweeneyredhat <[email protected]>
Addresses the problem first described in containers/skopeo#2346 Also addresses: https://issues.redhat.com/browse/RHEL-40802 and https://issues.redhat.com/browse/RHEL-40799 [NO NEW TESTS NEEDED] Signed-off-by: tomsweeneyredhat <[email protected]>
Per containers/skopeo#2346, that happens in the wild. Signed-off-by: Miloslav Trmač <[email protected]> Signed-off-by: tomsweeneyredhat <[email protected]>
Per containers/skopeo#2346, that happens in the wild. Signed-off-by: Miloslav Trmač <[email protected]> Signed-off-by: tomsweeneyredhat <[email protected]>
Per containers/skopeo#2346, that happens in the wild. Signed-off-by: Miloslav Trmač <[email protected]> Signed-off-by: tomsweeneyredhat <[email protected]>
Per containers/skopeo#2346, that happens in the wild. Signed-off-by: Miloslav Trmač <[email protected]> Signed-off-by: tomsweeneyredhat <[email protected]>
Hello team,
I want to notify I have encountered en error on skopeo v1.15.1 with multiarch images on JFrog Artifactory.
JFrog Artifactory is an artifact management tool that can be behaved as container image registry.
However, for multiarch images, it violates some behaviors related to tags.
For example,
multi-arch:v1.0.0
, which referssha256:aaaa...aaaa
as aamd64
, andsha256:bbbb...bbbb
as aarm64
, to Artifactory,sha256:aaaa...aaaa
andsha256:bbbb...bbbb
as tags, not onlymulti-arch:v1.0.0
,sha256:aaaa...aaaa
andsha256:bbbb...bbbb
are OCI incompliant tags because they contains:
,So finally we got error on
skopeo inspect
withtime="2024-06-03T09:26:46Z" level=fatal msg="Error determining repository tags: registry returned invalid tag \"sha256:aaaa...aaaa": invalid tag format"
.This is quite heavy impact issue even if the Artifactory violates OCI specifications, we can no longer use skopeo v1.15.1 or later with Artifactory.
Can you consider that skopeo simply ignores the invalid tags to keep compatibility?
And we will also contact to JFrog support to improve the behavior above.
The text was updated successfully, but these errors were encountered: