News for hackers. Stuff that matters.
Re:Ask HN: Why do tests run in production repos? by austin-cheney on Tuesday April 09, 2024 @04:48AM (#39977448)
Unrelated. Test automation is not an indicator of insecurity. If the mere presence of tests expose security vulnerabilities your product is insecure irrespective of the tests. In these cases fix the security problems.

I have always shipped test automation in production with my personal software. It allows users to independently validate the health of the product in their own operating conditions and write better more precise defects.

Re:Ask HN: Why do tests run in production repos? by TacticalCoder on Wednesday April 10, 2024 @05:03AM (#39988533)
> If the mere presence of tests expose security vulnerabilities your product is insecure irrespective of the tests.

Wait... I may be misunderstanding but in the xz backdoor we just had, had the tests not be ran in prod, the attacker would have had no way to ever ship its mandatory evil binary payload and the attack would have been stopped dead in its track.

I'm very surprised to see this dismissed as "unrelated" when not including the test files in the prod environment would have prevented that exploit.

At least as I understand it.