mirror of
https://github.com/status-im/consul.git
synced 2025-02-19 17:14:37 +00:00
contrib: add CA manager states diagram
This commit is contained in:
parent
ab96fcc51d
commit
5b98336015
@ -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.
|
||||
|
||||

|
||||
|
||||
|
||||
|
23
contributing/service-mesh/ca/state-machine.mmd
Normal file
23
contributing/service-mesh/ca/state-machine.mmd
Normal file
@ -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
|
1
contributing/service-mesh/ca/state-machine.svg
Normal file
1
contributing/service-mesh/ca/state-machine.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 20 KiB |
Loading…
x
Reference in New Issue
Block a user