From da153d9dfb5d158a56371f922ee540c19a787577 Mon Sep 17 00:00:00 2001 From: "Sebastian H. Gabrielli" Date: Wed, 3 Jan 2024 16:26:50 +0100 Subject: [PATCH] Add server C2 diagram --- c2-server.puml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 c2-server.puml diff --git a/c2-server.puml b/c2-server.puml new file mode 100644 index 0000000..7860888 --- /dev/null +++ b/c2-server.puml @@ -0,0 +1,32 @@ +@startuml OmegaV.no v2 C2 Server Diagram +'!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml +!include + +Container_Ext(InternalWebsite, "Intranett", "Single page application", "Internal system, change member info, add OBS and Komp wares, etc.") +Container_Ext(PublicWebsite, "Public website", "Staticly generate page", "Front posts, information, and component search.") + +System_Boundary(c2ApiServer, "API server system") { + System_Boundary(c2Server, "API server") { + Container(ApiServer, "API server", "Webserver framework", "System to handle REST API calls") + Container(SSOCache, "JWT validation", "Software system", "Validates user provided authorization tokens") + } + System_Boundary(c2Db, "Database") { + Container(DB, "Database", "PostgreSQL", "Stores all the data") + } +} + +System_Ext(SSO, "SSO", "Authentication and authroization provider") + +' Website connections +Rel_Right(InternalWebsite, ApiServer, "Uses", "REST API") +Rel_Left(PublicWebsite, ApiServer, "Uses", "REST API") + +' Internal connections +Rel(ApiServer, DB, "Uses", "SQL / ORM") +Rel(ApiServer, SSOCache, "Uses", "Function call") +Rel(SSOCache, SSO, "Fetch initial information & update cached signing keys", "HTTPS") + + + + +@enduml \ No newline at end of file