GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Different minimum password lengths in use · Issue #5705 · pgadmin-org/pgadmin4

Different minimum password lengths in use #5705

New issue
Copy link
New issue
Copy link
Closed
Closed
Different minimum password lengths in use#5705
Copy link
Assignees
nikhil-mohite
Labels
Bug
Milestone
6.20

Description

@cklein05
cklein05
opened on Jan 3, 2023
Issue body actions

Different parts of the application operate with different minimum password lengths

Both Change User Password dialog and Password Reset Form (after clicking Forgotten your password?) require passwords which are at least 8 characters long. In contrast, the User Management dialog (as an Admin user) as well as setup.py (while creating the initial Admin user) happily consume passwords that are at least 6 characters long.

The documentation of the Change User Password dialog (see here) recommends to use at least 6 characters for a password:

Ensure that your password is an adequate length; 6 characters should be the absolute minimum number of characters in the password.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new internal user with a password which is only 6 characters long.
  2. Log in as that user and change its password using the Change Password dialog.
  3. The Change User Password dialog requires a password which is at least 8 characters long.
  4. The Reset Password Form also requires password which is at least 8 characters long.
  5. As an Admin user in User Management dialog you could still set this user's password to a token >= 6 characters long.

Expected behavior

All parts of the application should recommend and enforce passwords with the same length. Ideally, the minimum length of passwords for internal pgAdmin 4 users should be configurable in config.py et al.

Activity

Next
  1. cklein05
    added
    Bug
    on Jan 3, 2023
  2. akshay-joshi
    added this to Not Refinedand Current Sprint (213) and removed this from Not Refinedon Jan 4, 2023
  3. akshay-joshi
    moved this to 🆕 New in Current Sprint (213)on Jan 4, 2023
  4. pravesh-sharma
    self-assigned this
    on Jan 6, 2023
  5. pravesh-sharma
    moved this from 🆕 New to 🏗 In Progress in Current Sprint (213)on Jan 6, 2023
  6. pravesh-sharma
    added
    EDB Sprint 133
    on Jan 9, 2023
  7. pravesh-sharma
    moved this from 🏗 In Progress to In Review in Current Sprint (213)on Jan 10, 2023
  8. akshay-joshi
    added a commit that references this issue on Jan 17, 2023

    Ensure that all parts of the application recommend and enforce the sa…

    9c4573f
  9. akshay-joshi
    added this to the 6.20 milestone on Jan 17, 2023
  10. akshay-joshi
    moved this from In Review to In Testing in Current Sprint (213)on Jan 17, 2023
  11. akshay-joshi
    added a commit that references this issue on Jan 17, 2023

    Ensure that all parts of the application recommend and enforce the sa…

    eced649
  12. akshay-joshi
    added
    EDB Sprint 134
    and removed
    EDB Sprint 133
    on Jan 18, 2023
  13. 6 remaining items

  14. adityatoshniwal commented on Jan 19, 2023

    @adityatoshniwal
    adityatoshniwal
    on Jan 19, 2023
    Contributor
    More actions

    In that case, lets not add it to config.py.

    Reacted by Nikhil Mohite
  15. pravesh-sharma commented on Jan 19, 2023

    @pravesh-sharma
    pravesh-sharma
    on Jan 19, 2023
    Contributor
    More actions

    In that case, lets not add it to config.py.

    Can we keep SECURITY_PASSWORD_LENGTH_MIN to some other file?

  16. dpage commented on Jan 19, 2023

    @dpage
    dpage
    on Jan 19, 2023
    Contributor
    More actions

    Err, no. config.py is exactly where it needs to go, along with the other security config, that can then be overridden in config_local.py, config_distro.py, and config_system.py.

    Figuring out how to get the value to the frontend is the correct solution - not moving it elsewhere.

    Reacted by Aditya Toshniwal
  17. yogeshmahajan-1903 commented on Jan 20, 2023

    @yogeshmahajan-1903
    yogeshmahajan-1903
    on Jan 20, 2023
    Contributor
    More actions

    @pravesh-sharma
    Also please make sure config parameter is considered while setting up initial user account. Currently it is hardcoded in user_info.py.

    Reacted by Pravesh Sharma
  18. pravesh-sharma
    moved this from 🏗 In Progress to In Review in Current Sprint (213)on Jan 31, 2023
  19. akshay-joshi
    added
    EDB Sprint 135
    and removed
    EDB Sprint 134
    on Feb 1, 2023
  20. akshay-joshi
    added a commit that references this issue on Feb 1, 2023

    Incorporated review comments for #5705

    e247867
  21. akshay-joshi
    moved this from In Review to In Testing in Current Sprint (213)on Feb 1, 2023
  22. akshay-joshi
    assigned
    nikhil-mohite
    and unassigned
    pravesh-sharma
    on Feb 1, 2023
  23. nikhil-mohite commented on Feb 2, 2023

    @nikhil-mohite
    nikhil-mohite
    on Feb 2, 2023
    Contributor
    More actions

    Resolved, Verified on snapshot build: https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/2023-02-02/
    OS: CentOS 7
    Mode: Server Mode

  24. nikhil-mohite
    closed this as completedon Feb 2, 2023
  25. nikhil-mohite
    moved this from In Testing to ✅ Done in Current Sprint (213)on Feb 2, 2023
  26. akshay-joshi
    removed this from Current Sprint (213)on Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @nikhil-mohite
    nikhil-mohite

Labels

Bug

Type

No type

Projects

No projects

    Milestone

    • 6.20

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.