רישום ביומן ביקורת

במאמר הזה מפורטים ה-methods שנבדקים ב-Certificate Manager.שירותי Google Cloud יוצרים יומני ביקורת שבהם מתועדים אירועי גישה למשאבי Google Cloud והפעולות שהאדמינים עשו בהם. אתם יכולים לקרוא מידע נוסף על יומני הביקורת של Cloud במאמרים האלה:

שם השירות

כדי להציג את יומני הביקורת של Certificate Manager:

  1. נכנסים לדף Logs Explorer במסוף Google Cloud :

    כניסה לדף Logs Explorer

  2. מעתיקים את השאילתה הבאה לשדה Query ב-Logs Explorer ולוחצים על Run query.

        protoPayload.serviceName="certificatemanager.googleapis.com"
      

קודי Method לפי סוג ההרשאה

לכל הרשאה ב-IAM יש מאפיין type עם enum שיכול להיות אחד מארבעת הערכים הבאים: ADMIN_READ,‏ ADMIN_WRITE,‏ DATA_READ או DATA_WRITE. כשקוראים ל-method, ב-Certificate Manager נוצר יומן ביקורת שהקטגוריה שלו תלויה במאפיין type של ההרשאה שנדרשת לביצוע ה-method. ה-methods שבשבילן צריך הרשאה ב-IAM עם הערכים DATA_READ‏, DATA_WRITE או ADMIN_READ במאפיין type יוצרות יומני ביקורת של Data Access. ה-methods שבשבילן צריך הרשאה ב-IAM עם הערכים ADMIN_WRITE במאפיין type יוצרות יומני ביקורת של Admin Activity.

ה-methods של ה-API ברשימה הבאה שמסומנות ב-(LRO) הן פעולות ממושכות. בדרך כלל, ה-methods האלה יוצרות שתי רשומות ביומן הביקורת: אחת כשהפעולה מתחילה ואחת כשהיא מסתיימת. אתם יכולים לקרוא מידע נוסף במאמר בנושא יומני ביקורת של פעולות ממושכות.
סוג ההרשאה Methods
ADMIN_READ google.cloud.certificatemanager.v1.CertificateManager.GetCertificate
google.cloud.certificatemanager.v1.CertificateManager.GetCertificateIssuanceConfig
google.cloud.certificatemanager.v1.CertificateManager.GetCertificateMap
google.cloud.certificatemanager.v1.CertificateManager.GetCertificateMapEntry
google.cloud.certificatemanager.v1.CertificateManager.GetDnsAuthorization
google.cloud.certificatemanager.v1.CertificateManager.GetTrustConfig
google.cloud.certificatemanager.v1.CertificateManager.ListCertificateIssuanceConfigs
google.cloud.certificatemanager.v1.CertificateManager.ListCertificateMapEntries
google.cloud.certificatemanager.v1.CertificateManager.ListCertificateMaps
google.cloud.certificatemanager.v1.CertificateManager.ListCertificates
google.cloud.certificatemanager.v1.CertificateManager.ListDnsAuthorizations
google.cloud.certificatemanager.v1.CertificateManager.ListTrustConfigs
google.cloud.certificatemanager.v2alpha.CertificateLifecycle.GetObservedCertificate
google.cloud.certificatemanager.v2alpha.CertificateLifecycle.ListObservedCertificates
google.longrunning.Operations.GetOperation
google.longrunning.Operations.ListOperations
ADMIN_WRITE google.cloud.certificatemanager.v1.CertificateManager.CreateCertificate (LRO)
google.cloud.certificatemanager.v1.CertificateManager.CreateCertificateIssuanceConfig (LRO)
google.cloud.certificatemanager.v1.CertificateManager.CreateCertificateMap (LRO)
google.cloud.certificatemanager.v1.CertificateManager.CreateCertificateMapEntry (LRO)
google.cloud.certificatemanager.v1.CertificateManager.CreateDnsAuthorization (LRO)
google.cloud.certificatemanager.v1.CertificateManager.CreateTrustConfig (LRO)
google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificate (LRO)
google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificateIssuanceConfig (LRO)
google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificateMap (LRO)
google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificateMapEntry (LRO)
google.cloud.certificatemanager.v1.CertificateManager.DeleteDnsAuthorization (LRO)
google.cloud.certificatemanager.v1.CertificateManager.DeleteTrustConfig (LRO)
google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificate (LRO)
google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificateIssuanceConfig (LRO)
google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificateMap (LRO)
google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificateMapEntry (LRO)
google.cloud.certificatemanager.v1.CertificateManager.UpdateDnsAuthorization (LRO)
google.cloud.certificatemanager.v1.CertificateManager.UpdateTrustConfig (LRO)
google.longrunning.Operations.CancelOperation
google.longrunning.Operations.DeleteOperation

