version-checker icon indicating copy to clipboard operation
version-checker copied to clipboard

Add support for public ecr

Open fer1592 opened this issue 7 months ago • 4 comments

Following PR adds support for images hosted in the AWS public registry, aims to solve the following issue. WIP

fer1592 avatar Jul 08 '25 20:07 fer1592

Quick update about this, using the ecrpublic seems that doesn't work for images on the public.ecr.aws registry. I did a quick test using the http client similarly on how the docker client does, and works well. I'll be updating this PR next week probably (need to clean up all the crap code that I got)

fer1592 avatar Jul 25 '25 20:07 fer1592

This should be ready for review. Like mentioned before, I stopped using the public ecr library and just performed http requests for it. I tested it with a couple of images, and seems to be working fine. Eg: for kube-proxy

image

Let me know what you think!

fer1592 avatar Aug 08 '25 20:08 fer1592

@fer1592 Sorry it's taken so long to get back to this 🙈 - I was curious as to if there was any reasoning around using the OCR Library? or https://github.com/google/go-containerregistry - as a project, we're trying to move away from managing too many client implementations and focusing on the authN/Z portion to the go-containerregistry or native libraries.

This is mainly due to maintenance and testing. We don't have a full E2E testing framework for all of the clients, which can make maintaining them difficult and we rely on the community to report issues and raise PR's to resolve issues.

davidcollom avatar Nov 14 '25 09:11 davidcollom

Sorry, been some busy weeks and I forgot to reply! Basically the reasoning was to replicate the same thing than the dockerClient, mostly thinking about maintenance really (usually I avoid using different libraries from the ones used unless it's completely necessary). Since public ECR has some small differences than docker, eg. you need to request a token first to an AWS endpoint before being able to reach ECR), paths are different as well as the response from ECR, it felt like the right move to just replicate the same thing as the dockerClient with the required modifications.

fer1592 avatar Nov 28 '25 16:11 fer1592