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.

...
- GEM CONFIGURATION:
   - :update_sources => true
   - :verbose => true
   - :benchmark => false
   - :backtrace => false
   - :bulk_threshold => 1000
   - :sources => ["http://rubygems.org", "http://gems.opscode.com/"]
   - "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: http://rubygems.org/pages/gem_docs.

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?

Thanks

  1. Support Staff 2 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: http://rubygems.org/profile

  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. 3 Posted by Stephen Bannasch on 22 Apr, 2010 04:32 AM

    Stephen Bannasch's Avatar

    Thanks for clearing that up.

  5. Support Staff 4 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

Generic

? 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

Recent Discussions

29 Aug, 2014 06:23 PM
28 Aug, 2014 07:18 PM
27 Aug, 2014 12:03 PM
26 Aug, 2014 07:09 PM
26 Aug, 2014 07:07 PM