-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
severity: mediumResults in substantial degraded or broken functionality for specfic workflowsResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
Deployment Type
NetBox Cloud
NetBox Version
v4.0.7
Python Version
3.10
Steps to Reproduce
- Configure password validation in the
netbox/netbox/configuration.pyfile. Refer below code for the same:
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
'OPTIONS': {
'min_length': 8,
}
}
]
- Login as a superuser.
- Click "Admin" -> "Authentication" -> "Users"
- Click on "+ Add".
- Fill the details for the user and set password and confirm password as
pass1. - Click "Create".
- User gets created successfully.
Instead of adding a new user from step 4 to 6, we can also just update the password for an existing users, and set it as pass1. The result would be the same.
Expected Behavior
User creation or password updation should fail from "Admin" -> "Authentication" -> "Users".
Observed Behavior
User is being created without adhering to the configured password policy.
Metadata
Metadata
Assignees
Labels
severity: mediumResults in substantial degraded or broken functionality for specfic workflowsResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application