feat: add Echo OSV language strategy (pip/npm/maven)#3526
Open
LaizaAngrest wants to merge 2 commits into
Open
Conversation
Adds an echo strategy to the OSV transformer for Echo's language-package advisories (Echo:PyPi / Echo:npm / Echo:Maven), emitting NAK/unaffected records keyed by the upstream package name. Echo keeps upstream names (no prefix), so suppression is scoped by a new Echo package qualifier (schema 6.1.8) that fires only when the scanned package carries the +echo.N version suffix — preventing the open-ended unaffected range from leaking onto plain upstream versions. Consumes the echo-osv vunnel provider (anchore/vunnel#1174). Signed-off-by: Laiza Angrest <laiza.angrest@echo.ai>
npm follows SemVer, which excludes build metadata from precedence, so 3.1.9+echo.1 and 3.1.9+echo.2 compare equal and a NAK fixed at +echo.2 would also suppress the still-vulnerable +echo.1 build. Add an echo-aware version format (semantic ordering with a +echo.N tie-break) and use it only when evaluating unaffected records for Echo builds. Disclosures keep default semantics: upstream advisories written against upstream versions must keep treating X+echo.N as X. Signed-off-by: Laiza Angrest <laiza.angrest@echo.ai>
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.
Adds an echo strategy to the OSV transformer for Echo's language-package advisories (Echo:PyPi / Echo:npm / Echo:Maven), emitting NAK/unaffected records keyed by the upstream package name.
Echo keeps upstream names (no prefix), so suppression is scoped by a new Echo package qualifier (schema 6.1.8) that fires only when the scanned package carries the +echo.N version suffix — preventing the open-ended unaffected range from leaking onto plain upstream versions.
Consumes the echo-osv vunnel provider (anchore/vunnel#1174).