go-admin
go-admin copied to clipboard
[BUG] DSN is leaked in standard output for postgres client
Bug Description
Database passwords are leaked when printing the DSN in InitDB function.
How to reproduce
Create new application using postgres database connection.
Make a bare bones project, and run using make serve
You will then see:
检查 pg 配置 user=XXXX password=XXXX dbname=XXXX host=XXXX port=XXXX sslmode=XXXX
Expect
DSN should not print when initializing the database.
This action is due to this line in the postgres client
Versions
- GoAdmin version: v1.2.24