Skip to content

Commit f7f4000

Browse files
authored
Log initial node attestation (#7256) (#7261)
1 parent e58a76b commit f7f4000

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8-
## [6.0.12]
9-
10-
[6.0.12]: https://github.com/microsoft/CCF/releases/tag/ccf-6.0.12
11-
12-
### Fixed
13-
14-
- Correctly validate the full AMD ASK endorsement chain (#7233)
15-
168
## [6.0.11]
179

1810
[6.0.11]: https://github.com/microsoft/CCF/releases/tag/ccf-6.0.11
1911

2012
### Added
2113

2214
- Added `ccf.gov.validateConstitution` function to JS API, which can be used to confirm some basic properties of a proposed constitution (it is a string, parseable by our JS interpreter, exporting functions named `validate`, `resolve` and `apply` with the correct number of arguments). This is called in the default sample constitution's `set_constitution.validate`.
15+
- Added logging of the initial node attestation value ("Initial node attestation...") (#7256).
16+
17+
### Fixed
18+
19+
- Correctly validate the full AMD ASK endorsement chain (#7233)
2320

2421
## [6.0.10]
2522

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "ccf"
7-
version = "6.0.12"
7+
version = "6.0.11"
88
authors = [
99
{ name="CCF Team", email="CCF-Sec@microsoft.com" },
1010
]

src/node/node_state.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,12 @@ namespace ccf
439439
// synchronously with the call to pal::generate_quote
440440
this->quote_info = qi;
441441

442+
auto b64encoded_quote = ccf::crypto::b64url_from_raw(quote_info.quote);
443+
nlohmann::json jq;
444+
to_json(jq, quote_info.format);
445+
LOG_INFO_FMT(
446+
"Initial node attestation ({}): {}", jq.dump(), b64encoded_quote);
447+
442448
if (quote_info.format == QuoteFormat::amd_sev_snp_v1)
443449
{
444450
// Use endorsements retrieved from file, if available

0 commit comments

Comments
 (0)