Keys / RubyGems
GEM_HOST_API_KEY
The RubyGems.org API key gem push publishes gems with in CI.
- Starts with
rubygems_- Expires
- you choose, or never
- API
- create and update scopes, with your password
Get it
Create one on rubygems.org/profile/api_keys. The steps aren't recorded yet.
Set it
GEM_HOST_API_KEY=rubygems_...
The gem command reads it in place of a stored key. Or keep it out of .env with keypin: keypin run -- npm run dev
Replace it
- Create a new API key with the same scopes and gem.
- Deploy it everywhere that reads
GEM_HOST_API_KEY. - Check the old key's Last access time, then delete it on the API keys page. Reset deletes every key, so don't use it for one.
Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.