Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#19893 closed Uncategorized (duplicate)

manage.py dbshell requires password for PostgreSQL databases

Reported by: gnosek 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 Changed 3 years ago by Mark Ransom <megamark16@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

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

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