mongo icon indicating copy to clipboard operation
mongo copied to clipboard

Security fix - To handle user account password complexity

Open Sandhyaranitp opened this issue 11 months ago • 1 comments

Problem Description:

Security fix - To handle user account password complexity

Fix Implementation:

The source code has been integrated to handle the password complexity validation mechanism. This modification ensures that password is validated during both the user creation and Password update operation. If the specific password complexity condition is not met, operation will be aborted automatically, preventing the creation and modification of user account.

Sandhyaranitp avatar Mar 01 '24 07:03 Sandhyaranitp

@Sandhyaranitp hi.

I guess this suggestion is related to this ticket - SERVER-7363 I recommend you to enable password policy enforcement configurable (such as within mongod.conf file).

Password can be validated

  • by regex pattern (which I would prefer)
  • by the custom parameters like in your branch
    • length (number)
    • contains special character (bool)
    • contains number (bool)

kerimovscreations avatar May 30 '24 07:05 kerimovscreations

Agreed; I think it may be better to share your suggestions on SERVER-7363 instead. Thanks for flagging this!

kelly-cs avatar Aug 02 '24 15:08 kelly-cs