Make system keyring discoverable (or default) for rsconnect login
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 68/100
- Tipo de issue
- Documentação
- Clareza
- Razoavelmente clara
- Status de atividade
- Pouca atividade
- Stack de tecnologia
- python
- Domínio
- cli, documentation
Direção de pesquisa
Comece pelo extra keyring em pyproject.toml e, em seguida, localize a mensagem de fallback de login, o texto de ajuda de login/logout e a documentação de deploying/auth mencionados na issue. Está concluído quando um usuário de workstation consegue descobrir o extra e habilitar o armazenamento no chaveiro do sistema, e quando a mensagem acionável e a documentação cobrem o caminho compatível.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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).
- Linguagem predominante
- Python
- Estrelas
- 38
- Forks
- 28
- Merge médio
- 1d 4h
- PRs com merge (30d)
- 59
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de posit-dev/rsconnect-python
-
--disable-env-management-node is ignored by Connect: manifest uses "node" instead of "nodejs"Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
posit-dev/rsconnect-python#998 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
posit-dev/rsconnect-python#786 · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
posit-dev/rsconnect-python#543 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Write no installer preference for uv.lock bundlesTalvez já em andamento @tdstein assumiu há 2 dias. Abertaenhancement ready-for-agent
posit-dev/rsconnect-python#996 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Evaluate Python dependency source precedenceTalvez já em andamento @tdstein assumiu há 13 dias. Abertaenhancement ready-for-agent
Dificuldade 4/5 1-2 dias Facilidade para iniciantes 52/100
posit-dev/rsconnect-python#975 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de posit-dev/rsconnect-python
Issues semelhantes
-
app: scripts status: backlog type: housekeeping
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 88/100
netbox-community/netbox-scripts#239 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
LmeSzinc/AzurLaneAutoScript#6194 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
micronaut-projects/micronaut-core#14585 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
langgenius/graphon#443 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 90/100
Mantenedores costumam responder em até 1 dia