Skip to content

Commit

Permalink
Add documentation related to scoping an API key to a gem
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshenny committed Jun 3, 2022
1 parent 46e13f8 commit a41e27a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions api-key-scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@ API key scopes
* [Access webhooks](https://guides.rubygems.org/rubygems-org-api/#webhook-methods): List, create, delete or fire webhooks associated with your account
* [Show dashboard](https://rubygems.org/dashboard): Access to atom feed of your RubyGems.org dashboard. It is an exclusive scope and can't be enabled with any other scope.

Scope an API key to a gem
-------------------------
Enabling one or more of the key scopes related to creating or updating a gem ([Push rubygems](https://guides.rubygems.org/rubygems-org-api/#post---apiv1gems), [Yank rubygems](https://guides.rubygems.org/rubygems-org-api/#delete---apiv1gemsyank), [Add owner](https://guides.rubygems.org/rubygems-org-api/#post---apiv1gemsgem-nameowners), and [Remove owner](https://guides.rubygems.org/rubygems-org-api/#delete---apiv1gemsgem-nameowners)) will allow you to scope one of your gems to the API key.
The operations corresponding to these scopes will only be valid on the selected gem.

![New API key with gem scope](/images/new-api-key-gem-scope.png){:class="t-img"}

If you are using a key to modify only one of your gems, please consider gem scoping your keys.

**Note:** When your ownership to a gem is removed, API keys scoped to that gem will become invalid and cannot be used.

Enable MFA on specific API keys
-----------------------------

Expand Down
Binary file modified images/api-key-created.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/api-keys-index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/new-api-key-gem-scope.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/new-api-key.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/new-mfa-api-key.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a41e27a

Please sign in to comment.