Repository navigation
Protect pinned RubyGems tool installs with live version admission - #1209
Merged
Merged
Conversation
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
…e managed installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add pinned RubyGems tool installs through
omg tool install gem:NAME@VERSIONand bump the CLI patch version to 0.2.1.The CLI requests a fresh production assessment before invoking Ruby. It resolves the runtime dependency graph from registry metadata, admits every coordinate, verifies the registry SHA-256 and embedded specification for every archive, and installs the reviewed files into isolated staging. A failed or partial assessment blocks installation. Native extensions and RubyGems plugins are excluded from this install path.
On Arch Linux the CLI returned exit 1 for uznex@99.0.0, uznex-api-doc@99.0.1 and enkash-pg@1.0.0 with their production malware advisory IDs. Each left the new test account without a gem archive or installed specification. The same account installed published rake@13.3.1 and ran the linked executable, which printed
rake, version 13.3.1. Its archive digest matched RubyGems.Release validation also surfaced a yanked Rust dependency and a retired Debian mirror path used by the QEMU coverage controller. The lockfiles now use pin-project-lite 0.2.19. The controller now fetches libslirp 4.9.7-1 by immutable Debian snapshot ID and verifies the signed-index SHA-256 for both architectures. All nine focused controller tests passed. The updated CLI also installed and ran rspec-core 3.13.5 with rspec-support 3.13.8.