GCloudCLI icon
If icon
SlackIncomingWebhook icon
Schedule icon

Google Cloud Armor Security Policy Block Spike and DDoS Sentinel

Monitors Google Cloud Armor security policies for sudden surges in blocked HTTP requests indicating active DDoS or WAF attacks.

Categories
CloudInfrastructure

How it works

This workflow uses the Kestra GCloudCLI plugin to query Google Cloud Monitoring for edge load balancer security policy telemetry (loadbalancing.googleapis.com/https/backend_request_count). Google Cloud Armor inspects edge traffic to mitigate distributed denial-of-service (DDoS) attacks, cross-site scripting (XSS), SQL injection, and automated bot scrapes. When blocked request volumes spike significantly above normal baselines, web applications are experiencing an active volumetric assault or bot scanning wave. This workflow aggregates blocked request metrics and immediately escalates the anomaly to security operations.

What you get

  • Real-time detection of volumetric attacks and WAF rule triggers at the Google Cloud edge.
  • Protects backend compute resources and databases from absorbing malicious traffic.
  • Quantitative metrics on blocked edge request volume.

Who it's for

  • DevSecOps Engineers and Security Operations Center (SOC) Responders.
  • Cloud Infrastructure Leads maintaining public-facing Google Cloud web applications.

Why orchestrate this with Kestra

  • Native GCloud CLI Automation: Direct integration using Kestra service account secrets.
  • Proactive Threat Detection: Detects edge attacks early before backend services feel pressure.
  • Direct Team Alerts: Routes incident reports directly to security response channels.

Prerequisites

  • Google Cloud Project with Cloud Armor policies attached to HTTPS Load Balancers.
  • Secrets GCP_SERVICE_ACCOUNT and SLACK_WEBHOOK configured in Kestra.

Quick start

  1. Import the blueprint.
  2. Input GCP project ID and Cloud Armor policy name.
  3. Run the workflow to inspect current blocked request rates.

How to extend

  • Query Cloud Logging for the top originating client IP addresses and geographical countries.
  • Automatically update Cloud Armor policy rules to rate-limit offending IP CIDR blocks.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.