Pg lib incorreclty using windows username to connect to postgres

System Information
  • Strapi Version: 3.0.0
  • Operating System: Windows 10
  • Database: postgres
  • Node Version: 12.22.7
  • NPM Version: 6.14.15
  • Yarn Version:

Hi,

Recently i upgraded my strapi to 3.0.0 stable from 19.20 beta. after i run application using npm run strapi develop it creates connection to postgres using correct configured credentials but after login it started connect using my windows 10 username(rayappan.a) as username, database and password as null.

It seems strange to me because nowhere i configured to use my windows login credentials to connect postgresql

can any one please give idea how to fix this issue?

Regards,
Rayappan Antoniraj

database.js file contents:


module.exports = ({ env }) => ({

defaultConnection: 'default',

connections: {

  default: {

  connector: 'bookshelf',

  settings: {

    client: 'postgres',

    host: env('DATABASE_HOST', '127.0.0.1'),

    port: env.int('DATABASE_PORT', 5432),

    database: env('DATABASE_NAME', 'postgres'),

    user: env('DATABASE_USERNAME', 'postgres'),

    password: env('DATABASE_PASSWORD', 'postgres'),

    schema: env('DATABASE_SCHEMA', 'public'), // Not required

    ssl: env('DATABASE_SSL', false),

  },

pool: {
min: 50,
max: 100,
},
},
},
});