[Django] #28734: Add password option to createsuperuser management command

5 views
Skip to first unread message

Django

unread,
Oct 23, 2017, 3:38:33 PM10/23/17
to django-...@googlegroups.com
#28734: Add password option to createsuperuser management command
------------------------------------------+------------------------
Reporter: Hasan Ramezani | Owner: nobody
Type: New feature | Status: new
Component: Uncategorized | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------+------------------------
Add `--password` option to createsuperuser management command.
it is a useful option when you want to create superuser in non intractive
mode. for example when you want to create a default superuser with a
default password.

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

Django

unread,
Oct 23, 2017, 3:38:59 PM10/23/17
to django-...@googlegroups.com
#28734: Add password option to createsuperuser management command
--------------------------------+------------------------------------------
Reporter: Hasan Ramezani | Owner: Hasan Ramezani
Type: New feature | Status: assigned
Component: Uncategorized | Version: 1.11
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------------
Changes (by Hasan Ramezani):

* owner: nobody => Hasan Ramezani
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/28734#comment:1>

Django

unread,
Oct 23, 2017, 3:40:30 PM10/23/17
to django-...@googlegroups.com
#28734: Add password option to createsuperuser management command
--------------------------------+------------------------------------------
Reporter: Hasan Ramezani | Owner: Hasan Ramezani
Type: New feature | Status: assigned
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------------
Changes (by Hasan Ramezani):

* component: Uncategorized => contrib.auth


--
Ticket URL: <https://code.djangoproject.com/ticket/28734#comment:2>

Django

unread,
Oct 23, 2017, 3:47:17 PM10/23/17
to django-...@googlegroups.com
#28734: Add password option to createsuperuser management command
--------------------------------+------------------------------------------
Reporter: Hasan Ramezani | Owner: Hasan Ramezani
Type: New feature | Status: assigned
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------------
Changes (by Hasan Ramezani):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/28734#comment:3>

Django

unread,
Oct 23, 2017, 4:02:34 PM10/23/17
to django-...@googlegroups.com
#28734: Add password option to createsuperuser management command
--------------------------------+------------------------------------------
Reporter: Hasan Ramezani | Owner: Hasan Ramezani
Type: New feature | Status: assigned
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------------

Comment (by Hasan Ramezani):

[https://github.com/django/django/pull/9277]

--
Ticket URL: <https://code.djangoproject.com/ticket/28734#comment:4>

Django

unread,
Oct 24, 2017, 11:51:25 AM10/24/17
to django-...@googlegroups.com
#28734: Add password option to createsuperuser management command
--------------------------------+------------------------------------------
Reporter: Hasan Ramezani | Owner: Hasan Ramezani
Type: New feature | Status: assigned
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------------

Comment (by Tim Graham):

My guess is that this isn't implemented because of the security concern of
having the password saved in shell history. There's a proposal in #27801
about reading the password from an environment variable. This may or may
not be more secure depending on how you set that variable.

--
Ticket URL: <https://code.djangoproject.com/ticket/28734#comment:5>

Django

unread,
Oct 24, 2017, 12:51:21 PM10/24/17
to django-...@googlegroups.com
#28734: Add password option to createsuperuser management command
--------------------------------+------------------------------------------
Reporter: Hasan Ramezani | Owner: Hasan Ramezani
Type: New feature | Status: assigned
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------------

Comment (by Hasan Ramezani):

I checked the #27801 ticket. this ticket was owned by another person, can
I create a pull request for reading the password from environment variable
in `createsuperuser` management command?

--
Ticket URL: <https://code.djangoproject.com/ticket/28734#comment:6>

Django

unread,
Oct 25, 2017, 10:59:12 AM10/25/17
to django-...@googlegroups.com
#28734: Add password option to createsuperuser management command
--------------------------------+------------------------------------------
Reporter: Hasan Ramezani | Owner: Hasan Ramezani
Type: New feature | Status: assigned
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------------

Comment (by Jon Dufresne):

-1 on adding a password CLI argument.

In addition to the shell history, CLI arguments can be viewable through
other processes on the system. For example `ps -ef`.

--
Ticket URL: <https://code.djangoproject.com/ticket/28734#comment:7>

Django

unread,
Oct 25, 2017, 11:43:41 AM10/25/17
to django-...@googlegroups.com
#28734: Add password option to createsuperuser management command
--------------------------------+------------------------------------------
Reporter: Hasan Ramezani | Owner: Hasan Ramezani
Type: New feature | Status: closed
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+------------------------------------------
Changes (by Tim Graham):

* status: assigned => closed
* resolution: => wontfix


--
Ticket URL: <https://code.djangoproject.com/ticket/28734#comment:8>

Reply all
Reply to author
Forward
0 new messages