-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add images depicting the architecture
- Loading branch information
Showing
3 changed files
with
148 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@startuml | ||
|
||
!theme vibrant | ||
|
||
skinparam component { | ||
BackgroundColor<<propeller>> #004B5A | ||
} | ||
|
||
package "CI/CD Platform" { | ||
component "<color:#white>CLI</color>" as prop1 << propeller >> | ||
} | ||
|
||
package Kubernetes { | ||
component Application as app | ||
component ArgoCD | ||
component "Vault Sync (Job)" as vsync | ||
|
||
component "<color:#white>Image</color>" as prop2 << propeller >> | ||
|
||
ArgoCD ..> app: Manages | ||
ArgoCD ..> vsync: Manages (//PreSync// hook) | ||
} | ||
|
||
database PostgreSQL as db | ||
component Vault | ||
|
||
app --> db: Store data | ||
vsync <--> Vault: Transfer secrets | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
@startuml | ||
|
||
!theme vibrant | ||
|
||
participant Propeller #004B5A | ||
participant Vault | ||
participant PostgreSQL | ||
participant ArgoCD | ||
participant Application | ||
|
||
note over Application: Application uses user 1 | ||
|
||
activate Propeller | ||
|
||
Propeller -> Vault: Request active user | ||
activate Vault | ||
Vault --> Propeller: user 1 | ||
deactivate Vault | ||
|
||
Propeller -> Propeller: Generate random password | ||
|
||
Propeller -> PostgreSQL: Rotate user 2 password | ||
activate PostgreSQL | ||
PostgreSQL --> Propeller: Success | ||
deactivate PostgreSQL | ||
|
||
Propeller -> Vault: Update user 2 password | ||
activate Vault | ||
Vault --> Propeller: Success | ||
deactivate Vault | ||
|
||
Propeller -> Vault: Switch active user to user 2 | ||
activate Vault | ||
Vault --> Propeller: Success | ||
deactivate Vault | ||
|
||
Propeller -> ArgoCD: Trigger rollout | ||
activate ArgoCD | ||
ArgoCD -> Application: Sync | ||
activate Application | ||
ArgoCD --> Propeller: Success | ||
deactivate ArgoCD | ||
|
||
Application -> Vault: Request active user | ||
activate Vault | ||
Vault --> Application: user 2 | ||
deactivate Vault | ||
|
||
Application -> PostgreSQL: Connect with user 2 | ||
activate PostgreSQL | ||
PostgreSQL --> Application: Connection established | ||
deactivate PostgreSQL | ||
deactivate Application | ||
|
||
note over Application: Application uses user 2 | ||
|
||
loop Poll until rollout complete or timeout | ||
Propeller -> ArgoCD: Request rollout status | ||
activate ArgoCD | ||
ArgoCD --> Propeller: Status (pending/success/failed) | ||
deactivate ArgoCD | ||
end | ||
|
||
Propeller -> PostgreSQL: Rotate user 1 password | ||
activate PostgreSQL | ||
PostgreSQL --> Propeller: Success | ||
deactivate PostgreSQL | ||
|
||
Propeller -> Vault: Update user 1 password | ||
activate Vault | ||
Vault --> Propeller: Success | ||
deactivate Vault | ||
|
||
deactivate Propeller | ||
|
||
@enduml |