Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • See what's new at GitLab
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab
GitLab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 29,851
    • Issues 29,851
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1,106
    • Merge Requests 1,106
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issues
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLabGitLab
  • Merge Requests
  • !20661

Merged
Opened Nov 23, 2019 by Manoj M J@manojmj⌨9 of 19 tasks completed9/19 tasks
  • Report abuse
Report abuse

Resolve "Allow to set a minimum password length via admin UI"

  • Overview 113
  • Commits 8
  • Pipelines 40
  • Changes 20

What does this MR do?

For #36776 (closed)

A demo can be viewed at https://drive.google.com/file/d/1nHTkLq-QZlijRCwcVq2lyXx7gX-2rP1N/view

  • Migration for adding a column to specify minimum password length
  • UI changes to allow admin to set minimum password length via Admin -> Settings -> General -> Sign up restrictions
  • Backend changes to support changing minimum password length value
  • Backend changes to have the change in minimum password length take effect without a GitLab restart
  • Tests
  • Documentation
  • Post-deploy migration to update the value of minimum_password_length column to [Devise.password_length.min, 8].max - ie, change the value to higher than 8, if the customer had overridden the Devise default using https://docs.gitlab.com/ee/security/password_length_limits.html

Screenshots

Minimum password length setting in admin:

Screenshot_2019-12-13_at_2.53.45_PM

On sign up page - mention of minimum password length:

Screenshot_2019-12-13_at_2.58.30_PM

Error messages:

On short password (Same as default Devise error message, only the limit differs):

Screenshot_2019-12-13_at_2.35.49_PM

On long password: (Same as default Devise error message):

Screenshot_2019-12-13_at_2.58.30_PM

Does this MR meet the acceptance criteria?

Conformity

  • Changelog entry
  • Documentation (if required)
  • Code review guidelines
  • Merge request performance guidelines
  • Style guides
  • Database guides
  • Separation of EE specific content

Availability and Testing

  • Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.
  • Tested in all supported browsers

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited Dec 13, 2019 by Manoj M J
Assignee
Assign to
12.6
Milestone
12.6
Assign milestone
Time tracking
14
Labels
Deliverable UX backend customer database databaseapproved devopsmanage direction estimationneeded feature frontend groupcompliance security workflowproduction
Assign labels
  • View project labels
Reference: gitlab-org/gitlab!20661

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.