בקרת גישה באמצעות IAM
בדף הזה מוסבר איך משתמשים בממשק לניהול זהויות והרשאות גישה (IAM) כדי לנהל את הגישה למשאבים ב-Colab Enterprise. כדי לנהל את הגישה למשאבים אחרים של Gemini Enterprise Agent Platform, קראו את המאמר בקרת גישה ל-Agent Platform באמצעות IAM.
שליטה בגישה ל-Notebook באמצעות IAM
אתם יכולים לנהל את הגישה ל-notebooks של Colab Enterprise (קובצי IPYNB) ברמת הפרויקט או לכל notebook בנפרד.
- כדי לתת גישה ל-Notebooks ברמת הפרויקט, מקצים תפקיד אחד או יותר לחשבון משתמש (משתמש, קבוצה או חשבון שירות).
- כדי לתת גישה ל-notebook ספציפי, מקצים תפקיד אחד או יותר לחשבון משתמש ב-notebook. איך מנהלים את הגישה ל-Notebook
הפעלת קוד שמקיים אינטראקציה עם שירותי Google Cloud אחרים
הגישה ל-Notebook מוגבלת להרשאות הספציפיות שקשורות לאינטראקציה עם ה-Notebook. לדוגמה, אתם יכולים לתת למשתמשים הרשאה ליצור Notebook, לכתוב בו קוד או למחוק אותו.
כדי להריץ קוד שמקיים אינטראקציה עם שירותי Google Cloud אחרים, צריך להשתמש באחת מהשיטות הבאות:
להריץ קוד בסביבת זמן ריצה שבה מופעלים פרטי הכניסה של משתמש הקצה. כלומר, ל-Notebook יש גישה לשירותי Google Cloud כמו למשתמש ב-Notebook.
מריצים קוד שמאמת את ה-notebook ומאשר לו לקיים אינטראקציה עם שירותיGoogle Cloud .
מידע נוסף זמין במאמר הרצת קוד שמקיים אינטראקציה עםGoogle Cloud.
סוגי תפקידים ב-IAM
יש סוגים שונים של תפקידי IAM שאפשר להשתמש בהם ב-Colab Enterprise:
תפקידים מוגדרים מראש מאפשרים לכם לתת קבוצה של הרשאות קשורות למשאבים של Colab Enterprise ברמת הפרויקט.
תפקידים בסיסיים (בעלים, עריכה וצפייה) מספקים בקרת גישה למשאבי Colab Enterprise ברמת הפרויקט, והם משותפים לכל שירותי Google Cloud.
תפקידים בהתאמה אישית מאפשרים לכם לבחור קבוצה ספציפית של הרשאות, ליצור תפקיד משלכם עם ההרשאות האלה ולהקצות את התפקיד למשתמשים בארגון.
כדי להוסיף, לעדכן או להסיר את התפקידים האלה בפרויקט ב-Colab Enterprise, קראו את המאמר ניהול הגישה לפרויקטים, לתיקיות ולארגונים.
תפקידים מוגדרים מראש ב-Colab Enterprise
Colab Enterprise הוא חלק מ-Agent Platform, והמשאבים של Colab Enterprise מנוהלים באמצעות Agent Platform API. לכן, אתם יכולים לתת לחשבונות משתמשים גישה למשאבים של Colab Enterprise באמצעות תפקידים ב-Agent Platform.
בטבלה הבאה מפורטים כל התפקידים המוגדרים מראש ב-Agent Platform.
כדי להשתמש בתפקידים מוגדרים מראש לפעולות נפוצות ב-Colab Enterprise, קראו את המאמרים אדמין ב-Colab Enterprise (
roles/aiplatform.colabEnterpriseAdmin) ומשתמש בגרסה הארגונית של Colab Enterprise (roles/aiplatform.colabEnterpriseUser).לתפקידים שקשורים לניהול סביבות זמן ריצה, ראו אדמין של סביבת זמן ריצה של Notebook (
roles/aiplatform.notebookRuntimeAdmin) ומשתמש של סביבת זמן ריצה של Notebook (roles/aiplatform.notebookRuntimeUser).התפקידים Agent Platform Administrator (
roles/aiplatform.admin), Agent Platform User (roles/aiplatform.user) ו-Agent Platform Viewer (roles/aiplatform.viewer) כוללים גם הרשאות ל-Colab Enterprise.
| Role | Permissions |
|---|---|
Agent Platform Administrator( Grants full access to all resources in Agent Platform. |
|
Aiplatform Editor( Editor role for aiplatform |
|
Agent Platform Express User Beta( Grants user access to Agent Platform Express. |
|
Agent Platform User( Grants access to use all resource in Agent Platform. |
|
Agent Platform Viewer( Grants access to view all resource in Agent Platform. |
|
Agent Platform Agents Admin Role Beta( Grants full administrative access to Agent Platform agents, including reading and managing their memories and their access control policies. |
|
Agent Platform Agents Creator Role Beta( Grants access to create and discover Agent Platform agents and their auth providers, and to create and list collaborative projects. |
|
Agent Platform Agents User Role Beta( Grants access to view agents and to create, update, cancel, and delete their tasks. |
|
Agent Platform Agents Viewer Role Beta( Grants read-only access to Agent Platform agents. |
|
Colab Enterprise Admin( Admin role of using colab enterprise. |
|
Colab Enterprise User( User role of using colab enterprise. |
|
Agent Platform Feature Store EntityType owner( Provides full access to all permissions for a particular entity type resource. Lowest-level resources where you can grant this role:
|
|
Agent Platform Express Admin Beta( Grants admin access to Agent Platform Express. |
|
Agent Platform Feature Store Admin( Grants full access to all resources in Agent Platform Feature Store. Lowest-level resources where you can grant this role:
|
|
Agent Platform Feature Store Data Viewer( This role provides permissions to read Feature data. Lowest-level resources where you can grant this role:
|
|
Agent Platform Feature Store Data Writer( This role provides permissions to read and write Feature data. Lowest-level resources where you can grant this role:
|
|
Agent Platform Feature Store Instance Creator( Administrator of Featurestore resources, but not the child resources under Featurestores. Lowest-level resources where you can grant this role:
|
|
Agent Platform Feature Store Resource Viewer( Viewer of all resources in Agent Platform Feature Store but cannot make changes. Lowest-level resources where you can grant this role:
|
|
Agent Platform Feature Store User Beta( Deprecated. Use featurestoreAdmin instead. |
|
Agent Platform Memory Bank Editor Role( Grants edit access to Agent Platform Memory Bank. |
|
Agent Platform Memory Bank User Role( Grants full user access to Agent Platform Memory Bank. |
|
Agent Platform Memory Bank Viewer Role( Grants viewer access to Agent Platform Memory Bank. |
|
Agent Platform Migration Service User( Grants access to use migration service in Agent Platform |
|
Notebook Executor User Beta( Grants users full access to schedules and notebook execution jobs. |
|
Notebook Runtime Admin( Grants full access to all runtime templates and runtimes in Notebook Service. |
|
Notebook Runtime User( Grants users permissions to create runtime resources using a runtime template and manage the runtime resources they created. |
|
Vertex AI Platform Provisioned Throughput Admin Beta( Grants access to use all resources related to Vertex AI Provisioned Throughput |
|
Vertex AI Platform Publisher Provisioned Throughput Admin Beta( Grants Publisher access to use all resources related to Vertex AI Provisioned Throughput Orders |
|
Vertex AI Platform Publisher Provisioned Throughput Viewer Beta( Grants Publisher access to view all resources related to Vertex AI Provisioned Throughput Orders |
|
Agent Platform Sessions Editor Role( Grants edit access to Agent Platform Sessions. |
|
Agent Platform Sessions User Role( Grants full user access to Agent Platform Sessions. |
|
Agent Platform Sessions Viewer Role( Grants viewer access to Agent Platform Sessions |
|
Agent Platform Tensorboard Web App User Beta( Grants access to the Vertex AI TensorBoard web app. |
|
Service agent roles
Service agent roles should only be granted to service agents.
| Role | Permissions |
|---|---|
Vertex AI Agent Sandbox Service Agent( Vertex AI Service Agent used to access Agent Sandbox managed resources in consumer project with restricted permissions. |
|
Vertex AI Batch Prediction Service Agent( Vertex AI Batch Prediction Service Agent for serving batch prediction requests. |
|
Vertex AI Colab Service Agent( Gives Vertex AI Colab the proper permissions to function. |
|
Vertex AI Custom Code Service Agent( Gives Vertex AI Custom Code the proper permissions. The aiplatform.customJobs.create IAM permission is highly privileged. Through Vertex AI Custom Training jobs, it effectively grants editor-level access to other services activated for the consumer project, such as GCS and BigQuery. |
|
Vertex AI Extension Custom Code Service Agent( Gives Vertex AI Extension that executes custom code the permissions it needs to function. |
|
Vertex AI Extension Service Agent( Gives Vertex AI Extension the permissions it needs to function. |
|
Vertex AI Model Monitoring Service Agent( Gives Vertex AI Model Monitoring the permissions it needs to function. |
|
Vertex AI Notebook Service Agent( Vertex AI Service Agent used to run Notebook managed resources in user project with restricted permissions. |
|
Vertex AI Online Prediction Service Agent( Gives Vertex AI Online Prediction the permissions it needs to function. |
|
Vertex AI RAG Data Service Agent( Vertex AI Service Agent used by Vertex RAG to access user imported data, Vertex AI, Document AI processors, and Vector Search in the project |
|
Vertex AI Rapid Eval Service Agent( Vertex AI Service Agent used by GenAI Rapid Evaluation Service to access publisher model endpoints in the user project |
|
Vertex AI Reasoning Engine Service Agent( Gives Vertex AI Reasoning Engine the proper permissions to function. The aiplatform.reasoningEngines.create IAM permission implies read access to the GCS objects of the consumer project through this service agent. |
|
Vertex AI Service Agent( Gives Vertex AI the permissions it needs to function. |
|
Vertex AI Telemetry Service Agent( Allows Vertex AI Telemetry Service Agent to access telemetry data. |
|
Vertex AI Tuning Service Agent( Vertex AI Service Agent used for tuning in user project. |
|
תפקידים בסיסיים
התפקידים הבסיסיים הישנים יותר של Google Cloudמשותפים לכל שירותי Google Cloud . התפקידים האלה הם "בעלים", "עריכה" ו"צפייה".
התפקידים הבסיסיים נותנים הרשאות בכל Google Cloud, לא רק ב-Colab Enterprise. לכן, כדאי להשתמש בתפקידים של Colab Enterprise כשאפשר.
תפקידים בהתאמה אישית
אם תפקידי ה-IAM שמוגדרים מראש ל-Colab Enterprise לא מתאימים לצרכים שלכם, אתם יכולים להגדיר תפקידים בהתאמה אישית. תפקידים בהתאמה אישית מאפשרים לכם לבחור קבוצה ספציפית של הרשאות, ליצור תפקיד משלכם עם ההרשאות האלה ולהקצות את התפקיד למשתמשים בארגון. מידע נוסף מופיע במאמר הסבר על תפקידים בהתאמה אישית ב-IAM.
סוכני שירות ל-Colab Enterprise
כדי לגשת למשאבים בשמכם, Colab Enterprise יוצר ומשתמש באופן אוטומטי בסוכני שירות. כשיוצרים סוכן שירות, מוקצה לו תפקיד מוגדר מראש בפרויקט.
בטבלה הבאה מפורטים סוכני השירות של Colab Enterprise, כתובות האימייל שלהם והתפקידים שלהם:
| שם | משמש ל: | כתובת האימייל | תפקיד |
|---|---|---|---|
| סוכן שירות של Vertex AI | היכולות של Agent Platform | service-PROJECT_NUMBER@gcp-sa-aiplatform.iam.gserviceaccount.com |
roles/aiplatform.serviceAgent |
| סוכן שירות Vertex AI Colab | נותנת ל-Colab Enterprise את ההרשאות המתאימות לפעול | service-PROJECT_NUMBER@gcp-sa-vertex-nb.iam.gserviceaccount.com |
roles/aiplatform.colabServiceAgent |
| סוכן השירות של Vertex AI Notebook | הפעלת משאבים שמנוהלים על ידי Notebook בפרויקט של המשתמש עם הרשאות מוגבלות | service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com |
roles/aiplatform.notebookServiceAgent |
אם תסירו את תפקידי ברירת המחדל של סוכני השירות של Colab Enterprise, המערכת של Colab Enterprise תוכל להקצות מחדש את התפקידים האלה באופן אוטומטי כדי להבטיח שהשירות ימשיך לפעול בלי הפרעות. כדי להשבית את שירות Colab Enterprise, צריך להשבית את ממשקי ה-API הרלוונטיים במקום להסיר תפקידים.
שיקולי אבטחה לגבי הרשאות ב-Colab Enterprise
כשמשתמש יוצר notebook ב-Colab Enterprise, הוא מקבל באופן אוטומטי את התפקיד בעלי הקוד (roles/dataform.codeOwner) ב-notebook הזה. הקצאת התפקיד הזו ברמת המשאב נפרדת מכל תפקידי ה-IAM ברמת הפרויקט.
ב-IAM, כללי המדיניות מאורגנים באופן היררכי:
- למשתמש יכול להיות תפקיד במדיניות ה-IAM של הפרויקט, שמופץ באופן אוטומטי לכל המשאבים בפרויקט.
- למשתמש יכול להיות גם תפקיד במדיניות של משאב ספציפי, כמו תיקיית Notebook מסוימת.
למשתמש יש גישה למשאב אם יש לו תפקיד במדיניות המשאב או בכל אחת ממדיניות ההורה שלו.
כדי לבטל לגמרי את הגישה של משתמש, האדמינים יכולים לבצע את הפעולות הבאות:
- מסירים את התפקידים של המשתמש מכל אחד מה-notebooks. מידע נוסף זמין במאמר הסרת הגישה ברמת המשאב מ-Notebook.
- ליצור מדיניות דחייה ב-IAM כדי לבטל את כל ההרשאות של המשתמש בכל המשאבים בפרויקט.
מכיוון שקובצי ה-notebook ב-Colab Enterprise מאוחסנים ב-Dataform, חשוב להביא בחשבון את ההשלכות הבאות על האבטחה של משתמשים שיש להם גישה לקובצי ה-notebook האלה:
- ההרשאות של Dataform ברמת הפרויקט קובעות את הרשאות הגישה ל-Notebooks. משתמשים עם ההרשאה
dataform.repositories.list, שכלולה בתפקידים הרגילים של Colab Enterprise כמו משתמש ב-Colab Enterprise (roles/aiplatform.colabEnterpriseUser) ואדמין ב-Colab Enterprise (roles/aiplatform.colabEnterpriseAdmin), יכולים לראות את כל קובצי ה-notebook בפרויקטGoogle Cloud , גם אם הם לא יצרו את קובצי ה-notebook האלה או שהם לא שותפו איתם. כדי להגביל את הגישה, אפשר ליצור תפקידים בהתאמה אישית שלא כוללים את ההרשאהdataform.repositories.list. - תפקידים רגילים ב-Colab Enterprise, כמו
roles/aiplatform.colabEnterpriseUserו-roles/aiplatform.colabEnterpriseAdmin, כוללים גם אתdataform.repositories.create, והיוצרים מקבלים גישת בעלים או אדמין ברמת המשאב ב-notebooks ובמאגרים שהם יוצרים. כך המשתמשים יכולים ליצור או לעדכן מאגרים של Dataform בפרויקטGoogle Cloud שמפנים למשאבים שמשותפים עם סוכן השירות של Dataform, כולל סודות של Secret Manager, קישורים למאגרי Git של Developer Connect וקטגוריות של Cloud Storage שמשמשות לתמונות מצב של מאגרים, בלי צורך בהרשאות IAM ישירות במשאבים האלה. כדי לאבטח את פרטי הכניסה ואת הקטגוריות של האחסון, צריך להגביל את ההרשאות ליצירה, לעריכה ולקימפול של מאגרים ב-Dataform למשתמשים מהימנים, לאכוףconstraints/dataform.restrictGitRemotesולהגדיר את ההרשאות של סוכן השירות של Dataform רק למשאבים הנדרשים. למידע נוסף, קראו את המאמרים גישה משותפת למשאבים דרך סוכן השירות של Dataform וגישה לסודות במהלך התקנת החבילה.
מידע נוסף זמין במאמר שיקולי אבטחה לגבי הרשאות ב-Dataform.