Skip to content

Provide function to use different password for each connect (AWS RDS using IAM Credentials) #1924

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

Closed
kellertobias opened this issue Jul 17, 2019 · 2 comments

Comments

@kellertobias
Copy link

We just moved from a self hosted postgres to AWS RDS.
One huge benefit is, that using RDS, we don't need to manage crendentials anymore but can rely on the AWS IAM Credentials for RDS.

However, these passwords are obtained using an API and are only valid for 15 Minutes. So if we use a connection pool, and allow these connections to close and reopen, the password will not be valid anymore after 15 minutes.

Is there a way to use the conection pool and providing them a function with which they can obtain a new password?

@sehrope
Copy link
Contributor

sehrope commented Jul 17, 2019

Duplicate of #1873

This isn't currently possible with the built-in pool but has been requested before. AFAIK, there's no objection to the feature, it's just that nobody has implemented it yet.

@kellertobias
Copy link
Author

Jep, this is a dupe. Thanks.

/close

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

No branches or pull requests

2 participants