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).
This commit is contained in:
Malte Poll 2023-03-06 17:11:14 +01:00 committed by GitHub
parent 34330b1228
commit 62ea224d36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,