Enhance bandersnatch mirror
to optionally delete packages detected as no longer found
#1686
Labels
bug
Something isn't working
enhancement
New feature or request
help wanted
Extra attention is needed
Taking the package tohoku-tus-iot-automation as an example, I saw from the logs that this package was synced down from the official source on March 6th. By March 7th, bandersnatch had detected that the upstream had already removed it (due to the package containing malicious information collection backdoors and trojans). However, our local bandersnatch had not yet deleted it. On March 18th, during troubleshooting by our operations team, they discovered this issue and manually executed "bandersnacth delete tohoku-tus-iot-automation" to remove it.
My question is, since Bandersnatch can detect that the upstream has removed https://github.com/pypa/bandersnatch/blob/main/src/bandersnatch/mirror.py#L125, why wasn't there consideration given to adding the ability for automatic deletion (or a switch)?
Are there any other considerations or scenarios that prevent us from doing so?
The text was updated successfully, but these errors were encountered: