If this guy has to work on a "modern" frontend project, he's gonna review dependencies until the heat death of the universe.
Always Review Your Dependencies, AGPL Edition
11–20 of 236 posts
Re: Always Review Your Dependencies, AGPL Edition
#12It's always been weird to me how Microsoft invests so much in making JavaScript easy to develop and maintain with TypeScript but does so little to make it safe, the one thing JS needs is a standard library by Microsoft (or similar, e.g, Google) that we can trust, aiming to significantly reduce the number of dubious-origin dependencies of every JS project (on node and the browser)
https://github.com/microsoft/tslib/issues/47
(Disclaimer: I like TS, but I filed the above bug.)
Re: Always Review Your Dependencies, AGPL Edition
#13Package managers need to automatically derive properties of end builds based on licenses. E.g. Eclipse License 2.0 without the presence of another more liberal license means it cannot be used in copyleft software, any dependency that is copyleft is also infectious etc. Of course it won't account for every single legal property but the basic checks should be done. To prevent work duplication a single binary/library wr…
Re: Always Review Your Dependencies, AGPL Edition
#14I would love to have this guy write my security sensitive software.
Re: Always Review Your Dependencies, AGPL Edition
#15Package managers need to automatically derive properties of end builds based on licenses. E.g. Eclipse License 2.0 without the presence of another more liberal license means it cannot be used in copyleft software, any dependency that is copyleft is also infectious etc. Of course it won't account for every single legal property but the basic checks should be done. To prevent work duplication a single binary/library wr…
The licensing of a dependency could be easily determined programmatically (GitHub already built a decent scanner). However, I think that the quality of a dependency is most important and that requires a manual vetting process. A trivial solution would be to create a crowd-sourced dependency vetting platform.
Re: Always Review Your Dependencies, AGPL Edition
#16Re: Always Review Your Dependencies, AGPL Edition
#17> I repeat the above recursively on transitive dependencies as many times as necessary. I also repeat the cursory code review any time I upgrade a dependency. If this guy has to work on a "modern" frontend project, he's gonna review dependencies until the heat death of the universe.
Re: Always Review Your Dependencies, AGPL Edition
#18Re: Always Review Your Dependencies, AGPL Edition
#19> This is quite a bit of work, but is necessary to avoid falling victim to attacks like _event-stream_.
Reviewing dependencies is important, but I don't think anything the author mentions would have made a difference with event-stream. The whole issue there was that malicious changes were snuck in via a change of maintainers and a later update to a child dependency, so when people initially adopted it as a dependency there were no red flags in the library to find.
Re: Always Review Your Dependencies, AGPL Edition
#20It's always been weird to me how Microsoft invests so much in making JavaScript easy to develop and maintain with TypeScript but does so little to make it safe, the one thing JS needs is a standard library by Microsoft (or similar, e.g, Google) that we can trust, aiming to significantly reduce the number of dubious-origin dependencies of every JS project (on node and the browser)