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

Update awslabs/amazon-ecr-credential-helper to latest #1248

Closed
wants to merge 2 commits into from

Conversation

emsearcy
Copy link

@emsearcy emsearcy commented Mar 5, 2024

This update fixes an apparent conflict between the amazon-ecr-credential-helper library and the aws-sdk-go-v2 library, introduced when aws-sdk-go-v2 was updated as a byproduct of a cosign upgrade in #1191.

This mismatch resulted in an error: ecr: Failed to get authorization token: not found, ResolveEndpointV2

However, this error was not readily apparent due to overridding the ecr-login module's logger to io.Discard in pkg/commands/config.go.

Resolves: #1245

This update fixes an apparent conflict between the
amazon-ecr-credential-helper library and the aws-sdk-go-v2 library,
introduced when aws-sdk-go-v2 was updated as a byproduct of a cosign
upgrade in #1191.

This mismatch resulted in an error:
"ecr: Failed to get authorization token: not found, ResolveEndpointV2"

However, this error was not readily apparent due to overridding the
ecr-login module's logger to io.Discard in pkg/commands/config.go.

Resolves: #1245
Signed-off-by: Eric Searcy <eric@linuxfoundation.org>
Result of running ./hack/update-codegen.sh

Signed-off-by: Eric Searcy <eric@linuxfoundation.org>
@mrmahi2003
Copy link

some work is still required in order to merge this pr before reviewing

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cpanato cpanato requested a review from imjasonh March 5, 2024 16:18
@nesty92
Copy link
Contributor

nesty92 commented Mar 26, 2024

Please merge this we are unable to use OIDC until the underline ecr-login is updated. This is the error
image

And after the ecr-login is updated everything works

image

@@ -3,7 +3,7 @@ module github.com/google/ko
go 1.21

require (
github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.0.0-20231024185945-8841054dbdb8
github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.0.0-20231121035052-cd92a7ab1375
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not updating to the latest version v0.0.0-20240323062759-1fd604ae58de ?

@nesty92
Copy link
Contributor

nesty92 commented Mar 26, 2024

Since #1267 was merged this one can be close

@cpanato cpanato closed this Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pushing to ECR without logging in first doesn't work
4 participants