contrib: add CA manager states diagram

This commit is contained in:
Daniel Nephin 2021-07-16 16:48:46 -04:00
parent 28d4b2316a
commit 2e2156a8bb
3 changed files with 35 additions and 0 deletions

View File

@ -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)

View 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

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB