File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ message AttestationInfoResponse {
151151 string eth_rpc_url = 6 ;
152152 // KMS contract address from auth API
153153 string kms_contract_address = 7 ;
154+ // Raw platform provisioning ID
155+ bytes ppid = 8 ;
154156}
155157
156158// The Onboard RPC service.
Original file line number Diff line number Diff line change @@ -136,6 +136,11 @@ impl OnboardRpc for OnboardHandler {
136136 let app_info = verified
137137 . decode_app_info_ex ( false , & info. vm_config )
138138 . context ( "Failed to decode app info" ) ?;
139+ let ppid = verified
140+ . report
141+ . tdx_report ( )
142+ . map ( |report| report. ppid . to_vec ( ) )
143+ . unwrap_or_default ( ) ;
139144
140145 let ( eth_rpc_url, kms_contract_address) = match self . state . config . auth_api . get_info ( ) . await
141146 {
@@ -157,6 +162,7 @@ impl OnboardRpc for OnboardHandler {
157162 site_name : self . state . config . site_name . clone ( ) ,
158163 eth_rpc_url,
159164 kms_contract_address,
165+ ppid,
160166 } )
161167 }
162168
Original file line number Diff line number Diff line change @@ -177,6 +177,10 @@ <h3>Attestation Info (for on-chain registration)</h3>
177177 < span class ="info-label "> Attestation Mode:</ span >
178178 < span class ="info-value "> {{ attestationInfo.attestation_mode }}</ span >
179179 </ div >
180+ < div class ="info-row " v-if ="attestationInfo.ppid ">
181+ < span class ="info-label "> PPID:</ span >
182+ < span class ="info-value "> 0x{{ attestationInfo.ppid }}</ span >
183+ </ div >
180184 < div class ="info-row ">
181185 < span class ="info-label "> Device ID:</ span >
182186 < span class ="info-value "> 0x{{ attestationInfo.device_id }}</ span >
You can’t perform that action at this time.
0 commit comments