4 ms·
Hence why you should audit your third-party dependencies in cases like these.
by saagarjha 7y ago
Hence why you should audit your third-party dependencies in cases like these.
- winkeltripel 7y agoI suspect that most devs don't do that. I can't imagine finding the time fir that.
- josephg 7y agoWho do you imagine is responsible for making sure your app doesn’t contain malware? The only answer is that as a developer, you are responsible. Yes, we have to make calculated risks. But the buck stops at you. There is nobody else who can take responsibility for the contents of your app.
- rdevnull 7y agoyou simply notarized the app and you know that there is no malware. Also we are talking about ElectronJS and Chromium -- not exactly untreatable sources. Note that apple does check for malware and quality on the upload stage itself (now done via transporter) so it wouldn't even make it to then review state if something is dodgy.
- josephg 7y agoApple can’t magically tell that there’s no malware in an app you upload. There is no automated scan which can detect all security vulnerabilities or back doors in code. And we’re talking about electron plus hundreds to thousands of npm modules - which contain who knows what. If you pull in some bad modules, directly or transitively, and as a result your app steals my data or worse, that’s on you for shipping malicious code to my computer. There is no one else who can be responsible for that. Not Apple. Not the user. You.
- JohnFen 7y agoI've done that over my entire career. It's always been a requirement. To say you can't find time for it is the same as saying that you can't find time to complete development.
- jonny_eh 7y agoHow exactly?
- saagarjha 7y agoI would assume that a quick grep through your project for the symbols mentioned would tell you where the issue is.
- drewbug 7y agowhat if the function calls are generated with macros or something?
- saagarjha 7y agogrep the generated binary.
- justinclift 7y agoIsn't it literally the responsibility of the developer to figure it out, instead of just ignoring it because it's potentially hard?
- rdevnull 7y agoit would but it wouldn't solve the problem. This would require the developer to modify electron and basically run his own branch. It would then make your package possibly acceptable (but attention here: as Apple clearly stated keeping too use private APIs can get you banned so if you miss something you can lose your access to the apple store) leaving however everyone else using electron with the same problem. So the solution has to come from Electron.
- JohnFen 7y ago> So the solution has to come from Electron. And until it does, developers should not use Electron. There's a number of reasons why I refuse to use Electon-based apps, and this is one of them.