本文档介绍了执行特定 Secure Web Proxy 操作所需的 Identity and Access Management (IAM) 权限。本文还介绍了如何创建自定义 IAM 角色,以及如何为该角色分配管理各种 Secure Web Proxy 资源所需的权限。
权限
下表列出了在 Secure Web Proxy 中执行特定操作所需的权限。如需了解详情,请参阅 IAM 权限参考。
| 操作 | 资源 | 权限(方法) |
|---|---|---|
| 创建政策 | 网关安全政策 | networksecurity.gatewaySecurityPolicies.create |
| 删除政策 | 网关安全政策 | networksecurity.gatewaySecurityPolicies.delete |
| 检索政策 | 网关安全政策 | networksecurity.gatewaySecurityPolicies.get |
| 列出政策 | 网关安全政策 | networksecurity.gatewaySecurityPolicies.list |
| 更新政策 | 网关安全政策 | networksecurity.gatewaySecurityPolicies.update |
| 创建规则 | 网关安全政策规则 | networksecurity.gatewaySecurityPolicyRules.create |
| 删除规则 | 网关安全政策规则 | networksecurity.gatewaySecurityPolicyRules.delete |
| 检索规则 | 网关安全政策规则 | networksecurity.gatewaySecurityPolicyRules.get |
| 列出规则 | 网关安全政策规则 | networksecurity.gatewaySecurityPolicyRules.list |
| 更新规则 | 网关安全政策规则 | networksecurity.gatewaySecurityPolicyRules.update |
| 检索操作 | 操作 | networksecurity.operations.get |
| 创建 TLS 检查政策 | TLS 检查政策 | networksecurity.tlsInspectionPolicies.create |
| 删除 TLS 检查政策 | TLS 检查政策 | networksecurity.tlsInspectionPolicies.delete |
| 检索 TLS 检查政策 | TLS 检查政策 | networksecurity.tlsInspectionPolicies.get |
| 列出 TLS 检查政策 | TLS 检查政策 | networksecurity.tlsInspectionPolicies.list |
| 更新 TLS 检查政策 | TLS 检查政策 | networksecurity.tlsInspectionPolicies.update |
| 将 TLS 检查政策附加到 Secure Web Proxy 政策 | TLS 检查政策 | networksecurity.tlsInspectionPolicies.use |
| 创建网址列表 | 网址列表 | networksecurity.urlLists.create |
| 删除网址列表 | 网址列表 | networksecurity.urlLists.delete |
| 检索网址列表 | 网址列表 | networksecurity.urlLists.get |
| 列出所有网址列表 | 网址列表 | networksecurity.urlLists.list |
| 更新网址列表 | 网址列表 | networksecurity.urlLists.update |
| 将网址列表附加到 Secure Web Proxy 规则 | 网址列表 | networksecurity.urlLists.use |
| 配置和管理 Secure Web Proxy 实例 | 各种 Certificate Manager、Compute Engine、Secure Web Proxy、Resource Manager 和 Cloud Monitoring 资源 |
|
| 创建、更新或删除遥测政策 | 遥测政策 |
|
| 检索或列出遥测政策 | 遥测政策 |
|
| 在 Cloud Trace 中查看分布式跟踪记录 | 跟踪记录 |
|
| 写入或导出分布式轨迹 span | 跟踪记录 |
|
角色
如需获得预配安全 Web 代理实例所需的权限,请让管理员向您授予项目的以下 IAM 角色:
- 如需配置政策和预配 Secure Web Proxy 实例,您需要具备Compute Network Admin 角色 (
roles/compute.networkAdmin)。 - 如需上传显式 Secure Web Proxy TLS 证书,您需要具备Certificate Manager Editor 角色 (
roles/certificatemanager.editor) - 如需配置分布式跟踪和遥测政策:Network Services Admin 角色 (
roles/networkservices.admin) 或 Compute Network Admin 角色 (roles/compute.networkAdmin) - 如需在 Cloud Trace 中查看跟踪记录范围,您需要拥有 Cloud Trace User 角色 (
roles/cloudtrace.user) - 如需将轨迹跨度导出到 Cloud Trace,请向以下服务账号授予 Cloud Trace Agent 角色 (
roles/cloudtrace.agent):- Compute Engine 服务代理:
service-PROJECT_NUMBER@compute-system.iam.gserviceaccount.com - 网络安全服务代理:
service-PROJECT_NUMBER@gcp-sa-networksecurity.iam.gserviceaccount.com - 客户端虚拟机 (VM) 服务账号(如果客户端应用生成或传播 span)
- Compute Engine 服务代理:
如需详细了解如何授予角色,请参阅管理对项目、文件夹和组织的访问权限。
您也可以通过自定义角色或其他预定义角色来获取所需的权限。
可选:如果您有一组用户负责管理 Compute Engine 组织安全政策,请向他们授予 Compute Organization Security Policy Admin 角色 (roles/compute.orgSecurityPolicyAdmin)。
如需详细了解项目角色和权限,请参阅以下内容:
后续步骤
- 如需完成初始任务以设置 Secure Web Proxy,请参阅初始设置步骤。