Opened 7 years ago

Closed 7 years ago

#28734 closed New feature (wontfix)

Add password option to createsuperuser management command

Reported by: Hasan Ramezani Owned by: Hasan Ramezani
Component: contrib.auth Version: 1.11
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

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.

Change History (8)

comment:1 by Hasan Ramezani, 7 years ago

Owner: changed from nobody to Hasan Ramezani
Status: newassigned

comment:2 by Hasan Ramezani, 7 years ago

Component: Uncategorizedcontrib.auth

comment:3 by Hasan Ramezani, 7 years ago

Has patch: set

comment:5 by Tim Graham, 7 years ago

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.

comment:6 by Hasan Ramezani, 7 years ago

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?

comment:7 by Jon Dufresne, 7 years ago

-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.

comment:8 by Tim Graham, 7 years ago

Resolution: wontfix
Status: assignedclosed
Note: See TracTickets for help on using tickets.
Back to Top