mirror of https://github.com/status-im/consul.git
contrib: add CA manager states diagram
This commit is contained in:
parent
28d4b2316a
commit
2e2156a8bb
|
@ -101,3 +101,14 @@ Periodic (or background) opeartions are started automatically by the Consul lead
|
|||
####TODO:
|
||||
- sequence diagram for leaf signing
|
||||
- sequence diagram for CA cert rotation
|
||||
|
||||
## CAManager states
|
||||
|
||||
This section is a work in progress
|
||||
|
||||
TODO: style the diagram to match the others, and add some narative text to describe the
|
||||
diagram.
|
||||
|
||||
![CA Mananger states](./state-machine.svg)
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
stateDiagram-v2
|
||||
|
||||
[*] --> Uninitialized
|
||||
Uninitialized --> Initializing : InitializeCA
|
||||
Uninitialized --> Reconfig : UpdateConfiguration
|
||||
Reconfig --> Uninitialized : return
|
||||
|
||||
# Initialized can transition to any state
|
||||
Initialized --> Renew : RenewIntermediate
|
||||
Initialized --> Uninitialized : Stop
|
||||
Initialized --> Reconfig : UpdateConfiguration
|
||||
Initialized --> Initializing : INVALID
|
||||
|
||||
# Initialized is set using validate=false
|
||||
Uninitialized --> Initialized : INVALID
|
||||
Reconfig --> Initialized : return
|
||||
Initializing --> Initialized : InitializeCA complete
|
||||
Renew --> Initialized : return
|
||||
|
||||
# Uninitialized is set using validate=false
|
||||
Renew --> Uninitialized : Stop
|
||||
Reconfig --> Uninitialized : Stop
|
||||
Initializing --> Uninitialized : Stop
|
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 20 KiB |
Loading…
Reference in New Issue