NuGet / NuGetGallery

NuGet Gallery is a package repository that powers https://www.nuget.org. Use this repo for reporting NuGet.org issues.
https://www.nuget.org/
Apache License 2.0
1.54k stars 643 forks source link

Hard package deletes don't remove vulnerability data from gallery db #8102

Closed drewgillies closed 4 years ago

drewgillies commented 4 years ago

In this code: https://github.com/NuGet/NuGetGallery/blob/master/src/NuGetGallery/Services/PackageDeleteService.cs#L321 there is no removal of related vulnerability rows. Specifics:

drewgillies commented 4 years ago

This is by design. We need to harvest all nuget ranges and let them auto update. A hard package delete will ultimately result in an advisory update which can be ingressed in due course. This design decision doesn't affect the db as thought, as the attached issue is determined to have had another cause.