Skip to content

Commit 040bb1a

Browse files
Copilotachamayoucjen1-msft
authored
Backport #7696: Add missing QuoteVerificationResult cases to release/6.x (#7697)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com> Co-authored-by: cjen1-msft <190360281+cjen1-msft@users.noreply.github.com>
1 parent db0f402 commit 040bb1a

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1212
### Fixed
1313

1414
- Fix race condition when initialising a ledger secret's commit secret (#7689)
15+
- Add missing cases for `FailedInvalidCPUID` and `FailedInvalidTcbVersion` in quote verification error handling (#7696).
1516

1617
## [6.0.23]
1718

src/node/rpc/node_frontend.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,15 @@ namespace ccf
201201
case QuoteVerificationResult::FailedInvalidHostData:
202202
return std::make_pair(
203203
HTTP_STATUS_UNAUTHORIZED, "Quote host data is not authorised");
204-
case ccf::QuoteVerificationResult::FailedUVMEndorsementsNotFound:
204+
case QuoteVerificationResult::FailedUVMEndorsementsNotFound:
205205
return std::make_pair(
206206
HTTP_STATUS_UNAUTHORIZED, "UVM endorsements are not authorised");
207+
case QuoteVerificationResult::FailedInvalidCPUID:
208+
return std::make_pair(
209+
HTTP_STATUS_UNAUTHORIZED, "Quote CPUID is unknown");
210+
case QuoteVerificationResult::FailedInvalidTcbVersion:
211+
return std::make_pair(
212+
HTTP_STATUS_UNAUTHORIZED, "Quote TCB version is too low");
207213
default:
208214
return std::make_pair(
209215
HTTP_STATUS_INTERNAL_SERVER_ERROR,

0 commit comments

Comments
 (0)