[Snap] Show actionable warning when password-manager-service is not connected instead of falling back to master password silently
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start in master_password.py at the NoKeyringError catch and follow how the master-password prompt is surfaced; reproduce the documented snap installation with the password-manager-service interface disconnected. Done means the unavailable keyring is explained, the snap command is suggested where applicable, and the master-password fallback is clearly identified.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug / feature request
When pgAdmin 4 is installed via snap and the password-manager-service
interface is not connected, pgAdmin silently falls back to requiring a
master password with no explanation why.
Since pgAdmin 7.2+, the OS keyring is the default and preferred storage
for saved passwords in desktop mode. However, snap's strict confinement
prevents keyring access unless the user explicitly runs:
snap connect pgadmin4:password-manager-service
This is not documented anywhere in the app, and most users will never
find it. The only hint is in the pgadmin4-snap GitHub README, which most
users never read.
Expected behavior
When pgAdmin detects that the OS keyring is unavailable (e.g.
NoKeyringError), it should:
- Show a clear, user-friendly message explaining that the system keyring
is not accessible - On Linux snap installs specifically, suggest the fix:
snap connect pgadmin4:password-manager-service - Offer master password as a fallback option with explanation
Current behavior
pgAdmin silently falls back to prompting for a master password with no
explanation, leading users to spend significant time trying to disable
the master password via config files (which is impossible to do via
config_local.py on snap due to read-only filesystem and snap Python path
isolation).
Steps to reproduce
- Install pgAdmin via snap:
sudo snap install pgadmin4 - Open pgAdmin
- Observe master password prompt with no explanation
Fix
The fix in master_password.py where NoKeyringError is caught could
be extended to surface a user-facing message. Additionally, requesting
auto-connect approval from the Snap Store team for the
password-manager-service interface would solve this entirely.
Environment
- OS: Ubuntu (snap install)
- pgAdmin version: 9.14
- Package type: Snap
- Ngôn ngữ chính
- Python
- Star
- 3.9k
- Fork
- 918
- Merge trung bình
- 2 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 35
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pgadmin-org/pgadmin4
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pgadmin-org/pgadmin4#10673 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Import/Export Data fails for a file name containing a backslash, and creates a stray file named EĐang mởBug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
pgadmin-org/pgadmin4#10672 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pgadmin-org/pgadmin4#10426 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Drag-n-drop file to sql editor tool don't clear previous content before adding the new content in windowsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởFeature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
pgadmin-org/pgadmin4#10272 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Housekeeping
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
pgadmin-org/pgadmin4#10157 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của pgadmin-org/pgadmin4
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
bytedance/agentkit-samples#277 ·
-
ai-driven-fuzzing bug claude Minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Edit: TVS Encarnacion [PY]Đang mởchannels:edit check:passed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] The blue-green mitigation strategy lists catalog names and views before the source tablesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
aws-samples/sample-aws-genai-db-modernizer#2097 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày