Skip to content

Commit

Permalink
fix: vts: ensure nonce is in the result
Browse files Browse the repository at this point in the history
The nonce was being added to the initial appraisal result during
GetEvidence. However, that result is later replaced by one generated by
the scheme handler, and the nonce was lost (the handler does not have
direct access to the nonce).

Signed-off-by: Sergei Trofimov <[email protected]>
  • Loading branch information
setrofim committed Sep 21, 2023
1 parent ae1d91f commit 8e8ef3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vts/trustedservices/trustedservices_grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ func (o *GRPC) GetAttestation(
if err != nil {
return o.finalize(appraisal, err)
}
appraisedResult.Nonce = appraisal.Result.Nonce
appraisal.Result = appraisedResult
appraisal.InitPolicyID()

Expand Down

0 comments on commit 8e8ef3f

Please sign in to comment.