Skip to content

Commit

Permalink
feat: Add WAF to Pages Diagrams (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
apburnes authored Sep 25, 2024
1 parent cc80562 commit 6c690b2
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
Binary file modified out/diagrams/pages/public_customer_site_requests.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion out/diagrams/pages/public_customer_site_requests.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified out/diagrams/pages/public_flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion out/diagrams/pages/public_flow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions source/diagrams/pages/public_customer_site_requests.mmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ flowchart TB
aws_load_balancer[Load Balancer / Router <br/> AWS Application Load Balancer]:::processStyle
pages_proxy[Pages Proxy Application <br/> *NGINX]:::processStyle
pages_builder[Site Builder <br/> Generates Site Files]:::processStyle
waf[Web Application Firewall]:::processStyle

%% Databases
s3[(Published Website <br/> File Storage <br/> *AWS S3)]:::dbStyle
Expand All @@ -34,8 +35,9 @@ flowchart TB
webhook[Automated Webhook<br/>Starts Build]:::processStyle

%% Public Flow
user -- Site Web Request <br /> HTTPS/443 --> public_auth --> aws_cdn
aws_cdn -- Site Web Response <br /> HTTPS/443 --> public_auth -- Site Web Response <br /> HTTPS/443 --> user
user -- Site Web Request <br /> HTTPS/443 --> public_auth --> waf --> aws_cdn
waf -- Site Web Response <br /> HTTPS/443 --> public_auth -- Site Web Response <br /> HTTPS/443 --> user
aws_cdn --> waf
aws_cdn -- Site Web Request <br /> HTTPS/443 --> aws_load_balancer
aws_load_balancer -- Site Web Response <br /> HTTPS/443 --> aws_cdn
aws_load_balancer -- Site Web Request <br /> HTTPS/443 --> pages_proxy
Expand Down Expand Up @@ -78,6 +80,7 @@ flowchart TB

subgraph aws_com[AWS Commercial cloud]
subgraph cg_platform_2[cloud.gov platform]
waf
aws_cdn
end
end
Expand Down
8 changes: 7 additions & 1 deletion source/diagrams/pages/public_flow.mmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ flowchart TB
aws_load_balancer[Load Balancer / Router <br/> AWS Application Load Balancer]:::processStyle
pages_proxy[Pages Proxy Application <br/> *NGINX]:::processStyle

%% Services
waf[Web Application Firewall]:::processStyle

%% Decisions
is_cached{Is request cached}:::decisionStyle

%% Databases
s3[(Object Store <br/> *AWS S3)]:::dbStyle

%% Flow
user -- Views Static Content <br/> HTTPS/443 --> is_cached
user -- Views Static Content <br/> HTTPS/443 --> waf
waf -- Views Static Content <br/> HTTPS/443 --> is_cached
is_cached -- Yes --> aws_cdn
is_cached -- No --> aws_load_balancer
aws_cdn -- Proxy Request <br /> HTTPS/443 --> aws_load_balancer
Expand All @@ -32,6 +36,8 @@ flowchart TB

%% Layout
subgraph AWS Commercial Cloud
waf
is_cached
subgraph cloud.gov platform
aws_cdn
end
Expand Down

0 comments on commit 6c690b2

Please sign in to comment.