Integration Connectors 的 IAM 角色和权限
预定义角色可提供对特定 Google Cloud 资源的精细访问权限。 这些角色由 Google 创建和维护。Google 会根据需要自动更新其权限,例如 Google Cloud 添加新功能或服务时。
下表列出了 Integration Connectors 的所有预定义 IAM 角色:| Role | Permissions |
|---|---|
Connector Admin( Full access to all resources of Connectors Service. |
|
Connectors Editor( Editor role for connectors |
|
Connectors Viewer( Read-only access to Connectors all resources. |
|
Custom Connectors Admin( Custom Connector is a global resource which creates custom connector within the given target project. This role grants Admin access to Custom Connector resources |
|
Custom Connector Viewer( Custom Connector is a global resource which creates custom connector within the given target project. This role grants Read-only access to Custom Connector & Custom Connector Version resources. |
|
Connectors Endpoint Attachment Admin( Endpoint Attachment is a regional resource which creates PSC connection endpoint for the given PSC Service Attachment. This role grants Admin access to Connectors Endpoint Attachment resources. |
|
Connectors Endpoint Attachment Viewer( Endpoint Attachment is a regional resource which creates PSC connection endpoint for the given PSC Service Attachment. This role grants Read-only access to Connectors Endpoint Attachment resources |
|
Connectors Event Subscriptions Admin( Event Subscription is a regional resource which creates subscriptions on events for a given connection within the given target project. This role grants Admin access to Connectors Subscription resources |
|
Connectors Event Subscriptions Viewer( Event Subscription is a regional resource which creates subscriptions on events for a given connection within the given target project. This role grants Read-only access to Event Subscription resources. |
|
Connector Invoker( Full Access to invoke all operations on Connections. |
|
Connector Event Listener( Full Access to listen events by connections. |
|
Connectors Managed Zone Admin( Managed Zone is a global resource which creates Cloud DNS Peering Zone with the given target project. This role grants Admin access to Connectors Managed Zone resources |
|
Connectors Managed Zone Viewer( Managed Zone is a global resource which creates Cloud DNS Peering Zone with the given target project. This role grants Read-only access to Connectors Managed Zone resources. |
|
Service agent roles
Service agent roles should only be granted to service agents.
| Role | Permissions |
|---|---|
Connectors Platform Service Agent( Grants Connectors Platform service account to manage customer resources |
|
如需详细了解预定义角色,请参阅角色和权限。如需有关选择最合适的预定义角色的帮助,请参阅选择预定义角色。
连接服务账号的权限
连接会以您在创建连接时指定的服务账号身份运行。
如需创建或更新连接,发出请求的主账号必须对连接的服务账号拥有 iam.serviceAccounts.actAs 权限。主体是调用 Integration Connectors 的用户或服务账号(例如,通过 Google Cloud 控制台、Terraform 或 API)。无论身份验证类型如何,此要求都适用于每个连接。
如需授予此权限,请为连接的服务账号分配 Service Account User 角色 (roles/iam.serviceAccountUser)。如需了解详情,请参阅管理对服务账号的访问权限和服务账号身份验证角色。
如果主账号没有该权限,请求会失败并显示 FAILED_PRECONDITION 错误,前提条件违规类型为 SERVICE_ACCOUNT_PERMISSION_DENIED,并且不会创建或更新连接。现有连接会继续运行。