From 62ea224d360596df4dca7a1ccbbbe6f7bedfd7cb Mon Sep 17 00:00:00 2001 From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Mon, 6 Mar 2023 17:11:14 +0100 Subject: [PATCH] attestation: remove PCR[0] and PCR[10] from enterprise measurements (#1348) This will help the measurement generation done as part of internal/attestation/measurements/measurement-generator. It can currently replace measurements but not reformat the code (in cases where the number of measurements differs). --- .../measurements/measurements_enterprise.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/internal/attestation/measurements/measurements_enterprise.go b/internal/attestation/measurements/measurements_enterprise.go index b1c0502b2..adddf6504 100644 --- a/internal/attestation/measurements/measurements_enterprise.go +++ b/internal/attestation/measurements/measurements_enterprise.go @@ -269,15 +269,6 @@ func DefaultsFor(provider cloudprovider.Provider) M { } case cloudprovider.GCP: return M{ - 0: { - Expected: [32]byte{ - 0x0f, 0x35, 0xc2, 0x14, 0x60, 0x8d, 0x93, 0xc7, - 0xa6, 0xe6, 0x8a, 0xe7, 0x35, 0x9b, 0x4a, 0x8b, - 0xe5, 0xa0, 0xe9, 0x9e, 0xea, 0x91, 0x07, 0xec, - 0xe4, 0x27, 0xc4, 0xde, 0xa4, 0xe4, 0x39, 0xcf, - }, - WarnOnly: false, - }, 1: { Expected: [32]byte{ 0x74, 0x5f, 0x2f, 0xb4, 0x23, 0x5e, 0x46, 0x47, @@ -359,15 +350,6 @@ func DefaultsFor(provider cloudprovider.Provider) M { }, WarnOnly: false, }, - 10: { - Expected: [32]byte{ - 0x00, 0xfc, 0xb7, 0xc4, 0x4c, 0x98, 0x04, 0x1e, - 0xa1, 0xf4, 0xca, 0x50, 0xd6, 0xe5, 0x2b, 0x87, - 0xb1, 0xf8, 0xf4, 0x85, 0x13, 0x0d, 0x39, 0x4a, - 0x89, 0x97, 0x24, 0x29, 0x37, 0x67, 0x63, 0xd0, - }, - WarnOnly: true, - }, 11: { Expected: [32]byte{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,