本页面介绍了 Developer Connect 角色和权限。
Developer Connect 中的访问权限控制使用 Identity and Access Management (IAM)进行控制。通过 IAM,您可以为资源创建和 管理权限。 Google Cloud Developer Connect 提供了一组特定的预定义 IAM 角色,其中每个角色都包含一组适合特定类型的访问权限或操作的权限。我们建议您采用 最小权限安全原则, 并且仅授予对资源的必要访问权限。
预定义的 Developer Connect 角色
您可以通过角色为账号分配权限。下表列出了 Developer Connect 可用的 IAM 角色及其具备的权限:
IAM 文档包含所有预定义角色的 可搜索参考 。
| Role | Permissions |
|---|---|
Developer Connect Admin Beta( Full access to Developer Connect resources. |
|
Developer Connect Viewer Beta( Read-only access to Developer Connect resources. |
|
Developer Connect HTTP Proxy Writer Beta( Grants read and write access to connections through the HTTP Proxy. |
|
Developer Connect Git Proxy Reader Beta( Grants read-only access to repositories through the Git Proxy. |
|
Developer Connect Git Proxy User Beta( Grants read and write access to repositories through the Git Proxy. |
|
Developer Connect Insights Admin Beta( Admin access to Developer Connect Insights resources. |
|
Developer Connect Insights Config Agent Beta( Allow Developer Connect to access SDLC information. |
|
Developer Connect Insights Viewer Beta( Read-only access to Developer Connect Insights resources. |
|
Developer Connect OAuth Admin Beta( Grants read and write access to AccountConnector resources. |
|
Developer Connect OAuth User Beta( Grants read and write access to User resources, and read access to AccountConnectors. |
|
Developer Connect Read Token Accessor Beta( Grants access to Read-Only tokens (both PAT and short-lived). Also grants access to view the git repository link. |
|
Developer Connect Token Accessor Beta( Grants access to Read/Write and Read-Only tokens (both PAT and short-lived). Also grants access to view the git repository link. |
|
Developer Connect User Beta( Grants access to view the connection and to the features that interact with the actual repository such as reading content from the repository |
|
Service agent roles
Service agent roles should only be granted to service agents.
| Role | Permissions |
|---|---|
Developer Connect Service Agent( Gives the Developer Connect API Service Account access to necessary GCP resources. |
|
Developer Connect 服务帐号
Developer Connect 在与其他服务通信时,会使用 服务代理代表您执行任务。当您首次与 Developer Connect 互动(创建代码库连接或账号连接器)时,系统会自动创建此服务代理。
Developer Connect 服务代理的标识符如下所示,其中 PROJECT_NUMBER 是您的 Google Cloud 项目编号。
service-PROJECT_NUMBER@gcp-sa-devconnect.
您可以使用此标识符来授予或修改 IAM 角色和权限。
配置资源的访问权限
如需了解授予角色的具体步骤,请参阅 授予、更改和撤消对资源的访问权限。
后续步骤
- 了解 IAM。
- 连接到 GitHub 代码库。