Skip to content

Commit

Permalink
Dont sign quotes including added OE header
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Weiße <[email protected]>
  • Loading branch information
daniel-weisse committed Sep 2, 2024
1 parent e831965 commit 93a13aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions coordinator/clientapi/clientapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -785,12 +785,13 @@ func (a *ClientAPI) verifyAndSignQuote(
) (signature []byte, tcbStatus string, err error) {
// Add OE quote header if it is not present
// e.g. we are dealing with a raw SGX quote generated by Gramine or Occlum
oeQuote := quote
if util.IsRawSGXQuote(quote) {
quote = util.AddOEQuoteHeader(quote)
oeQuote = util.AddOEQuoteHeader(quote)
}

// Verify the quote
report, err := verify(quote)
report, err := verify(oeQuote)
if err != nil && !errors.Is(err, attestation.ErrTCBLevelInvalid) {
return nil, "", &QuoteVerifyError{err}
}
Expand Down

0 comments on commit 93a13aa

Please sign in to comment.