Skip to content

control-service: force aws cred provider refresh#2879

Merged
mivanov1988 merged 1 commit intomainfrom
person/mzhivkov/session-duration
Nov 6, 2023
Merged

control-service: force aws cred provider refresh#2879
mivanov1988 merged 1 commit intomainfrom
person/mzhivkov/session-duration

Conversation

@mrMoZ1
Copy link
Copy Markdown
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.

Signed-off-by: mrMoZ1 <mzhivkov@vmware.com>
@mivanov1988 mivanov1988 enabled auto-merge (squash) November 6, 2023 09:09
Copy link
Copy Markdown
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