Skip to content
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] Add Support for Public ECR #248

Closed
PatrickXYS opened this issue Dec 7, 2020 · 5 comments · Fixed by #253
Closed

[Feature Request] Add Support for Public ECR #248

PatrickXYS opened this issue Dec 7, 2020 · 5 comments · Fixed by #253

Comments

@PatrickXYS
Copy link

PatrickXYS commented Dec 7, 2020

Given we have launched Public ECR registry last week, we should expect huge volume of feature-requests for using amazon-ecr-credential-helper with public ecr support added.

We're experimenting POC for CD pipeline by using amazon-ecr-credential-helper, and expect to massively use public ECR.

I can bring up a design doc and implement Public ECR alongside with existing Private ECR implementation.

@PatrickXYS
Copy link
Author

/cc @samuelkarp @kzys

Appreciate any insights from you!

@Jeffwan
Copy link

Jeffwan commented Dec 8, 2020

Seems ecr internally doesn't handle public registry. Instead, a separate API is used.

https://docs.aws.amazon.com/sdk-for-go/api/service/ecrpublic/

To give the best user experience, I think it's great to support public ecr in this credential helper as well rather than creating separate one. It should determine the api to use based on the registry patterns internally and hide as many details as it can.

  • public: public.ecr.aws/h4kxxxxx
  • private: 692xxxxxxx.dkr.ecr.us-east-1.amazonaws.com

@jahkeup
Copy link
Member

jahkeup commented Dec 8, 2020

Thanks for bringing this up!

Seems ecr internally doesn't handle public registry. Instead, a separate API is used.

You're exactly right, this means the credential helper will need to be refactored a bit to handle both ECR refs and ECR Public refs in order to provide the correct set of credentials to Docker. Today, the credential helper assumes that it either is or isn't responsible for ECR refs only and has a single factory that is configured based on the ref.

@johnnyshields
Copy link

johnnyshields commented Dec 16, 2020

AWS team, we love your products, but this is a huge issue. I'm flabbergasted that ECR Public was launched without this. We switched all our builds from DockerHub to ECR Public only to be in a worse situation re: rate limiting. Builds are now broken everywhere 🔥🔥🔥

Please make sure cross-region support is included in this; we are hosting in ap-northeast-1

@vivekpd15
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants