how to revoke a gemcutter API key?

Stephen Bannasch's Avatar

Stephen Bannasch

22 Apr, 2010 01:27 AM

I posted a bug report and included the output of: gem env in the bug report.

I only noticed after posting the bug report that this included my gemcutter API key.

   - :update_sources => true
   - :verbose => true
   - :benchmark => false
   - :backtrace => false
   - :bulk_threshold => 1000
   - :sources => ["", ""]
   - "gemcutter_key" => "xxxxxxxxxxxxxxxxxxxxxxxxxx"

However the key displayed by: gem env -- is not the key stored here: ~/.gem/credentials

Which appears to be what is used now:

A couple of questions:

  • Is the gemcutter_key displayed by gem env still used?
  • If so how can I revoke it and get another and how is it different than the one stored ~/.gem/credentials?
  • If not how can I erase it so gem env no longer displays an out-of-date key?


  1. Support Staff 1 Posted by Nick Quaranto on 22 Apr, 2010 02:35 AM

    Nick Quaranto's Avatar

    You can safely remove that line from your ~/.gemrc. It's not used anymore after several complaints about this very situation, which is why it lives in ~/.gem/credentials now.

    You can reset the API key here if you ever need to:

  2. Nick Quaranto closed this discussion on 22 Apr, 2010 02:35 AM.

  3. Stephen Bannasch re-opened this discussion on 22 Apr, 2010 04:32 AM

  4. 2 Posted by Stephen Bannasc... on 22 Apr, 2010 04:32 AM

    Stephen Bannasch's Avatar

    Thanks for clearing that up.

  5. Support Staff 3 Posted by Eric Hodel on 22 Apr, 2010 04:40 AM

    Eric Hodel's Avatar

    RubyGems 1.3.7+ will no longer display the gemcutter_key in gem env so future pasters won't have to worry about this. Instead they'll see "***..."

  6. Nick Quaranto closed this discussion on 17 Jul, 2010 08:28 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac