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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

3 True Stories of Missing Source Code Security

3 点作者 sebastiank123大约 10 年前

2 条评论

wtbob大约 10 年前
It&#x27;s an ad. I&#x27;ll bite, though.<p>#1 The Internal Job: the real mistake was in having production credentials (i.e., the keys to the generators) inside the codebase. The keys should have been generated when the software was deployed. Hardcoded information should be kept to a minimum, or ideally eliminated altogether.<p>#2 Breaching the Version Control Process: there&#x27;s not really enough information here to figure out the actual issue. Someone changed a version number, and that caused a bug to reappear? That sounds like #ifdefs or similar, where setting a version number can cause code to be included or excluded. Don&#x27;t do that: tag your versions in your VCS, and eliminate dead code ruthlessly. If you really need to get it back, you can always use your VCS to restore a particular versions&#x27; code.<p>#3 Exposing from the Cloud: git&#x27;s great; GitHub&#x27;s great; not knowing to keep your repos private is…not so great. Also, pretty damned easy to avoid. Any private VCS would work here, to include git repos on a filesystem.<p>RhodeCode might be neat; it might not be. No doubt it could possibly provide for a lot of stuff out of the box. At the end of the day, though, you can&#x27;t replace smart people executing well-designed processes with software; software is only good for replacing drones executing dumb processes.
idontknow4大约 10 年前
So I agree having good version control tools is always a must but some common sense is always needed too. Although that said, I know code was reinserted on me once (similar to example 2) but there is nothing more frustrating than dealing with idiots.