Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SNP-style virtual attestations, restoring code update tests #6770

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 74 additions & 1 deletion doc/schemas/gov_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,29 @@
},
"type": "object"
},
"VirtualAttestationMeasurement": {
"format": "hex",
"pattern": "^[a-f0-9]64$",
"type": "string"
},
"VirtualAttestationMeasurement_to_CodeStatus": {
"items": {
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/VirtualAttestationMeasurement"
},
{
"$ref": "#/components/schemas/CodeStatus"
}
]
},
"maxItems": 2,
"minItems": 2,
"type": "array"
},
"type": "array"
},
"base64string": {
"format": "base64",
"type": "string"
Expand Down Expand Up @@ -1331,7 +1354,7 @@
"info": {
"description": "This API is used to submit and query proposals which affect CCF's public governance tables.",
"title": "CCF Governance API",
"version": "4.5.0"
"version": "4.5.1"
},
"openapi": "3.0.0",
"paths": {
Expand Down Expand Up @@ -2153,6 +2176,56 @@
}
}
},
"/gov/kv/nodes/virtual/host_data": {
"get": {
"deprecated": true,
"operationId": "GetGovKvNodesVirtualHostData",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Sha256Digest_to_string"
}
}
},
"description": "Default response description"
},
"default": {
"$ref": "#/components/responses/default"
}
},
"summary": "This route is auto-generated from the KV schema.",
"x-ccf-forwarding": {
"$ref": "#/components/x-ccf-forwarding/sometimes"
}
}
},
"/gov/kv/nodes/virtual/measurements": {
"get": {
"deprecated": true,
"operationId": "GetGovKvNodesVirtualMeasurements",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VirtualAttestationMeasurement_to_CodeStatus"
}
}
},
"description": "Default response description"
},
"default": {
"$ref": "#/components/responses/default"
}
},
"summary": "This route is auto-generated from the KV schema.",
"x-ccf-forwarding": {
"$ref": "#/components/x-ccf-forwarding/sometimes"
}
}
},
"/gov/kv/proposals": {
"get": {
"deprecated": true,
Expand Down
4 changes: 2 additions & 2 deletions doc/schemas/node_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@
"format": {
"$ref": "#/components/schemas/QuoteFormat"
},
"mrenclave": {
"measurement": {
"$ref": "#/components/schemas/string"
},
"node_id": {
Expand Down Expand Up @@ -858,7 +858,7 @@
"info": {
"description": "This API provides public, uncredentialed access to service and node state.",
"title": "CCF Public Node API",
"version": "4.11.0"
"version": "4.12.0"
},
"openapi": "3.0.0",
"paths": {
Expand Down
2 changes: 1 addition & 1 deletion include/ccf/ds/quote_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace ccf
std::vector<uint8_t> endorsements;
/// UVM endorsements (SNP-only)
std::optional<std::vector<uint8_t>> uvm_endorsements;
/// Endorsed TCB (hex-encoded)
/// Endorsed TCB (hex-encoded) (SNP-only)
std::optional<std::string> endorsed_tcb = std::nullopt;
};

Expand Down
Loading
Loading