# yarafe/test architecture

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

- Interactive diagram: https://gitdiagram.com/yarafe/test
- Repository: https://github.com/yarafe/test

## Overview

This repository is a collection of Fortinet cloud deployment templates, with a documented Azure NAT Gateway-to-FortiGate migration workflow and a separate monthly CVE reporting utility. The migration proceeds from choosing a FortiGate topology through changing subnet routing and configuring outbound access to removing NAT Gateway. The README documents the migration stages and deployment choices; sampled source shows the CVE utility’s fetch-and-report behavior. Other template capabilities are visible in the tree but were not inspected, so their internal relationships are omitted.

Main entry points: [`README.md`](https://github.com/yarafe/test/blob/main/README.md) (Choose topology), [`latest-month-cves/fetch_cves.py`](https://github.com/yarafe/test/blob/main/latest-month-cves/fetch_cves.py) (Fetch and process CVEs), [`FGT/A-Single-VM`](https://github.com/yarafe/test/tree/main/FGT/A-Single-VM) (Single VM), [`FGT/Active-Passive-SDN`](https://github.com/yarafe/test/tree/main/FGT/Active-Passive-SDN) (Active-Passive SDN)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_migration["NAT Migration"]
  node_choose["Choose topology<br/>[README.md]"]
  node_detach["Detach NAT Gateway<br/>[README.md]"]
  node_route["Route subnet traffic<br/>[README.md]"]
  node_configure["Configure outbound access<br/>[README.md]"]
  node_remove_nat["Remove NAT Gateway<br/>[README.md]"]
end

subgraph group_fortigate["FortiGate Topologies"]
  node_single["Single VM"]
  node_sdn["Active-Passive SDN"]
  node_ap_elb["Active-Passive ELB"]
  node_aa_elb["Active-Active ELB"]
end

subgraph group_cve["CVE Reporting"]
  node_cve_fetch["Fetch and process CVEs<br/>[fetch_cves.py]"]
  node_cve_csv["CVE CSV report"]
  node_cve_html["Critical CVE report"]
end

node_operator(("Network operator"))
node_azure_nat["Azure NAT Gateway"]
node_azure_routes["Azure subnet routes"]
node_nvd["NVD CVE API"]

node_operator -->|"selects"| node_choose
node_choose -->|"offers option"| node_single
node_choose -->|"offers option"| node_sdn
node_choose -->|"offers option"| node_ap_elb
node_choose -->|"offers option"| node_aa_elb
node_operator -->|"detaches"| node_detach
node_azure_nat -->|"is detached"| node_detach
node_operator -->|"associates subnets"| node_route
node_route -->|"points traffic"| node_azure_routes
node_operator -->|"configures"| node_configure
node_configure -->|"uses guidance"| node_single
node_configure -->|"uses guidance"| node_sdn
node_configure -->|"uses guidance"| node_ap_elb
node_configure -->|"uses guidance"| node_aa_elb
node_operator -->|"deletes"| node_remove_nat
node_remove_nat -->|"removes"| node_azure_nat
node_cve_fetch -->|"requests CVEs"| node_nvd
node_cve_fetch -->|"writes CSV"| node_cve_csv
node_cve_fetch -->|"writes HTML"| node_cve_html

click node_choose "https://github.com/yarafe/test/blob/main/README.md"
click node_detach "https://github.com/yarafe/test/blob/main/README.md"
click node_route "https://github.com/yarafe/test/blob/main/README.md"
click node_configure "https://github.com/yarafe/test/blob/main/README.md"
click node_remove_nat "https://github.com/yarafe/test/blob/main/README.md"
click node_single "https://github.com/yarafe/test/tree/main/FGT/A-Single-VM"
click node_sdn "https://github.com/yarafe/test/tree/main/FGT/Active-Passive-SDN"
click node_ap_elb "https://github.com/yarafe/test/tree/main/FGT/Active-Passive-ELB-ILB"
click node_aa_elb "https://github.com/yarafe/test/tree/main/FGT/Active-Active-ELB-ILB"
click node_cve_fetch "https://github.com/yarafe/test/blob/main/latest-month-cves/fetch_cves.py"
click node_cve_csv "https://github.com/yarafe/test/tree/main/latest-month-cves/reports"
click node_cve_html "https://github.com/yarafe/test/tree/main/latest-month-cves/reports"

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_choose,node_detach,node_route,node_configure,node_remove_nat toneBlue
class node_single,node_sdn,node_ap_elb,node_aa_elb toneAmber
class node_cve_fetch,node_cve_csv,node_cve_html,node_azure_routes,node_nvd toneMint
class node_operator,node_azure_nat toneIndigo
```

## Components

### NAT Migration

- [Choose topology](https://github.com/yarafe/test/blob/main/README.md): `README.md`
- [Detach NAT Gateway](https://github.com/yarafe/test/blob/main/README.md): `README.md`
- [Route subnet traffic](https://github.com/yarafe/test/blob/main/README.md): `README.md`
- [Configure outbound access](https://github.com/yarafe/test/blob/main/README.md): `README.md`
- [Remove NAT Gateway](https://github.com/yarafe/test/blob/main/README.md): `README.md`

### FortiGate Topologies

- [Single VM](https://github.com/yarafe/test/tree/main/FGT/A-Single-VM): `FGT/A-Single-VM`
- [Active-Passive SDN](https://github.com/yarafe/test/tree/main/FGT/Active-Passive-SDN): `FGT/Active-Passive-SDN`
- [Active-Passive ELB](https://github.com/yarafe/test/tree/main/FGT/Active-Passive-ELB-ILB): `FGT/Active-Passive-ELB-ILB`
- [Active-Active ELB](https://github.com/yarafe/test/tree/main/FGT/Active-Active-ELB-ILB): `FGT/Active-Active-ELB-ILB`

### CVE Reporting

- [Fetch and process CVEs](https://github.com/yarafe/test/blob/main/latest-month-cves/fetch_cves.py): `latest-month-cves/fetch_cves.py`
- [CVE CSV report](https://github.com/yarafe/test/tree/main/latest-month-cves/reports): `latest-month-cves/reports`
- [Critical CVE report](https://github.com/yarafe/test/tree/main/latest-month-cves/reports): `latest-month-cves/reports`

### Other components

- **Network operator**
- **Azure NAT Gateway**
- **Azure subnet routes**
- **NVD CVE API**

## Connections

- Network operator → Choose topology: selects (evidence: `README.md`)
- Choose topology → Single VM: offers option (evidence: `README.md`)
- Choose topology → Active-Passive SDN: offers option (evidence: `README.md`)
- Choose topology → Active-Passive ELB: offers option (evidence: `README.md`)
- Choose topology → Active-Active ELB: offers option (evidence: `README.md`)
- Network operator → Detach NAT Gateway: detaches (evidence: `README.md`)
- Azure NAT Gateway → Detach NAT Gateway: is detached (evidence: `README.md`)
- Network operator → Route subnet traffic: associates subnets (evidence: `README.md`)
- Route subnet traffic → Azure subnet routes: points traffic (evidence: `README.md`)
- Network operator → Configure outbound access: configures (evidence: `README.md`)
- Configure outbound access → Single VM: uses guidance (evidence: `README.md`)
- Configure outbound access → Active-Passive SDN: uses guidance (evidence: `README.md`)
- Configure outbound access → Active-Passive ELB: uses guidance (evidence: `README.md`)
- Configure outbound access → Active-Active ELB: uses guidance (evidence: `README.md`)
- Network operator → Remove NAT Gateway: deletes (evidence: `README.md`)
- Remove NAT Gateway → Azure NAT Gateway: removes (evidence: `README.md`)
- Fetch and process CVEs → NVD CVE API: requests CVEs (evidence: `latest-month-cves/fetch_cves.py`)
- Fetch and process CVEs → CVE CSV report: writes CSV (evidence: `latest-month-cves/fetch_cves.py`)
- Fetch and process CVEs → Critical CVE report: writes HTML (evidence: `latest-month-cves/fetch_cves.py`)
