Limit Access of GitHub or Bitbucket Repository

回眸只為那壹抹淺笑 提交于 2019-12-04 04:25:04

BitBucket does not appear to currently support access limitation by IP address:

We don't have any plans to add this feature in the short term, but it's a good idea. We'll leave this issue open as a feature request.

GitHub Enterprise does appear to support limiting access by IP address:

Whenever you add an SSH key to GitHub Enterprise via the Management Console, you can also specify which IP addresses to allow or deny connections from.

As to why BitBucket is in no rush to add this feature, we can look at the model upon which Git was built. One major feature of Git is that it allows for truly distributed development, across locations and IP addresses. A developer can contribute at home, in the office, or on the road, requiring only an internet connection. He can even continue making commits without an internet connection.

Note: GitLab 12.0 (June 2019) does have the "Restrict access by IP address " feature.

But only for Ultimate (self-managed) or Gold (gitlab.com) editions.

Compliance-minded organizations may want to prohibit traffic from outside IP addresses from accessing company resources.
This is especially helpful for organizations using VPNs, as you’re now able to restrict traffic from outside a specified subnet from accessing a group’s resources in the GitLab UI.

Configurable at the group level on both self-managed and GitLab.com, maintaining tight control over your organization’s most valued code just became easier than ever.

See documentation and gitlab-org/gitlab-ee issue 1985.

Bitbucket added the new features in IP based access repository. IP based access to the repository in bitbucket, you need to purchase the premium version of bitbucket ($5/per user/month). By these, you can restrict the access to the repository by another network.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!