How froggologies/gcp-terraform-prod-cloud-armor works
Project Type Analysis
This is a cloud infrastructure security project implementing Web Application Firewall (WAF) rules using Google Cloud Armor, deployed with Terraform. The project focuses on protecting web applications against common vulnerabilities using OWASP ModSecurity Core Rule Set.
Main Components
a. External Layer:
• Internet Traffic
• Malicious Users/Attacks
• Legitimate Users
b. Google Cloud Platform Components:
• Cloud Armor Security Policy
• External HTTP(S) Load Balancer
• Instance Group Manager
• Compute Instances (running OWASP Juice Shop)
• VPC Network
• Firewall Rules
[External Traffic] → [Cloud Armor] → [Load Balancer] → [Instance Group] → [Protected Application]
Specific Elements
a. Security Components:
• Cloud Armor WAF Rules (highlight preconfigured rules)
• Security Policy
• Firewall Rules
b. Network Components:
• VPC Network
• Subnet Configuration
• Load Balancer Components (frontend, backend service)
c. Compute Components:
• Managed Instance Group
• Instance Template
• Service Accounts
Important Details to Highlight
a. Security Flow:
• How traffic is filtered through Cloud Armor before reaching the load balancer
• Where WAF rules are applied
• Protected paths and attack vectors
b. Infrastructure Components:
• Relationship between the instance template and instance group
• Auto-scaling capabilities
• Network boundaries
Implementation Notes
• Clear hierarchical layout
• Proper grouping of related components
• Export to high-resolution formats
• Overall architecture (architecture.d2)
• Security flow (flow_security_test.d2)
• Infrastructure deployment flow (flow_terraform.d2)