fastmonkeys / stellar

Fast database snapshot and restore tool for development
MIT License
3.86k stars 119 forks source link

password censored before login. three asterisks #91

Open dylan-shipwell opened 8 months ago

dylan-shipwell commented 8 months ago

I have a funny case of

sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "myhostnameis" (my.ip.is.00), port 5432 failed: FATAL:  password authentication failed for user "myloginname"

if I run stellar with a debugger python3 -m pdb -m stellar ... i can see that psycopg2/__init__.py:connect haw a dsn where "password=***"

my stellar.yml file is plain, and the init worked fine

#stellar.yml
project_name: 'mynameis'
tracked_databases: ['mydbnameis']
url: 'postgresql+psycopg2://myloginname:mypassis@myhostnameis/postgres'
stellar_url: 'postgresql+psycopg2://myloginname:mypassis@myhostnameis/stellar_data'

in a debugger i can also see that stellar's self.config has the password in plain text. super weird.

bhpark1013 commented 6 months ago

i also experience same issue

bh981013 commented 6 months ago

you can solve this temporarily via downgrading SQLAlchemy==1.4.0 via pip install sqlalchemy==1.4.0