TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Does anyone investigate open source packages before using in prod?

14 点作者 lyttlerock将近 5 年前
I'm curious to hear if anyone else does any due diligence before using open source packages in production? Not anything major - just checking for recent commits / activity, issue logs, etc.

12 条评论

alltakendamned将近 5 年前
It&#x27;s interesting to see so many people here checking the code of all their open source packages, so here&#x27;s my take on it as a security consultant:<p>No, most people don&#x27;t, they even have a hard time keeping library versions up to date.
评论 #23650891 未加载
评论 #23662552 未加载
austincheney将近 5 年前
Yes.<p>If you work in a secure environment or support critical infrastructure there are teams whose sole purpose is to approve&#x2F;deny releasing software regardless of who wrote it. Such teams will typically require source code, written justification, senior management signed approval, and test validation. In the case where source code is not provided, such as closed source commercial software, the vendor will be required to accept liability for all losses due to their software as ratified by a signed contract.
WA9ACE将近 5 年前
I normally read a good chunk, if not all of the code of a dependency before I add it to my projects except in the case of community standard things (in Ruby) such as ActiveSupport or Sequel. Going over a prospective dependency a few months ago bore fruit in proving why you should always do this. NewsAPI is a neat little API for fetching news whose docs just so happen to show a ruby gem. Being the lazy developer I am I’d like to use the gem than build another API client, but before I did that I read the source as one should. Low and behold what do I find but the evil eval in the code for a dirt simple API client. No thanks.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;olegmikhnovich&#x2F;News-API-ruby&#x2F;blob&#x2F;master&#x2F;lib&#x2F;news-api.rb#L47" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;olegmikhnovich&#x2F;News-API-ruby&#x2F;blob&#x2F;master&#x2F;...</a>
评论 #23670356 未加载
jfoster将近 5 年前
This article might be of interest:<p><a href="https:&#x2F;&#x2F;medium.com&#x2F;hackernoon&#x2F;im-harvesting-credit-card-numbers-and-passwords-from-your-site-here-s-how-9a8cb347c5b5" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;hackernoon&#x2F;im-harvesting-credit-card-numb...</a>
nikitaga将近 5 年前
I am paranoid about security of all those packages, so yes, even before just downloading, I check the authors, activity and read the source code. Not always – e.g. I skip the source code if it&#x27;s something big AND very reputable AND I decided that I need it such as scala&#x2F;scala or facebook&#x2F;react – but I do my best.<p>It&#x27;s very annoying, it&#x27;s not free, and it affects what kinds of libraries I use. My projects have fewer and smaller dependencies than typical because of these self imposed constraints.<p>On the upside, borrowing a pattern or a dozen lines of code instead of pulling a dependency that will remain 90% unused is really underrated. As is understanding how things work under the hood.
评论 #23650222 未加载
评论 #23653314 未加载
uvw将近 5 年前
I would be surprised if anyone has enough resources or willingness to do that for every open source package they are using. For companies that go through auditing, they can CTA by relying on products like Nexus IQ.
carapace将近 5 年前
Yes, in depth. Not just the packages but their dependencies as well.
评论 #23648499 未加载
评论 #23653598 未加载
评论 #23650234 未加载
bjourne将近 5 年前
Doesn&#x27;t everyone? That&#x27;s one of the annoying parts of using other people&#x27;s code. You have no idea how good or bad it is until you have thoroughly vetted it.
bnchrch将近 5 年前
These comments feel skewed. I look for activity and support. Reading the actual code is typically far from my mind.<p>The time-opportunity cost isnt worth it on average
amoitnga将近 5 年前
In my case no. But I tend to use the big guns. I&#x27;m willing to learn though
bluGill将近 5 年前
Yes, if there are no commits at all I know I&#x27;m stuck maintaining it.
评论 #23655455 未加载
wolco将近 5 年前
Sort of. By the time you choose the package that info should be known.