feat: new flow
This commit is contained in:
parent
78317cd316
commit
f8e06297b2
@ -26,19 +26,22 @@ The architecture looks like this:
|
|||||||
```mermaid
|
```mermaid
|
||||||
architecture-beta
|
architecture-beta
|
||||||
group user(internet)[End User PC]
|
group user(internet)[End User PC]
|
||||||
|
group dvms(internet)[DVM Server]
|
||||||
group home(logos:aws-s3)[Private Server]
|
group home(logos:aws-s3)[Private Server]
|
||||||
group cloud(cloud)[Public Servers]
|
group cloud(cloud)[Public Servers]
|
||||||
|
|
||||||
service browser(internet)[Electron App] in user
|
service browser(internet)[Electron App] in user
|
||||||
service aw(disk)[Activity Watch] in user
|
service aw(disk)[Activity Watch] in user
|
||||||
|
|
||||||
service dvm(logos:aws-ec2)[DVM] in home
|
service dvm(logos:aws-ec2)[DVM] in dvms
|
||||||
|
service pow[PoW API] in home
|
||||||
service k(logos:aws-ec2)[Kimai] in home
|
service k(logos:aws-ec2)[Kimai] in home
|
||||||
service db(database)[Database] in home
|
service db(database)[Database] in home
|
||||||
|
|
||||||
browser:R -- L:aw
|
browser:R -- L:aw
|
||||||
dvm:T -- B:db
|
dvm:T -- B:pow
|
||||||
dvm:T -- B:k
|
pow:T -- B:k
|
||||||
|
pow:T -- B:db
|
||||||
dvm:T -- B:relay
|
dvm:T -- B:relay
|
||||||
dvm:T -- B:blossom
|
dvm:T -- B:blossom
|
||||||
|
|
||||||
|
@ -8,39 +8,34 @@ Kind numbers are all based on a "2029" root, which is the [BIP-39 word for "work
|
|||||||
|
|
||||||
|Kind|Name|Type|Comments|
|
|Kind|Name|Type|Comments|
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
|2029000|POST Client|Gift-Wrapped|Register a POW client|
|
|2029|POST Client|Gift-Wrapped|Register a POW client|
|
||||||
|2029001|Publish Instance|Public, replaceable|Announce POW instance|
|
|
||||||
|
|
||||||
|
|
||||||
## Admin (bootstrap) flow:
|
## SuperAdmin Signup flow:
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
sequenceDiagram
|
sequenceDiagram
|
||||||
autoNumber
|
autoNumber
|
||||||
participant d as DVM
|
participant d as POW Server
|
||||||
|
|
||||||
participant e as Electron App
|
participant e as Electron App
|
||||||
actor u as Administrator
|
actor u as SuperAdmin
|
||||||
|
|
||||||
Note over d: DVM started &<br>npub is written<br>to console
|
Note over d: DVM initiated <br>with relays &<br>Admin Npubs
|
||||||
|
Note over d: DVM nProfile<br>logged to console
|
||||||
|
e->>u: Download App
|
||||||
u->>e: Sign in
|
u->>e: Sign in
|
||||||
|
Note over e: Client npub <br>created
|
||||||
u->>e: "Add Org"
|
u->>e: "Add Org"
|
||||||
u->>e: Paste DVM <br>nprofile
|
u->>e: Paste DVM<br> nProfile
|
||||||
u->>e: Sign 000
|
u->>e: Sign 21120 <br> AUTH
|
||||||
e->>d: Kind 000
|
e->>d: POST CLIENT
|
||||||
Note over d: Validate admin<br>& update DB<br>with Client info
|
Note over d: Validate event<br>& update DB<br>with Client info
|
||||||
e->>d: GET INFO Job
|
|
||||||
d->>e: Job Response
|
d->>e: Job Response
|
||||||
|
|
||||||
Note over e: Client registered<br>& DVM validated
|
Note over e: Client registered
|
||||||
|
|
||||||
Note over e: If org info <br>unpublished:
|
|
||||||
e->>u: Notify admin
|
|
||||||
u->>e: Sign 001
|
|
||||||
Note over e: 001 published
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Note over e: Additional 21120's <br> signed by client
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user