This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Gem Integrity - Subresource Integrity (SRI) for Ruby #3307
Labels
You can continue the conversation there. Go to discussion →
I want to start the discussion of introducing the concept of Subresource Integrity (SRI) into the Gemfile.
Here is an example of what it may look like:
The goal is exactly the same as SRI but translated to gems:
Using this technique, it would be more or less impossible for a gem version to be replaced with a malicious one as it will not match the specified hash and therefore will never be installed.
To enable this feature, there will need to be a standardized technique to determining the hash of a gem. Likewise, the hash would need to be made public by gem authors and possibly the gem repositories. E.g RubyGems.
Having Gem Integrity, will help to protect the Ruby community from malicious actors.
Using Gem Integrity as a foundation, we could also provide additional value added features. Some ideas are:
I would love to hear everyone's thoughts on this.
The text was updated successfully, but these errors were encountered: