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

control-service: force aws cred provider refresh #2879

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

mrMoZ1
Copy link
Contributor

@mrMoZ1 mrMoZ1 commented Nov 3, 2023

what: Forced the AWS credentials service to refresh credentials before passing them to the data job builder task.

why: Users of the control-service noticed that the job builder task would occasionally fail with 401 unauthorized when attempting to push images to aws ecr repository. Since some builders take longer to build the images, it is possible that a passed valid credential expired during build. As per the aws documentation: "This credentials provider uses a background thread to refresh credentials." though it is unclear when credentials are rotated. Note this behaviour of the provider was changed in a aws update, previously the credentials were generated before every request.

testing: existing tests should cover this.

@mivanov1988 mivanov1988 enabled auto-merge (squash) November 6, 2023 09:09
Copy link
Collaborator

@dakodakov dakodakov left a comment

Choose a reason for hiding this comment

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

ship it

@mivanov1988 mivanov1988 merged commit 74cd3ab into main Nov 6, 2023
@mivanov1988 mivanov1988 deleted the person/mzhivkov/session-duration branch November 6, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants