ב-Google Cloud יש ממשק לניהול זהויות והרשאות גישה (IAM), שמאפשר לתת גישה פרטנית למשאבים ספציפיים ב- Google Cloud ולמנוע גישה לא רצויה למשאבים אחרים. בדף הזה מוסבר על תפקידי IAM ב-Cloud Trace.
- במאמר ניהול הגישה לפרויקטים, לתיקיות ולארגונים מוסבר איך מקצים תפקידים ב-IAM למשתמש או לחשבון שירות.
- מידע נוסף על תפקידים מוגדרים מראש זמין במאמר IAM: תפקידים והרשאות.
- לא בטוחים איזה תפקיד מוגדר מראש לתת? תוכלו להיעזר במאמר בחירת תפקידים מוגדרים מראש.
שיטה מומלצת
כדי להקל על פתרון בעיות, מומלץ להקצות לכל האנשים, הקבוצות והדומיינים שאולי יצטרכו לצפות בנתוני מעקב בפרויקט את התפקיד Cloud Trace User (roles/cloudtrace.user) בפרויקט הזה. התפקיד הזה נותן לחשבונות ראשיים את ההרשאות שנדרשות להצגת נתוני מעקב.
הרשאות ותפקידים מוגדרים מראש
תפקידי IAM כוללים הרשאות ואפשר להקצות אותם למשתמשים, לקבוצות ולחשבונות שירות.
תפקידים ב-Cloud Trace
בטבלה הבאה מפורטים התפקידים המוגדרים מראש ב-Cloud Trace וההרשאות שמשויכות לתפקידים האלה:
| Role | Permissions |
|---|---|
Cloud Trace Admin( Provides full access to the Trace console and read-write access to traces. Lowest-level resources where you can grant this role:
|
|
Cloud Trace User( Provides full access to the Trace console and read access to traces. Lowest-level resources where you can grant this role:
|
|
Cloud Trace Agent( For service accounts. Provides ability to write traces by sending the data to Stackdriver Trace. Lowest-level resources where you can grant this role:
|
|
תפקידים ב-Telemetry API
בטבלה הבאה מפורטים התפקידים המוגדרים מראש עבור Telemetry (OTLP) API וההרשאות שמוגדרות להם:
| Role | Permissions |
|---|---|
Telemetry Admin( Admin role for telemetry |
|
Telemetry Editor( Editor role for telemetry |
|
Consumer Admin Beta( Grants permission management access to consumer resources. |
|
Cloud Telemetry Logs Writer Beta( Access to write logs. |
|
Cloud Telemetry Metrics Writer( Access to write metrics. |
|
Integrated Service Telemetry Logs Writer Beta( Allows an onboarded service to write log data to a destination. |
|
Integrated Service Telemetry Metrics Writer Beta( Allows an onboarded service to write metrics data to a destination. |
|
Integrated Service Telemetry Writer Beta( Allows an onboarded service to write all telemetry data to a destination. |
|
Integrated Service Telemetry Traces Writer Beta( Allows an onboarded service to write trace data to a destination. |
|
Cloud Telemetry Traces Writer( Access to write trace spans. |
|
Cloud Telemetry Writer( Full access to write all telemetry data. |
|
יצירת תפקידים מותאמים אישית
כדי ליצור תפקיד בהתאמה אישית שכולל הרשאות ל-Cloud Trace:
- כדי להעניק הרשאות רק ל-Cloud Trace API, בוחרים את ההרשאות שנדרשות לשיטת ה-API.
- כדי לתת תפקיד עם הרשאות ל-Cloud Trace API ולמסוף, בוחרים קבוצות הרשאות מתוך אחד מהתפקידים המוגדרים מראש של Cloud Trace.
- כדי להעניק את היכולת לכתוב נתוני מעקב, צריך לכלול את ההרשאות בתפקיד Cloud Trace Agent (
roles/cloudtrace.agent).
מידע נוסף על תפקידים בהתאמה אישית זמין במאמר יצירה וניהול של תפקידים בהתאמה אישית.
הרשאות לשיטות API
מידע על ההרשאות שנדרשות להפעלת קריאה ל-API מופיע במאמרי העזרה של Cloud Trace API: