# ptsivakumar/az_waf_design architecture

> Architecture diagram of the GitHub repository ptsivakumar/az_waf_design, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ptsivakumar/az_waf_design
- Repository: https://github.com/ptsivakumar/az_waf_design

## Overview

This is an Azure WAF proof-of-concept bundle whose documented workflow is to provision Terraform state, apply platform policy, then deploy and test workload WAF resources. The README also describes reusable WAF modules and an Azure DevOps exclusion-reconciliation pipeline. The listed tree contains no implementation files for these layers, so their paths are null; edges reflect only README statements, not inspected code.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_provision["Provisioning"]
  node_bootstrap["State Bootstrap"]
  node_modules["WAF Modules"]
end

subgraph group_policy["Platform Policy"]
  node_platform["Policy Platform"]
  node_policydefs["Policy Definitions"]
end

subgraph group_workload["Workload WAF"]
  node_workloadstack["Workload Stack"]
  node_testapp["Test App"]
  node_appgw["Application Gateway"]
  node_frontdoor["Front Door"]
  node_lockdown["Lockdown"]
end

subgraph group_operations["Operations"]
  node_pipeline["DevOps Pipeline"]
  node_exclusions["Exclusion Reconciliation"]
  node_tests["Bypass Tests"]
  node_traffic["Traffic Generation"]
end

node_operator(("Operator"))
node_terraform["Terraform"]
node_azure["Azure"]

node_operator -->|"runs"| node_terraform
node_terraform -->|"applies first"| node_bootstrap
node_terraform -->|"applies second"| node_platform
node_terraform -->|"applies third"| node_workloadstack
node_platform -->|"consumes"| node_modules
node_workloadstack -->|"consumes"| node_modules
node_platform -->|"includes"| node_policydefs
node_workloadstack -->|"includes"| node_testapp
node_workloadstack -->|"includes"| node_appgw
node_workloadstack -->|"includes"| node_frontdoor
node_workloadstack -->|"includes"| node_lockdown
node_terraform -->|"provisions"| node_azure
node_pipeline -->|"reconciles"| node_exclusions
node_tests -->|"generates"| node_traffic

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_bootstrap,node_modules toneBlue
class node_platform,node_policydefs toneAmber
class node_workloadstack,node_testapp,node_appgw,node_frontdoor,node_lockdown toneMint
class node_pipeline,node_exclusions,node_tests,node_traffic toneRose
class node_operator,node_terraform,node_azure toneIndigo
```

## Components

### Provisioning

- **State Bootstrap**
- **WAF Modules**

### Platform Policy

- **Policy Platform**
- **Policy Definitions**

### Workload WAF

- **Workload Stack**
- **Test App**
- **Application Gateway**
- **Front Door**
- **Lockdown**

### Operations

- **DevOps Pipeline**
- **Exclusion Reconciliation**
- **Bypass Tests**
- **Traffic Generation**

### Other components

- **Operator**
- **Terraform**
- **Azure**

## Connections

- Operator → Terraform: runs (evidence: `README.md`)
- Terraform → State Bootstrap: applies first (evidence: `README.md`)
- Terraform → Policy Platform: applies second (evidence: `README.md`)
- Terraform → Workload Stack: applies third (evidence: `README.md`)
- Policy Platform → WAF Modules: consumes (evidence: `README.md`)
- Workload Stack → WAF Modules: consumes (evidence: `README.md`)
- Policy Platform → Policy Definitions: includes (evidence: `README.md`)
- Workload Stack → Test App: includes (evidence: `README.md`)
- Workload Stack → Application Gateway: includes (evidence: `README.md`)
- Workload Stack → Front Door: includes (evidence: `README.md`)
- Workload Stack → Lockdown: includes (evidence: `README.md`)
- Terraform → Azure: provisions (evidence: `README.md`)
- DevOps Pipeline → Exclusion Reconciliation: reconciles (evidence: `README.md`)
- Bypass Tests → Traffic Generation: generates (evidence: `README.md`)
