Limit Access of GitHub or Bitbucket Repository

爷,独闯天下 提交于 2019-12-21 12:00:13

问题


Is there any way to limit the access of bitbucket or Github repository from a specific IP Address.

Which means I want to access my organisation repositories only from my office.

The another this is that is there any way to block with a time being?

Any of the git providers supporting this feature?

The SSH key is only useful for the git action without entering passwords and username?

Any way to solve this issue?

I think many of the IT Companies are using this service for securing their source code.

Is it possible to achieve this without a git service?


回答1:


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.




回答2:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/34326735/limit-access-of-github-or-bitbucket-repository

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