From e68c2d4d548d3208c46cd185357b32451a613e41 Mon Sep 17 00:00:00 2001 From: Joel Speed Date: Sun, 7 Jun 2020 16:00:41 +0100 Subject: [PATCH] Add plantuml request flow diagram --- docs/assets/images/request-flow.plantuml | 39 ++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 docs/assets/images/request-flow.plantuml diff --git a/docs/assets/images/request-flow.plantuml b/docs/assets/images/request-flow.plantuml new file mode 100644 index 00000000..fcbae810 --- /dev/null +++ b/docs/assets/images/request-flow.plantuml @@ -0,0 +1,39 @@ +@startuml Request Flow + +start +:User makes request; + 'Redirect To HTTPS middleware, always installed' + partition RedirectToHTTPS { + if (Redirect To HTTPS Enabled) then (yes) + if (request is HTTP or X-Forwarded-Proto not HTTPS) then (yes) + :Return redirect to HTTPS; + stop + else (no) + endif + else (no) + endif + :Pass to next server; + } + + + if (GCP HealthCheck Enabled) then (yes) + 'GCP HealthCheck middleware, optionally installed' + partition GCPHealthCheck { + if (Request path is /liveness_check) then (yes) + :Return OK; + stop + else if (Request path is /readiness_check) then (yes) + :Return OK; + stop + else if (Path is / and user agent is "GoogleHC/1.0") then (yes) + :Return OK; + stop + else (no) + endif + } + else (no) + endif + +stop + +@enduml