Skip to content

Commit

Permalink
docs: updated puml diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
cinghioGithub committed Jun 14, 2024
1 parent cec2e61 commit 4f58f91
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions docs/protocols/join.puml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
'end title
autonumber

box "Platform"
box "IoT Platform"
participant TPM
participant "Attester\nAgent" as attester_agent
participant "EMBRAVE\nAgent" as attester_agent
endbox
participant "Join\nService" as join_service

'== LAK creation ==
TPM<-attester_agent: tpm2_createak
TPM<-attester_agent: Request for AK creation
TPM<-TPM: Generate AK

'== Start Join protocol ==
TPM<-attester_agent: request EK_cert
TPM->attester_agent: EK_cert
attester_agent->join_service: POST /api/request_join: AK pub, AK name, EK cert
attester_agent->join_service: POST /api/request_join: AK pub, AK name, EK cert\n IP address, port, Whitelist URI
note right
The attester notifies its presence.
The join server responds with a challenge.
Expand All @@ -31,9 +31,9 @@ end note
TPM is authentic
(validation of the EK certificate OK)
end note
join_service->join_service: challenge = tpm2_makecredential(EK_pub, nonce, AK_name)
join_service->join_service: challenge = TPM2_MakeCredential(EK_pub, nonce, AK_name)
attester_agent<-join_service: challenge
TPM<-attester_agent: tpm2_activatecredential
TPM<-attester_agent: TPM2_ActivateCredential
note left
tpm_activate credential verifies
the possession of AK_priv, EK_priv
Expand All @@ -43,7 +43,7 @@ end note
TPM<-TPM: activate_credential(EK_priv, challenge)
TPM->attester_agent: nonce
attester_agent->join_service: POST /api/confirm_credential: nonce
join_service->join_service: Update Attester credential in the DB
join_service->join_service: Store Attester credential in the DB
join_service->Verifier: notify a Verifier to start RA on the new Attester
' end

Expand Down
Loading

0 comments on commit 4f58f91

Please sign in to comment.