NASA-PDS / devops

Parent repo for PDS DevOps activities
Apache License 2.0
0 stars 0 forks source link

As a developer, I want to ensure image dependencies are secure #76

Closed nutjob4life closed 1 month ago

nutjob4life commented 3 months ago

Checked for duplicates

Yes - I've already checked

🧑‍🔬 User Persona(s)

Devops

💪 Motivation

...so that I can ensure the dependencies used in container images are secure and up-to-date.

A scanning tool such as Grype can ensure that package dependencies, operating system versions, and language-specific vulnerabilities do not end up in generated images. Combined with a pre-commit hook, this can prevent such security problems from proliferating into distributed images. GitHub Actions can ensure the safety of such images from contributions made without pre-commit hooks.

The SLIM community has an in-progress guide describing just this.

📖 Additional Details

No response

Acceptance Criteria

Given When I perform Then I expect

⚙️ Engineering Details

No response

🎉 I&T

No response

riverma commented 3 months ago

Awesome @nutjob4life - interested to hear your experience with this tool and guide. SLIM is currently collecting feedback on how to improve the guide before we publish it to our site.

tloubrieu-jpl commented 1 month ago

Starting with validate.

tloubrieu-jpl commented 1 month ago

validate has many dependencies, some of them have vulnerabiliies.

jordanpadams commented 1 month ago

@tloubrieu-jpl @nutjob4life do validate dependencies have vulnerabilities? between dependabot and sonatype, I am surprised we have not caught these. I monitor these closely.

nutjob4life commented 1 month ago

@jordanpadams, yes, validate depended on pds4-jparser, which depended on pds-opencsv, which depended on commons-text:1.9, which had a critical vulnerability (detected using Grype, the container image-scanning tool).

Dependabot caught it roughly the same time I did!

jordanpadams commented 1 month ago

Status: Completed on validate. Will add more sub-tasks for adding this other repos as they come up.

other higher priority repos in the future:

jordanpadams commented 1 month ago

Closed per https://github.com/NASA-PDS/validate/pull/1010. Will create new tasks for future expansion to other repos