GoogleCloudPlatform / security-response-automation

Take automated actions against threats and vulnerabilities.
Apache License 2.0
208 stars 52 forks source link

Add automation to Log Findings to a project #203

Open onetwopunch opened 3 years ago

onetwopunch commented 3 years ago

If users want to do things like create a custom logging metric on filtered findings so they can create a Cloud Monitoring alert, they would need to listen on the router pubsub topic with a Cloud Function and emit a log message for each finding. We can encapsulate this logic into an automation that simply logs the finding to a pre-defined project with a pre-defined logName.