Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit a235894

Browse files
committed
#50 Add a sequence diagram
This diagram shows the sequencial interaction of the main components for a scan. Note: Full arrows are syncronous calls. Half arrows areasynchronou calls. This is theeasier notation from UML 1.x. The file is edited with PlatnUML: https://plantuml.com/ The rendered image is also commited so one does not need to install UMLet first to view it. Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
1 parent b22da56 commit a235894

File tree

4 files changed

+151
-0
lines changed

4 files changed

+151
-0
lines changed

docs/uml/_copyright.ipuml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
right footer **©** 2020 iteratec GmbH

docs/uml/_iteratecTheme.ipuml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
' http://plantuml.com/skinparam
2+
' https://plantuml-documentation.readthedocs.io/en/latest/formatting/all-skin-params.html
3+
4+
!define hellblau #cde6f5
5+
!define mittelblau #91c3e6
6+
!define tuerkisblau #008cd2
7+
!define kobaltblau #001eff
8+
!define lavendel #e6bedc
9+
!define iteragenta #bd218e
10+
!define dunkelpurpur #731964
11+
!define gelbbraun #ebd7be
12+
!define sand #e1c39b
13+
14+
skinparam backgroundColor white
15+
16+
skinparam default {
17+
ArrowColor black
18+
BackgroundColor white
19+
FontColor black
20+
FontName SansSerif
21+
FontSize 10
22+
Shadowing false
23+
}
24+
25+
skinparam activity {
26+
BorderColor dunkelpurpur
27+
StartColor kobaltblau
28+
EndColor iteragenta
29+
BarColor lavendel
30+
}
31+
32+
skinparam usecase {
33+
ActorBackgroundColor lavendel
34+
ActorBorderColor iteragenta
35+
BorderColor dunkelpurpur
36+
}
37+
38+
skinparam class {
39+
BackgroundColor hellblau
40+
BorderColor tuerkisblau
41+
}
42+
43+
skinparam package {
44+
BackgroundColor white
45+
BorderColor dunkelpurpur
46+
}
47+
48+
skinparam stereotype {
49+
CBackgroundColor mittelblau
50+
ABackgroundColor lavendel
51+
IBackgroundColor gelbbraun
52+
EBackgroundColor lightgray
53+
}
54+
55+
skinparam component {
56+
BackgroundColor lavendel
57+
BorderColor iteragenta
58+
InterfaceBackgroundColor mittelblau
59+
InterfaceBorderColor tuerkisblau
60+
Style uml2
61+
}
62+
63+
skinparam note {
64+
BackgroundColor gelbbraun
65+
BorderColor sand
66+
}
67+
68+
skinparam state {
69+
BackgroundColor lavendel
70+
BorderColor dunkelpurpur
71+
StartColor kobaltblau
72+
EndColor iteragenta
73+
}
74+
75+
skinparam sequence {
76+
ActorBackgroundColor lavendel
77+
ActorBorderColor dunkelpurpur
78+
GroupBackgroundColor hellblau
79+
LifeLineBackgroundColor lavendel
80+
LifeLineBorderColor dunkelpurpur
81+
ParticipantBackgroundColor hellblau
82+
ParticipantBorderColor mittelblau
83+
}
84+
85+
skinparam CollectionsBackgroundColor hellblau
86+
skinparam CollectionsBorderColor mittelblau

docs/uml/sequence_overview.png

41.5 KB
Loading

docs/uml/sequence_overview.puml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
@startuml sequence_overview
2+
!include _iteratecTheme.ipuml
3+
!include _copyright.ipuml
4+
5+
skinparam shadowing false
6+
skinparam componentStyle uml2
7+
8+
actor kubectl
9+
10+
box "secureCodeBox"
11+
participant Operator
12+
participant Scanner <<Container>>
13+
participant Lurcher <<Sidecar>>
14+
participant Minio
15+
participant Parser
16+
collections ReadOnlyHooks
17+
collections ReadAndWriteHooks
18+
end box
19+
20+
participant Target
21+
22+
activate Target
23+
activate Minio
24+
25+
kubectl -\ Operator : start scan
26+
activate Operator
27+
Operator -> Scanner : run job
28+
activate Scanner
29+
activate Lurcher
30+
Scanner -> Target : scan
31+
Lurcher -\ Scanner : read data
32+
Lurcher -\ Minio : store raw results
33+
Scanner <-- Target
34+
Operator <-- Scanner
35+
deactivate Scanner
36+
deactivate Lurcher
37+
38+
Operator -> Parser : run job
39+
activate Parser
40+
Parser -> Minio : read raw results
41+
Parser <-- Minio
42+
Parser -> Minio : store JSON findings
43+
Parser <-- Minio
44+
Operator <-- Parser
45+
deactivate Parser
46+
47+
Operator -> ReadAndWriteHooks
48+
activate ReadAndWriteHooks
49+
ReadAndWriteHooks -> Minio : read issues
50+
ReadAndWriteHooks <-- Minio
51+
Operator <-- ReadAndWriteHooks
52+
deactivate ReadAndWriteHooks
53+
54+
Operator -> ReadOnlyHooks
55+
activate ReadOnlyHooks
56+
ReadOnlyHooks -> Minio : read issues
57+
ReadOnlyHooks <-- Minio
58+
ReadOnlyHooks -> Minio : write issues
59+
ReadOnlyHooks <-- Minio
60+
Operator <-- ReadOnlyHooks
61+
deactivate ReadOnlyHooks
62+
63+
deactivate Operator
64+
@enduml

0 commit comments

Comments
 (0)