Skip to content

Keep track of checksum per gem in the lockfile #3379

@coilysiren

Description

@coilysiren

From @Bertg on September 30, 2013 8:49

More and more people are getting worried about the safety of gems and the ecosystem around it. There are some nice project on their way (signed gems etc...) but it might still be some time before these are main stream. And that might still not fix issues with git based gems etc.

What I'm suggesting here is not a 100% fail safe system. What I'd like to do here is add to Bundler's "The gems you run locally will be the gems on your server" guarantee.

I'm suggesting to add a checksum to the Gemfile.lock file per gem. When creating the lockfile we create a checksum per gem and store it in the file.
On install, specifically when retrieving a gem from a foreign source, we again make the checksum and compare.
This should add a significant amount of confidence that the source of the gem isn't compromised and that I'm running the exact same version on all machines.

What do you think?

Copied from original issue: rubygems/bundler-features#27

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions