Add server C2 diagram

This commit is contained in:
Sebastian H. Gabrielli 2024-01-03 16:26:50 +01:00
parent 1962199ddf
commit da153d9dfb

32
c2-server.puml Normal file
View File

@ -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 <C4/C4_Container>
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