Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#19893 closed Uncategorized (duplicate)

manage.py dbshell requires password for PostgreSQL databases

Reported by: Grzegorz Nosek Owned by: nobody
Component: Core (Management commands) Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

SQLite and MySQL databases can be accessed using manage.py dbshell without entering any passwords. This isn't the case with PostgreSQL, which requires copying the password from settings.py and pasting it again after psql's prompt.

We can use ~/.pgpass files but they have to be set up in advance, which is still annoying.

To the best of my knowledge, passing the password via the environment is not a security risk.

https://github.com/django/django/pull/772

Change History (1)

comment:1 by Mark Ransom <megamark16@…>, 11 years ago

Resolution: duplicate
Status: newclosed

This appears to be a duplicate of ticket #7554, which was closed as wontfix.

Last edited 11 years ago by Claude Paroz (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top