简体   繁体   English

限制在属于组织的特定项目中为特定 GCP 服务帐户创建密钥

[英]Restricting key creation for specific GCP Service account in specific project belonging to an organization

I have a requirement where I want to restrict certain service account from creating key (json/yaml file) but that restriction should only affect specific service account in a specific project which belongs to an organization.我有一个要求,我想限制某些服务帐户创建密钥(json/yaml 文件),但该限制应该只影响属于组织的特定项目中的特定服务帐户。

I did go through the following documentation , but It did not match the requirement of restricting only certain service account rather than all service account in that particular organization.我通过以下文档做了 go ,但它不符合仅限制特定服务帐户而不是该特定组织中的所有服务帐户的要求。

As far as I know, you can only restrict key creation on project level.据我所知,您只能在项目级别限制密钥创建。
Based on you configuration, in may be viable to restrict user's access to a Service Account - link .根据您的配置,限制用户访问服务帐户链接可能是可行的。
Another workaround would be to split your resources into smaller projects, so that they are easier to manage.另一种解决方法是将您的资源拆分为较小的项目,以便更易于管理。

If you think that policy restricting key creation for only selected service accounts should be available, you can file a Feature Request on Google Public Issue Tracker .如果您认为应该可以使用限制仅针对选定服务帐户创建密钥的政策,您可以在Google Public Issue Tracker上提交功能请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM