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

fix: logout and try ECR Public pull again when token is expired #68

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

aaroniscode
Copy link
Contributor

Issue #, if available:
#64

Description of changes:
eksdemo bundles the Helm client and uses it when trying to install software. When the registry is ECR Public, Helm will look for authentication information and send it along with the request. Sometimes, there are stale ECR auth tokens and even though no authentication is required for pulls on ECR public, if the token is expired ECR will return 403 Forbidden.

This change looks for that error condition, logs out of ECR Public and tries again. This is a change to the user's system though I think it's non destructive because the token is already expired and not valid.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Member

@csantanapr csantanapr left a comment

Choose a reason for hiding this comment

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

/lgtm

@csantanapr csantanapr merged commit 9be0004 into awslabs:main Jun 29, 2023
1 check passed
@aaroniscode aaroniscode deleted the fix_ecr_public branch July 6, 2023 00:28
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.

2 participants