Skip to content

Dynamic authentication info #2301

@pauldraper

Description

@pauldraper

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 };
  }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions