Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need to require a Postgres user on AWS RDS to login with password

I have a new Postgres database on RDS. I have set up the database to be Publicly Accessible so we can login via ssh. However we can do so without supplying a password. I want to force the user to have to login with a password.

All of my searches for solutions recommend editing .pgpass file but I don't think this applies to a Postgres database on RDS.

If anyone know how to do this I would greatly appreciate the help

like image 884
Tom Avatar asked Nov 28 '25 14:11

Tom


1 Answers

AWS Postgres RDS does not support password-less login via a database parameter group change e.g. by turning on Trust Authentication.

If you are not being prompted for a password when using psql, you must be using a .pgpass file locally. You can confirm this by temporarily removing that file or renaming the file and then trying to connect; you should be prompted for a password.

like image 200
BestPractices Avatar answered Nov 30 '25 06:11

BestPractices