本頁面說明 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( Full access to Developer Connect resources. |
|
Developer Connect Viewer( 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( Grants read-only access to repositories through the Git Proxy. |
|
Developer Connect Git Proxy User( Grants read and write access to repositories through the Git Proxy. |
|
Developer Connect Insights Admin( Admin access to Developer Connect Insights resources. |
|
Developer Connect Insights Config Agent( Allow Developer Connect to access SDLC information. |
|
Developer Connect Insights Viewer( 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( 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 服務代理的 ID 如下,其中 PROJECT_NUMBER 是您的 Google Cloud 專案編號。
service-PROJECT_NUMBER@gcp-sa-devconnect.
您可以使用這個 ID 授予或修改 IAM 角色和權限。
設定資源存取權
如需授予角色的詳細步驟,請參閱「授予、變更及撤銷資源存取權」。