From 39885ddf4ec11f9bb24eda93ec3246ad971e6850 Mon Sep 17 00:00:00 2001 From: Martin van Es <martin@mrvanes.com> Date: Tue, 8 Oct 2024 17:36:10 +0200 Subject: [PATCH] Add first sequence diagrams --- Enrollment_Endpoint.puml | 22 ++++++++++++++++++++++ Trust_Mark_Issuance_Endpoint.puml | 27 +++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 Enrollment_Endpoint.puml create mode 100644 Trust_Mark_Issuance_Endpoint.puml diff --git a/Enrollment_Endpoint.puml b/Enrollment_Endpoint.puml new file mode 100644 index 0000000..2af5b66 --- /dev/null +++ b/Enrollment_Endpoint.puml @@ -0,0 +1,22 @@ +@startuml +hide footbox +title Enrollment endpoint +entity Client as client +entity "Enroll\nendpoint" as endpoint +database Subordinates as subs +client -> endpoint: GET\nsub, entity_type +client <-- endpoint: GET Entity Configuration +endpoint -> endpoint: Checks +note left + ✓Trust Chain + ✓Trust Mark + ✓Entity id in its authority_hints +end note +group Yes + endpoint -> subs: Add Entity + client <-- endpoint: Fetch Entity Statement +end +group No + client <-- endpoint: Forbidden +end +@enduml diff --git a/Trust_Mark_Issuance_Endpoint.puml b/Trust_Mark_Issuance_Endpoint.puml new file mode 100644 index 0000000..f90fd1c --- /dev/null +++ b/Trust_Mark_Issuance_Endpoint.puml @@ -0,0 +1,27 @@ +@startuml +hide footbox +title Trust Mark Issuance endpoint? +entity Client as client +entity "Trust Mark\nendpoint" as endpoint +database "Trust marked\nentities" as tmes +client -> endpoint: GET\nPrivate key JWT +endpoint --> tmes: In list? +group Yes + client <-- endpoint: Trustmark +end +group No + endpoint -> endpoint: Checks + note left + ✓Trust Chain + ✓Trust Mark + ✓Entity id in its authority_hints + end note + group Yes + endpoint -> tmes: Add Entity + client <-- endpoint: Trustmark + end + group No + client <-- endpoint: Forbidden + end +end +@enduml -- GitLab