SSH部署密钥的GitHub限制 [英] GitHub limit for SSH deploy keys

查看:71
本文介绍了SSH部署密钥的GitHub限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在GitHub SSH Deploy密钥限制.假设我需要将2000甚至4000个部署密钥添加到git存储库中.那有可能还是我会在某个时候达到极限?

Is there any GitHub SSH Deploy key limit. Let's say I would need 2000 or even 4000 deploy keys added to the git repository. Is that possible or will I hit the limit at some point?

这样做的原因是,我们将需要配置4000个设备.并且我们希望控制哪些设备可以访问存储库,并在必要时将其禁用.另一个选择的确是访问令牌,但是据我了解,它们是与帐户而不是存储库链接的.

The reason for this is that we would have 4000 devices that would need to be provisioned. And we want to have control which device can access repository and if necessary disable it. Another option is indeed access tokens, but as far I understand they are linked to the account, not repository.

https://help.github.com/articles/git-automation-with-oauth-tokens/

这也意味着我们需要分别管理他们可以访问的存储库的权限.

And that would also mean that we would need to manage the permissions separately to which repository they have access to.

推荐答案

首先,为什么需要多达 4000 个部署密钥?这是一个很大的数目,我想您应该解释一下为什么一个单一存储库需要大量的部署密钥.

First of all, why would you need up to 4000 deploy keys? This is a pretty large number and I think you should explain why you need such a large amount of deploy keys for one single repository.

但是:在GitHub文档中找不到关于此的任何信息并得到以下答复后,我联系了GitHub支持:

However: I contacted the GitHub support, after I couldn't find anything about this in the GitHub documentation and got the following response:

我不认为我们对SSH密钥或部署密钥有固定的限制 尽管由于设置页面并非采用此类设计 考虑到使用情况,我认为这将非常难以管理.

I don't believe we have a fixed limit on SSH keys or deploy keys although as the settings pages weren't designed with this sort of usage in mind, I think it would be rather difficult to manage.

当某人需要控制如此大量的访问权限时 机器,我们通常建议创建个人访问权限 令牌, 因为这些可以自动化,并且将提供类似的访问权限.如果 大量的键是必要的,并且会导致问题,我们会 我们会尽力提供帮助.

When someone needs to control access to such a large number of machines, we'd usually recommend creating personal access tokens instead, as these can be automated and will provide similar access. If the huge number of keys was necessary and causing problems, we'd do our best to help.

这篇关于SSH部署密钥的GitHub限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