asyncpg icon indicating copy to clipboard operation
asyncpg copied to clipboard

Connection secrets displayed in clear text in logs

Open sylvainmouquet opened this issue 9 months ago • 0 comments

Hi,

When i have this error : 'remaining connection slots are reserved for', the password is displayed in clear text in the logs: ConnectionParameters(user='<user>', password='<password>', ...

The usage of SecretStr(pydantic) or something equivalent will solve the issue

sylvainmouquet avatar May 10 '24 20:05 sylvainmouquet