יומני ביקורת של ממשק ה-API

במאמר בנושא ניהול הזהויות והרשאות הגישה (IAM) ל-Certificate Manager מוסבר איך מתבצעת הבדיקה של ההרשאות לכל method ואילו הרשאות נבדקות.

google.cloud.certificatemanager.v1.CertificateManager

יומני הביקורת הבאים משויכים ל-methods ששייכות ל-google.cloud.certificatemanager.v1.CertificateManager.

CreateCertificate

CreateCertificateIssuanceConfig

CreateCertificateMap

CreateCertificateMapEntry

CreateDnsAuthorization

CreateTrustConfig

DeleteCertificate

DeleteCertificateIssuanceConfig

DeleteCertificateMap

DeleteCertificateMapEntry

DeleteDnsAuthorization

DeleteTrustConfig

GetCertificate

GetCertificateIssuanceConfig

GetCertificateMap

GetCertificateMapEntry

GetDnsAuthorization

GetTrustConfig

ListCertificateIssuanceConfigs

ListCertificateMapEntries

ListCertificateMaps

ListCertificates

ListDnsAuthorizations

ListTrustConfigs

UpdateCertificate

UpdateCertificateIssuanceConfig

UpdateCertificateMap

UpdateCertificateMapEntry

UpdateDnsAuthorization

UpdateTrustConfig

google.cloud.certificatemanager.v2alpha.CertificateLifecycle

יומני הביקורת הבאים משויכים ל-methods ששייכות ל-google.cloud.certificatemanager.v2alpha.CertificateLifecycle.

GetObservedCertificate

ListObservedCertificates

google.longrunning.Operations

יומני הביקורת הבאים משויכים ל-methods ששייכות ל-google.longrunning.Operations.

CancelOperation

  • Method:‏ google.longrunning.Operations.CancelOperation
  • סוג יומן הביקורת: פעילות אדמין
  • הרשאות:
    • certificatemanager.operations.cancel - ADMIN_WRITE
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.longrunning.Operations.CancelOperation"

DeleteOperation

  • Method:‏ google.longrunning.Operations.DeleteOperation
  • סוג יומן הביקורת: פעילות אדמין
  • הרשאות:
    • certificatemanager.operations.delete - ADMIN_WRITE
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.longrunning.Operations.DeleteOperation"

GetOperation

  • Method:‏ google.longrunning.Operations.GetOperation
  • סוג יומן הביקורת: גישה לנתונים
  • הרשאות:
    • certificatemanager.operations.get - ADMIN_READ
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.longrunning.Operations.GetOperation"

ListOperations

  • Method:‏ google.longrunning.Operations.ListOperations
  • סוג יומן הביקורת: גישה לנתונים
  • הרשאות:
    • certificatemanager.operations.list - ADMIN_READ
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.longrunning.Operations.ListOperations"

אילו methods לא יוצרות יומני ביקורת

יכולות להיות כמה סיבות שב-method מסוימת לא נוצרים יומני ביקורת:

  • מדובר ב-method שיש בה נפח גבוה של יומנים, שיצירה שלהם עלולה לגרור עלויות גבוהות של אחסון ויצירה.
  • הערך של הביקורת נמוך.
  • כבר יש יומן ביקורת או יומן פלטפורמה אחרים שמכסים את ה-method.

ה-methods הבאות לא יוצרות יומני ביקורת:

  • google.cloud.location.Locations.GetLocation
  • google.cloud.location.Locations.ListLocations
  • google.longrunning.Operations.WaitOperation

שאילתות לדוגמה

תיאור השאילתה ביטוי
יומני ביקורת של Certificate Manager
logName="projects/PROJECT_ID/logs/cloudaudit.googleapis.com%2Factivity"
resource.type="certificate_manager_certificate"
protoPayload.serviceName="certificatemanager.googleapis.com"

המאמרים הבאים