Make system keyring discoverable (or default) for rsconnect login
Maintainer thường phản hồi trong vòng 1 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
- 68/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- python
- Lĩnh vực
- cli, documentation
Hướng nghiên cứu
Bắt đầu với extra keyring trong pyproject.toml, sau đó xác định thông báo fallback của login, văn bản trợ giúp cho login/logout và tài liệu deploying/auth được đề cập trong issue. Công việc được xem là hoàn tất khi người dùng trên workstation có thể tìm thấy extra và bật lưu trữ trong keychain hệ thống, đồng thời thông báo có thể thực hiện ngay và tài liệu bao quát đường dẫn được hỗ trợ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
rsconnect login stores OAuth tokens in the system keyring only if the optional keyring package is installed, otherwise it falls back to a local chmod-600 file and prints:
Note: keyring not available; credentials stored in local file (chmod 600).
keyring is an optional extra (pyproject.toml: keyring = ["keyring>=23.0.0"]), added alongside the login/logout commands in #773. The reasoning for keeping it optional is sound: rsconnect-python frequently runs in headless/CI/container/server environments where there's no usable secret-service backend (especially on Linux, where keyring needs SecretService/dbus), and the file fallback works fine there.
But there's a discoverability gap: a workstation user who would benefit from the OS keychain has no way to learn that the feature exists or how to turn it on. The fallback message states that keyring is unavailable but not how to enable it. Most users will never find the [keyring] extra.
Proposals
In rough order of preference:
-
Make the fallback message actionable. Tell the user how to opt in, e.g.:
Note: keyring not available; credentials stored in local file (chmod 600). To store credentials in your system keychain instead, install the keyring extra: pip install 'rsconnect-python[keyring]'This is low-risk and directly answers "how would I know to use it?"
-
Document it in the
login/logouthelp text and the deploying/auth docs (the--helpforloginmentions the keyring but not the extra needed to enable it). -
Consider making
keyringa default dependency. Modernkeyringinstalls cleanly on all platforms without heavy system requirements; on a backend-less Linux host it simply has no usable backend, and the existing code already catches that (keyring_store_tokenreturnsFalseon any exception and falls back to the file). If install footprint is the only concern, the trade-off may now favor including it by default and letting the runtime fallback handle headless environments. Worth at least evaluating.
Acceptance
- A workstation user can discover and enable system-keychain credential storage without prior knowledge of the
[keyring]extra (at minimum via an actionable message and docs).
- Ngôn ngữ chính
- Python
- Star
- 38
- Fork
- 28
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 59
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 posit-dev/rsconnect-python
-
--disable-env-management-node is ignored by Connect: manifest uses "node" instead of "nodejs"Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
posit-dev/rsconnect-python#998 ·
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 78/100
posit-dev/rsconnect-python#786 · 1 reaction ·
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 62/100
posit-dev/rsconnect-python#543 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Write no installer preference for uv.lock bundlesCó thể đã có người làm @tdstein đã nhận 2 ngày trước. Đang mởenhancement ready-for-agent
posit-dev/rsconnect-python#996 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Evaluate Python dependency source precedenceCó thể đã có người làm @tdstein đã nhận 13 ngày trước. Đang mởenhancement ready-for-agent
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 52/100
posit-dev/rsconnect-python#975 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của posit-dev/rsconnect-python
Issue tương tự
-
app: scripts status: backlog type: housekeeping
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
netbox-community/netbox-scripts#239 ·
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 74/100
LmeSzinc/AzurLaneAutoScript#6194 · 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 79/100
micronaut-projects/micronaut-core#14585 ·
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 82/100
langgenius/graphon#443 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày