Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Dokumen ini menjelaskan logging audit untuk Secret Manager.Layanan Google Cloud
membuat log audit yang mencatat aktivitas administratif dan akses dalam resource Google Cloud Anda.
Untuk informasi selengkapnya tentang Cloud Audit Logs, lihat referensi berikut:
Setiap izin IAM memiliki properti type, yang nilainya adalah enum
yang dapat berupa salah satu dari empat nilai: ADMIN_READ, ADMIN_WRITE,
DATA_READ, atau DATA_WRITE. Saat Anda memanggil metode, Secret Manager akan membuat log audit yang kategorinya bergantung pada properti type izin yang diperlukan untuk menjalankan metode.
Metode yang memerlukan izin IAM dengan nilai properti typeDATA_READ, DATA_WRITE, atau ADMIN_READ akan menghasilkan log audit Akses Data.
Metode yang memerlukan izin IAM dengan nilai properti type dari ADMIN_WRITE akan membuat log audit Aktivitas Admin.
Untuk mengetahui informasi tentang cara dan izin mana yang dievaluasi untuk setiap metode, lihat dokumentasi Identity and Access Management untuk Secret Manager.
google.cloud.location.Locations
Log audit berikut dikaitkan dengan metode yang termasuk dalam google.cloud.location.Locations.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-18 UTC."],[],[],null,["# Secret Manager Audit Logging\n\nThis document describes audit logging for Secret Manager. Google Cloud services\ngenerate audit logs that record administrative and access activities within your Google Cloud resources.\nFor more information about Cloud Audit Logs, see the following:\n\n- [Types of audit logs](/logging/docs/audit#types)\n- [Audit log entry structure](/logging/docs/audit#audit_log_entry_structure)\n- [Storing and routing audit logs](/logging/docs/audit#storing_and_routing_audit_logs)\n- [Cloud Logging pricing summary](/stackdriver/pricing#logs-pricing-summary)\n- [Enable Data Access audit logs](/logging/docs/audit/configure-data-access)\n\n\u003cbr /\u003e\n\nService name\n------------\n\nSecret Manager audit logs use the service name `secretmanager.googleapis.com`.\nFilter for this service: \n\n```gdscript\n protoPayload.serviceName=\"secretmanager.googleapis.com\"\n \n```\n\n\u003cbr /\u003e\n\nMethods by permission type\n--------------------------\n\nEach IAM permission has a `type` property, whose value is an enum\nthat can be one of four values: `ADMIN_READ`, `ADMIN_WRITE`,\n`DATA_READ`, or `DATA_WRITE`. When you call a method,\nSecret Manager generates an audit log whose category is dependent on the\n`type` property of the permission required to perform the method.\n\nMethods that require an IAM permission with the `type` property value\nof `DATA_READ`, `DATA_WRITE`, or `ADMIN_READ` generate\n[Data Access](/logging/docs/audit#data-access) audit logs.\n\nMethods that require an IAM permission with the `type` property value\nof `ADMIN_WRITE` generate\n[Admin Activity](/logging/docs/audit#admin-activity) audit logs.\n\nAPI interface audit logs\n------------------------\n\nFor information about how and which permissions are evaluated for each method,\nsee the Identity and Access Management documentation for Secret Manager.\n\n### `google.cloud.location.Locations`\n\nThe following audit logs are associated with methods belonging to\n`google.cloud.location.Locations`.\n\n#### `GetLocation`\n\n- **Method** : `google.cloud.location.Locations.GetLocation` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `secretmanager.locations.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.location.Locations.GetLocation\"\n ` \n\n#### `ListLocations`\n\n- **Method** : `google.cloud.location.Locations.ListLocations` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `secretmanager.locations.list - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.location.Locations.ListLocations\"\n ` \n\n### `google.cloud.secretmanager.v1.SecretManagerService`\n\nThe following audit logs are associated with methods belonging to\n`google.cloud.secretmanager.v1.SecretManagerService`.\n\n#### `AccessSecretVersion`\n\n- **Method** : `google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `secretmanager.versions.access - DATA_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion\"\n ` \n\n#### `AddSecretVersion`\n\n- **Method** : `google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `secretmanager.versions.add - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion\"\n ` \n\n#### `CreateSecret`\n\n- **Method** : `google.cloud.secretmanager.v1.SecretManagerService.CreateSecret` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `secretmanager.secrets.create - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.secretmanager.v1.SecretManagerService.CreateSecret\"\n ` \n\n#### `DeleteSecret`\n\n- **Method** : `google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `secretmanager.secrets.delete - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret\"\n ` \n\n#### `DestroySecretVersion`\n\n- **Method** : `google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `secretmanager.versions.destroy - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion\"\n ` \n\n#### `DisableSecretVersion`\n\n- **Method** : `google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `secretmanager.versions.disable - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion\"\n ` \n\n#### `EnableSecretVersion`\n\n- **Method** : `google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `secretmanager.versions.enable - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion\"\n ` \n\n#### `GetIamPolicy`\n\n- **Method** : `google.cloud.secretmanager.v1.SecretManagerService.GetIamPolicy` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `secretmanager.secrets.getIamPolicy - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.secretmanager.v1.SecretManagerService.GetIamPolicy\"\n ` \n\n#### `GetSecret`\n\n- **Method** : `google.cloud.secretmanager.v1.SecretManagerService.GetSecret` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `secretmanager.secrets.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.secretmanager.v1.SecretManagerService.GetSecret\"\n ` \n\n#### `GetSecretVersion`\n\n- **Method** : `google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `secretmanager.versions.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion\"\n ` \n\n#### `ListSecretVersions`\n\n- **Method** : `google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `secretmanager.versions.list - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions\"\n ` \n\n#### `ListSecrets`\n\n- **Method** : `google.cloud.secretmanager.v1.SecretManagerService.ListSecrets` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `secretmanager.secrets.list - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.secretmanager.v1.SecretManagerService.ListSecrets\"\n ` \n\n#### `SetIamPolicy`\n\n- **Method** : `google.cloud.secretmanager.v1.SecretManagerService.SetIamPolicy` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `secretmanager.secrets.setIamPolicy - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.secretmanager.v1.SecretManagerService.SetIamPolicy\"\n ` \n\n#### `UpdateSecret`\n\n- **Method** : `google.cloud.secretmanager.v1.SecretManagerService.UpdateSecret` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `secretmanager.secrets.update - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.secretmanager.v1.SecretManagerService.UpdateSecret\"\n ` \n\nMethods that don't produce audit logs\n-------------------------------------\n\nA method might not produce audit logs for one or more of the following\nreasons:\n\n- It is a high volume method involving significant log generation and storage costs.\n- It has low auditing value.\n- Another audit or platform log already provides method coverage.\n\n\u003cbr /\u003e\n\nThe following methods don't produce audit logs:\n\n- `google.cloud.secretmanager.v1.SecretManagerService.TestIamPermissions`\n\nWhat's next\n-----------\n\n- Learn more about detecting threats in Secret Manager by watching a short YouTube [video on audit logging](https://www.youtube.com/watch?v=y5LL2xpzVNI&t=5s)."]]