Commit graph

771 commits

Author SHA1 Message Date
Christopher Angelo Phillips
16e6bee766
update go -> 1.17 (#628)
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-02-11 10:50:13 -05:00
Alex Goodman
c9f2716389
Abstract upstream package before matching (#607)
* add metadata extraction from pURLs

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* extract upstream packages before matching

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* put pkg.UpstreamPackages under test

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* remove pURL related processing

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* pull in syft spdx decoding

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* allow for more flexible GHSA namespace and source extraction

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add matching parity integration tests for all supported formats

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* bump syft to get spdx tv fix

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-02-10 21:43:12 +00:00
Jonas Xavier
42ca8c61d3
Ensure completion of UI progress bar (#627) 2022-02-10 08:03:15 -08:00
Jonas Xavier
a8c65807fc
update stereoscope version to include Podman (#612)
* update stereoscope

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>

* go mod tidy

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>

* test stereoscope with fix

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>

* remove mod replacement and use latest stereoscope

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>
2022-02-01 14:45:11 -08:00
Dan Nurmi
0ce1c43d40
Add list of public data feeds that are sourced when populating grype's vulnerability database (#618) 2022-02-01 02:32:34 +00:00
Sambhav Kothari
346df07df5
Add sprig templating functions for grype output (#610)
Signed-off-by: Sambhav Kothari <skothari44@bloomberg.net>
2022-01-28 11:27:27 -05:00
Vijay Pillai
e21f37494e
Update go-bouncer to v0.3.0 (#605)
Signed-off-by: Vijay Pillai <vijay.pillai@anchore.com>
2022-01-26 16:15:33 +00:00
Alex Goodman
2f8682b3db
Add ability to merge matches (#602)
* enable merging of matches

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add ability for matches constructor to take initial matches

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update tests to include IDs on package objects

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* rename common matcher helper package to search package

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* rename search functions and add SearchByCriteria

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* cleanup imports

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-01-25 10:29:16 -05:00
Weston Steimel
7e4e1e3158
convert from deprecated org.label-schema to OCI Annotations (#599)
Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
2022-01-21 21:58:51 +00:00
Christopher Angelo Phillips
3ba7e56e42
remove goreleaser replacements and update checksum removals (#598)
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-01-20 18:22:23 +00:00
Christopher Angelo Phillips
e453a06551
upgrade syft to v0.36.0 (#597)
* upgrade syft dependencies

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* add basic metadata for coverage

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-01-20 12:47:15 -05:00
Dan Luhring
bc0f4eb9b2
Bump syft to include file source fix (#596)
Signed-off-by: Dan Luhring <dan+github@luhrings.com>
2022-01-18 19:29:31 +00:00
Christopher Angelo Phillips
a2e82ee8f0
Update goreleaser so Windows included in checksum (#594)
* update goreleaser so windows included in checksum

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-01-14 13:13:17 -05:00
Alex Goodman
6e3aa6a8d7
Add strong distro type (#585)
* add strong distro type

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* nit changes

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update grype/db package to use distro pointer

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* source distro type from release name

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* bump syft to pull in distro type updates

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* bump lint timeout

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-01-12 13:47:27 -05:00
Alex Goodman
2647cd0d9e
Port grype-db to grype (#587)
* port grype-db to grype

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* migrate vulnerability provider implementation to db package

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* upgrade path import validations

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* fix linting issues

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-01-12 10:03:22 -05:00
Christopher Angelo Phillips
24ef03efc4
update to secure syft version (#586)
* update to secure syft version

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* go mod tidy

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-01-11 10:33:58 -05:00
Christopher Angelo Phillips
7fbe20c223
upgrade stereoscope (#584)
* bump stereoscope to remove vulnerable containerd

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* go mod tidy

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-01-10 15:05:52 -05:00
Alex Goodman
c88ee0e8f5
add expose minimal search configuration (#579)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-01-09 06:14:57 -05:00
Christopher Angelo Phillips
64d4dbb993
update syft version for new release (#578)
* update syft

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* update CatalogPackages to use new cataloger config struct

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* add new valid CPE to matcher tests
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* update integration tests

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-01-07 17:57:44 -05:00
Christopher Angelo Phillips
3a1531f8f5
remove stale folder (#575)
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2022-01-04 19:18:30 +00:00
Christopher Angelo Phillips
9f44aa89b0
Add basic vulnerability summary documentation (#574)
* add basic vulnerability summary to README

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2022-01-04 09:45:37 -05:00
Richard Mayes
75bb4ce9e3
fix(docs): fix issue with template command example (#540)
Signed-off-by: Richard Mayes <richard.mayes@watchfinder.co.uk>
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-22 16:25:52 -05:00
Alex Goodman
b100315292
bump syft to v0.34.0 (#567)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-22 16:20:23 -05:00
Christopher Angelo Phillips
349aa863f9
update so cp statement cane use coreutils and /bin (#566)
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-12-22 14:52:23 -05:00
Keith Zantow
b618b84bac
Ignore explicit list of log4j false positive matches (#559) 2021-12-22 13:27:41 -05:00
Jonas Galvão Xavier
2cc631a25a
Grype verbose log version (#556)
* add version to logs

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>

* log when looking for updates

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>
2021-12-21 12:23:37 -08:00
Keith Zantow
647d6fb770
Add --exclude flag (#551) 2021-12-21 12:52:07 -05:00
Dan Luhring
b3ea488df4
Add support for file scheme to presenter model (#557)
* Add failing test for covering all source schemes

Signed-off-by: Dan Luhring <dan+github@luhrings.com>

* Add failing test for file scheme

Signed-off-by: Dan Luhring <dan+github@luhrings.com>

* Add support for file scheme to model

Signed-off-by: Dan Luhring <dan+github@luhrings.com>
2021-12-19 18:03:05 -05:00
Alex Goodman
4f964c4ee2
bump syft to v0.33.0 (#550)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-16 09:49:36 -05:00
Dan Luhring
2bb0364cfe
Fix panic in FromCatalog function (#547)
* Add test to assert no panic in FromCatalog

Signed-off-by: Dan Luhring <dan+github@luhrings.com>

* Adjust loop to append packages

Signed-off-by: Dan Luhring <dan+github@luhrings.com>
2021-12-16 08:40:03 -05:00
Eng Zer Jun
0781fb028b
refactor: move from io/ioutil to io and os packages (#543)
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-12-15 09:35:04 -05:00
Alex Goodman
81a16c4142
bump syft to v0.32.2 (#541)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-14 17:39:05 +00:00
Alex Goodman
73d2971914
M1 install.sh script should use zip (#539)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-14 10:50:07 -05:00
Alex Goodman
3f23425fa5
bump syft to v0.32.1 (#535)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-14 02:03:13 +00:00
Alex Goodman
f2d02b0b09
pull in binary panic fix; closes #526 (#528)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-10 18:03:13 +00:00
Alex Goodman
e62186725b
bump syft to v0.32.0 (#524)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-08 21:52:34 +00:00
Bala Raman
8abc83f685
Adding AlmaLinux OS Support (#514)
* Adding AlmaLinux OS Support

Signed-off-by: Bala Raman <srbala@gmail.com>

* incorporate grype-db updates for ALMA linux

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-07 16:55:33 -05:00
Dan Luhring
4bb841e97d
Add section for community meetings (#521)
Signed-off-by: Dan Luhring <dan+github@luhrings.com>
2021-12-06 12:18:30 -05:00
Alex Goodman
a7ce318b20
fix release quality gate section (#518)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-03 17:11:26 +00:00
Alex Goodman
270606ad37
bump syft to v0.31.0 (#517)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-03 16:56:43 +00:00
Alex Goodman
86b7d165e2
Add db list command (#506)
* add db list command

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add stderr print helper

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update docs to with details about listing files and DB curation

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-03 16:43:50 +00:00
Dan Luhring
2867dc0118
Remove webinar announcement (#513)
Signed-off-by: Dan Luhring <dan+github@luhrings.com>
2021-12-01 19:05:14 +00:00
Alex Goodman
51e1b6307b
Update syft, jotframe, and validations pipeline (#512)
* update syft and jotframe

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update validations and release pipeline

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* moved terminal package to golang.org/x/term

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update integration tests to account for package relationships

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add license exception for xz

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update Location and Coordinate references

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* remove benchmark tests

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* remove mac acceptance tests

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add syft-grype relationship notes in DEVELOPING.md

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-11-30 18:10:07 +00:00
Christopher Angelo Phillips
7e8ee40996
update releaser code to tag with correct v prefix (#508)
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-11-22 16:15:43 -05:00
Alex Goodman
027e718b43
ignore partybus unsubscribe errors (#507)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-11-22 16:08:17 -05:00
Dan Luhring
70ec3bfb71
Support for private certificate authorities during DB curation (#494)
* Add injectable HTTP client to file getter

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>

* WIP: Map config for custom CA certs

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>

* update curator and add tests

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add TLS helper scripts

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* remove grype-db local mod edit

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* tidy go modules

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* use ssl.context over deprecated fn

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* disallow tls 1 and 1.1

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* suppress non-archive sources for fetch-to-dir capability

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* ensure DB load failure does not panic

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* address review comments

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
2021-11-22 16:59:38 +00:00
Dan Luhring
1e35cbf20b
Announce meetup on 2021-12-01 (#505)
Signed-off-by: Dan Luhring <dan+github@luhrings.com>
2021-11-22 10:13:55 -05:00
Christopher Angelo Phillips
48c0b9b0e3
bump grype-db to latest commit (#501)
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-11-16 13:07:56 -05:00
Swathi Gangisetty
5aa2b7bcac
Support vulnerability matching for Rocky Linux (#500)
- Update grype-db dependency for the distro-feed namespace mapping
- Add test to verify the above mapping

Signed-off-by: Swathi Gangisetty <swathi@anchore.com>
2021-11-15 16:14:24 -08:00
Christopher Angelo Phillips
a2762bbbf0
Bump syft version => v0.30.1 (#498)
* update syft version with correct arguments

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>

* bump integration tests with new presenter format

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>

* update integration tests to remove php-composer failure

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-11-15 17:11:56 -05:00