Skip to content

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

Closed
emsearcy wants to merge 2 commits intoko-build:mainfrom
emsearcy:ems/fix-ecr-auth
Closed

Update awslabs/amazon-ecr-credential-helper to latest#1248
emsearcy wants to merge 2 commits intoko-build:mainfrom
emsearcy:ems/fix-ecr-auth

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

emsearcy added 2 commits March 4, 2024 16:40
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>
@ghost
Copy link

ghost commented Mar 5, 2024

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


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

3 participants