1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00

chore: IAM auth username env var takes precedence

This commit is contained in:
Nuno Góis 2025-09-04 13:49:34 +01:00
parent 07f6970eed
commit ab8ded0728
No known key found for this signature in database
GPG Key ID: 71ECC689F1091765
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export const getDBPasswordResolver = (db: IDBOption): PasswordResolver => {
region: db.awsRegion,
hostname: db.host,
port: db.port,
username: db.user,
username: process.env.DATABASE_USERNAME || db.user,
});
return async () => {
console.log('[AWS RDS SIGNER] Getting token...');

View File

@ -19,6 +19,7 @@ export function createDb({
version: db.version,
connection: {
...db,
user: process.env.DATABASE_USERNAME || db.user,
application_name: db.applicationName,
password: getDBPasswordResolver(db),
},