calamari icon indicating copy to clipboard operation
calamari copied to clipboard

calamari-ctl initialize does not enforce minimum password complexity

Open andreasstieger opened this issue 8 years ago • 1 comments

calamari-ctl initialize does not enforce minimum password complexity. Setting weak or trivial passwords is possible.

# calamari-ctl initialize
[INFO] Loading configuration..
[INFO] Starting/enabling salt...
[INFO] Starting/enabling postgres...
[INFO] Initializing database...
[INFO] You will now be prompted for login details for the administrative user account.  This is the account you will use to log into the web interface once setup is complete.
Username (leave blank to use 'root'): 
Email address: [email protected]
Password: 
Password (again): 
Superuser created successfully.
[INFO] Initializing web interface...
[INFO] Starting/enabling services...

This should be be checked though cracklib-check or similar. The underlying process doing this seems to be https://docs.djangoproject.com/en/1.9/ref/django-admin/#createsuperuser

andreasstieger avatar May 30 '16 13:05 andreasstieger

This might be... irritating to fix. Calamari right now works with Django 1.5 and 1.6, but I don't think hooks for input validation for creating the admin user appeared until Django 1.8.

tserong avatar Jul 28 '16 07:07 tserong