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

Dynamic authentication info #2301

Closed
pauldraper opened this issue Aug 4, 2020 · 1 comment
Closed

Dynamic authentication info #2301

pauldraper opened this issue Aug 4, 2020 · 1 comment

Comments

@pauldraper
Copy link

pauldraper commented Aug 4, 2020

AWS IAM Authentication uses AWS IAM permissioning to generate a temporary (15 minute) password when connecting to the database.

Ideally, there would be a way to have a credentials provider that generated the credentials for each physical connection.

const pool = new Pool({
  user: 'dbuser',
  host: 'database.server.com',
  database: 'mydb',
  port: 3211,
  async dynamic(config) {
    const password = ''; // retrieve and cache password
    return { ...config, password };
  }
});
@sehrope
Copy link
Contributor

sehrope commented Aug 4, 2020

@pauldraper There is 😄 #1926

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

3 participants