Verify Ruby deployments
Deploy a git checkout and install gems with Bundler in deployment mode, so they land in vendor/bundle. The attester hashes every file in the checkout and every installed gem, with its specification, compiled extensions and executable wrappers, and inspects each Ruby process. The verifier downloads the .gem whose SHA-256 Gemfile.lock pins, checks it, and compares its contents with the installed gem.
| Lockfile | Gemfile.lock or gems.locked with checksums |
|---|---|
| Reference | .gem from RubyGems.org by pinned SHA-256 |
| What is verified | Gems in vendor/bundle, their specifications, executable wrappers |
How it works
The lockfile is read at the deployed commit, from the verifier's own clone of the public repository, never from the server. Every package is compared with the reference the lockfile pins, fetched and checked by hash. Besides the packages, the deployed files are compared with the commit, every process of the service is inspected, and every running executable and library is explained by a reference. A reference that cannot be fetched makes the result inconclusive, never passing.
The Ruby guide
The Ruby guide covers the setup for the project, the attester and the verifier:
- What gets verified
- Requirements
- Attester configuration
- Verifier configuration
- Build and deploy
- Common findings
- Limits