pgadmin-org / pgadmin-org/pgadmin4

Feature Proposal: Administrative Account Recovery/Reset in `setup.py`

Open
#10,238 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Python
Stars
3.8k
Forks
891
Avg merge
4d 7h
Merged PRs (30d)
8

Description

Introduce a dedicated recovery/reset function to the /pgadmin4/setup.py command list to allow administrators to easily recover locked-out accounts directly from the command line without manual database intervention.


Proposed CLI Interface
  1. Dedicated Recovery Command (Recommended):
    python /pgadmin4/setup.py recover-user --username <email> [--reset-attempts] [--unlock]
    
    

This FR comes based on a ticket from pg-admin helm-charts: https://github.com/rowanruseler/helm-charts/issues/344

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting setup.py and how its existing command-line actions are parsed. Review the linked pg-admin helm-charts issue for the account-recovery context, then trace the account lockout and reset behavior before deciding the command’s scope. Done means the proposed recover-user interface and options have defined behavior for recovering an administrator account without manual database intervention.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.