[Sqlalchemy-tickets] [sqlalchemy] #2821: Engine.__repr__ should censor out password
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-09-06 17:34:33
|
#2821: Engine.__repr__ should censor out password
-------------------------+-----------------------------------------
Reporter: gthb | Owner: zzzeek
Type: enhancement | Status: new
Priority: medium | Milestone:
Component: engine | Severity: no triage selected yet
Keywords: | Progress State: awaiting triage
-------------------------+-----------------------------------------
To make it less likely that a database password leaks out into logs, error
notifications and the like, `Engine.__repr__` should censor it out.
Could just add a `__repr__` method to `URL` that replaces the password
with `'***'`. Then format the URL with `%r` in `Engine.__repr__`.
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2821>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|