Audit Logging - GCP Pub/Sub
Prerequisites
Before configuring the Audit log Sink, please complete the following steps in Google Cloud:
- Create a PubSub topic and take note of its topic name, for example, "test-
auditlog"
- If you wish to enable customer-managed encryption keys (CMEK), do so
- Record the GCP Project ID that owns the topic
- Set up a service account in the same project that trusts the Temporal internal service account to let Temporal write information to your account. Follow the instructions in the Temporal Cloud UI, there are two ways to set up this service account:
- Input the service account ID, GCP project ID and PubSub topic name
- Follow the instructions, manually set up a new service account
- Use the Terraform template to create the service account
- Input the service account ID, GCP project ID and PubSub topic name
Temporal Cloud UI
- In the Cloud UI, navigate to the Settings → Integration Page → Audit Log, confirm that you see Pub/Sub as a sink option
- Configure the Audit Log
- Choose Pub as Sink type
- Provide the following information
- Service account ID: [from Prerequisite 3]
- GCP Project ID: [from Prerequisite 2]
- Pub/Sub topic name: [from Prerequisite 1]
- Once you have filled in the necessary values, please click on “Create” to get Audit Log Configured
- Please check back in few minutes to make sure everything set up successfully
More information
More details available in our public-facing documentation: https://docs.temporal.io/cloud/audit-logging