ruby / ruby/rubygems

All commands should use credentials

Open
#3,467 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

RubyGems status: triage
Dominant language
Ruby
Stars
4k
Forks
1.9k
Avg merge
1d 2h
Merged PRs (30d)
81

Description

As per the documentation and my testing, not all gem commands support --key, which I interpret as them not using credentials from ~/.gem/credentials either.

Three of the possibly many commands that don't support --key or stored credentials are info, fetch and install. For commands like these, one has to jam authentication into the URL as such:

https://<username>:<password>@example.com

I think it would be good if all commands worked the same way regarding authentication and supported --key and ~/.gem/credentials consistently.

This issue is related to:

  • Network problems
  • Installing a library
  • Publishing a library
  • The command line gem
  • Other

Here are my current environment details:

$ gem env version
3.0.6

I will abide by the code of conduct.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the command reference and the implementations of the named info, fetch, and install commands. Compare how --key and ~/.gem/credentials are handled against commands that already support them. Done means the commands use the same credential behavior consistently without requiring credentials embedded in URLs.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
authentication, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.