go-admin icon indicating copy to clipboard operation
go-admin copied to clipboard

[BUG] DSN is leaked in standard output for postgres client

Open thenick775 opened this issue 2 years ago • 0 comments

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

thenick775 avatar Apr 23 '23 00:04 thenick775