-
Notifications
You must be signed in to change notification settings - Fork 222
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
fix(storage): make OCI reauthentication with AWS ECR #3044
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3044 +/- ##
==========================================
+ Coverage 70.78% 72.15% +1.36%
==========================================
Files 91 99 +8
Lines 8729 7502 -1227
==========================================
- Hits 6179 5413 -766
+ Misses 2165 1684 -481
- Partials 385 405 +20 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
I'm concerned about the complexity of my implementation. In If anyone has ideas they are welcome here. |
Sure @erka, I'll take some time to think about an alternative implementation! |
Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me! thanks @erka
wdyt @GeorgeMac ?
@thepabloaguilar are you able to build off of this branch to see if it fixes #3043
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, looks great 👏 Nice one @erka
* fix(storage): make OCI reauthentication with AWS ECR Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com> * rework Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com> * address PR feedback and added tests Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com> * update cache Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com> * rework Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com> * cleanup Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com> * add more tests and cleanup Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com> --------- Signed-off-by: Roman Dmytrenko <rdmytrenko@gmail.com>
Few observations about AWS ECR. It looks like there is a big difference between private and public AWS ECR.
Public ECR uses Bearer authorization and returns errors json encoded.
The private ECR uses Basic auth and returns errors in plain text.