Skip to content

fix: disable AWS credential cache for RDS IAM auth - #436

Closed
li-chaogang wants to merge 1 commit into
bytebase:mainfrom
li-chaogang:ignore-cache
Closed

li-chaogang wants to merge 1 commit into
bytebase:mainfrom
li-chaogang:ignore-cache

Conversation

@li-chaogang

Copy link
Copy Markdown

Problem

My environment periodically updates the AWS credentials in the .aws directory with new temporary credentials. However, fromIni() may continue using cached credentials, causing DBHub to use outdated credentials and eventually fail RDS IAM authentication.

Currently, I have to restart the DBHub container to make it pick up the latest credentials.

Solution

Set ignoreCache: true for fromIni() so that the latest credentials are loaded from the AWS credentials file when generating the RDS IAM authentication token.

@tianzhou

Copy link
Copy Markdown
Member

Please create an issue first.

@li-chaogang

Copy link
Copy Markdown
Author

@tianzhou
I've created issue #437.

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.

3 participants