Commit Graph

9 Commits

Author SHA1 Message Date
Sergio C. Arteaga bca33092e3
Fix issue handling security reports with no results (#1440)
Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
2021-07-17 16:36:12 +02:00
Sergio C. Arteaga 5b94f70b9f
Bump Trivy to 0.19.1 + some refactoring in scanner (#1437)
Trivy is [migrating to a new JSON schema](https://github.com/aquasecurity/trivy/discussions/1050). Artifact Hub stores the reports generated by Trivy in JSON format in the database, so we are migrating to the new format as well. Even though new security reports will use the new format, there might be reports stored in the database still using the previous format that may never be updated. The UI will know how to handle both, but users using the security report API endpoint need to be aware that they might receive any of them.

Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
Signed-off-by: Cintia Sanchez Garcia <cynthiasg@icloud.com>
Co-authored-by: Sergio Castaño Arteaga <tegioz@icloud.com>
Co-authored-by: Cintia Sanchez Garcia <cynthiasg@icloud.com>
2021-07-16 21:39:36 +02:00
Sergio C. Arteaga a20cbe3d5a
Fix issue updating snapshot security report (#1411)
Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
2021-06-18 13:55:51 +02:00
Sergio C. Arteaga f3fc6b1d25
Improve scanner errors logging (#1388)
Errors returned from `trivy` are now added to the scanning errors logs
as-is. In addition to this, no security report for a package will be
generated if the scanning of one of the images fails for any reason.
Before, when the error was `image not found`, we were still generating
the report, which could lead to incomplete and misleading reports.

Closes #1387

Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
2021-06-14 10:26:40 +02:00
Sergio C. Arteaga 5e3817c76f
Add security vulnerabilities alerts (#1307)
Closes #1304

Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
Signed-off-by: Cintia Sanchez Garcia <cynthiasg@icloud.com>
Co-authored-by: Sergio Castaño Arteaga <tegioz@icloud.com>
Co-authored-by: Cintia Sanchez Garcia <cynthiasg@icloud.com>
2021-05-10 13:09:06 +02:00
Sergio C. Arteaga 20022a5952
Add some context to images scanner errors (#1155)
Closes #1154

Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
2021-02-26 11:57:05 +01:00
Teppei Fukuda f2430cc019
Scan images using the latest tag (#1153)
Signed-off-by: knqyf263 <knqyf263@gmail.com>
2021-02-25 15:56:03 +01:00
Sergio C. Arteaga a7fb8a08ac
Store and expose security scanner errors (#1137)
Closes #1129

Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
Signed-off-by: Cintia Sanchez Garcia <cynthiasg@icloud.com>
Co-authored-by: Sergio Castaño Arteaga <tegioz@icloud.com>
Co-authored-by: Cintia Sanchez Garcia <cynthiasg@icloud.com>
2021-02-23 13:24:58 +01:00
Sergio C. Arteaga 19b85f0941
Refactor scanner and add some tests (#768)
Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
2020-10-20 16:53:54 +02:00