##Overall enforcer flow:
-
Enable all Audit logs for Dialoglow API.
-
Create org-level Cloud log router/log-sink sending to pub/sub topic.
-
Exclude the logs generated by Cloud Functions' service account.
-
Logs included on filter:
protoPayload.authenticationInfo.principalEmail!="[email protected]" AND protoPayload.serviceName="dialogflow.googleapis.com" AND (Webhooks.CreateWebhook OR Webhooks.UpdateWebhook OR Agents.CreateAgent OR Agents.UpdateAgent OR Fulfillments.UpdateFulfillment )
-
And make sure to grant Publisher permissions to the logging service account.
Or
- Run
create_sink.sh
-
-
Create Cloud Function as a subscription of the Pub/sub topic and implement Cloud function with main.py code
Or
- Run
deploy.sh