[Snap] Show actionable warning when password-manager-service is not connected instead of falling back to master password silently
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 3.9k
- 派生
- 918
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 35
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pgadmin-org/pgadmin4 的其他 Issue
-
Bug
难度 2/5 1-3 小时 新手友好度 78/100
pgadmin-org/pgadmin4#10673 ·
维护者通常 2 天内回复
-
Import/Export Data fails for a file name containing a backslash, and creates a stray file named E未关闭Bug
难度 2/5 1-3 小时 新手友好度 82/100
pgadmin-org/pgadmin4#10672 ·
维护者通常 2 天内回复
-
Feature
难度 2/5 1-3 小时 新手友好度 78/100
pgadmin-org/pgadmin4#10426 · 3 条评论 · 1 个 reaction ·
维护者通常 2 天内回复
-
Drag-n-drop file to sql editor tool don't clear previous content before adding the new content in windows可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭Feature
难度 2/5 1-3 小时 新手友好度 68/100
pgadmin-org/pgadmin4#10272 · 5 条评论 ·
维护者通常 2 天内回复
-
Housekeeping
难度 2/5 1-3 小时 新手友好度 76/100
pgadmin-org/pgadmin4#10157 · 1 条评论 ·
维护者通常 2 天内回复
查看 pgadmin-org/pgadmin4 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
bytedance/agentkit-samples#277 ·
-
ai-driven-fuzzing bug claude Minor
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 2 天内回复
-
channels:edit check:passed
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
aws-samples/sample-aws-genai-db-modernizer#2097 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复