MagicStack / asyncpg

A fast PostgreSQL Database Client Library for Python/asyncio.
Apache License 2.0
6.88k stars 399 forks source link

Connection secrets displayed in clear text in logs #1152

Open sylvainmouquet opened 4 months ago

sylvainmouquet commented 4 months ago

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