#7554: python manage.py dbshell does not enter password from settings.py
-------------------------------------+-------------------------------------
     Reporter:  Kaell <joshalto@…>   |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  closed
    Component:  Core (Management     |                  Version:  master
  commands)                          |
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  dbshell password     |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Robert Coup):

 Since v8.1 Postgres supports the PGPASSFILE environment variable to
 specify an alternative location for a ~/.pgpass file. So one option is for
 dbshell to create a tempfile, set the file permissions to 0600, write the
 password into it, then destroy it after invoking psql.

 https://www.postgresql.org/docs/9.6/static/libpq-pgpass.html

-- 
Ticket URL: <https://code.djangoproject.com/ticket/7554#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/086.a93bf3807edf13dda4bf3f983787d952%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to