pgadmin-org / pgadmin-org/pgadmin4
Feature Proposal: Administrative Account Recovery/Reset in `setup.py`
Nobody has claimed this yet.
- 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
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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