如何保护我的代码

发布于 2024-08-26 04:27:47 字数 245 浏览 1 评论 0原文

我已在下面的链接中发布了有关如何使用 Hg

如何防止代码泄露?

问题是:

在DVCS场景下,如何限制代码泄露?从技术上有什么方法可以限制这种情况,比如当我自动移动我的工作时,不应查看代码历史记录?

I had posted my question in the below link on how to protect my code using Hg

How do you protect code from leaking outside?

The question is:

In a DVCS scenario how can we restrict the code leakages? Is there any way technically to restrict this like when I move our of my work automatically history of codes should not be viewed?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦明 2024-09-02 04:27:48

需要编写代码的程序员越多,他们对协作和网络访问的需求就越大 到代码中。您必须定义威胁模型是什么:您想要防范什么,并以定义合法访问和非法访问的方式。

The more programmers need to work on the code, the greater their need for collaborating and having networked access to the code. You'll have to define what the threat model is: what are you trying to protect against, in such a way that you define legitimate and illegitimate access.

黎夕旧梦 2024-09-02 04:27:48

一般来说,源代码只是一堆文本文件。无论谁有权访问它们,都可以“窃取”或“盗用”它们,无论它们是否存储在 CVS、git、Subversion、Mercurial、Windows 共享文件夹等中。

分布式版本控制系统可以轻松获取所有历史记录的副本,但假设心怀不满的员工也可以从 CVS 服务器获取完整历史记录。或者从备份磁带中,或者通过手动复制多年来的文件。

您唯一能做的就是限制复制组织中的所有数据。

  • iPod
  • 可移动 USB 硬盘
  • 上传到公共互联网上不受信任的网站
  • SCP/FTP 访问公司外部的服务器

我不会太担心,除非您的工作确实需要超级保密(想想军事等)。如果你正确对待你的员工,他们就没有理由伤害你的组织。

In general the source code is just a bunch of text files. Whoever has access to them, can ,,steal'' or ,,pirate'' them, regardless of whether they are stored in CVS, git, Subversion, Mercurial, Windows shared folder, etc.

Distributed version control systems make it easy to grab a copy of all the history, but a hypothetical disgruntled employee can grab complete history from CVS server too. Or from backup tapes, or by manually copying the files over the years.

The only thing you can do is to limit copying all the data in your organization.

  • iPods
  • removable USB hard drives
  • upload to untrusted web sites on the public Internet
  • SCP/FTP access to servers outside your company

I wouldn't worry all that much, unless your work really needs to be super-secret (think military and such). If you treat your employees right, they will have no reason to hurt your organization.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文