mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-11 23:49:30 -05:00
enforce pcr4
This commit is contained in:
parent
ef26917c5e
commit
a85777fd02
@ -517,6 +517,7 @@ func defaultConfigWithExpectedMeasurements(t *testing.T, conf *config.Config, cs
|
|||||||
conf.Provider.Azure.ResourceGroup = "test-resource-group"
|
conf.Provider.Azure.ResourceGroup = "test-resource-group"
|
||||||
conf.Provider.Azure.AppClientID = "test-client-secret-id"
|
conf.Provider.Azure.AppClientID = "test-client-secret-id"
|
||||||
conf.Provider.Azure.ClientSecretValue = "test-client-secret"
|
conf.Provider.Azure.ClientSecretValue = "test-client-secret"
|
||||||
|
conf.Provider.Azure.Measurements[4] = []byte("44444444444444444444444444444444")
|
||||||
conf.Provider.Azure.Measurements[8] = []byte("00000000000000000000000000000000")
|
conf.Provider.Azure.Measurements[8] = []byte("00000000000000000000000000000000")
|
||||||
conf.Provider.Azure.Measurements[9] = []byte("11111111111111111111111111111111")
|
conf.Provider.Azure.Measurements[9] = []byte("11111111111111111111111111111111")
|
||||||
case cloudprovider.GCP:
|
case cloudprovider.GCP:
|
||||||
@ -524,6 +525,7 @@ func defaultConfigWithExpectedMeasurements(t *testing.T, conf *config.Config, cs
|
|||||||
conf.Provider.GCP.Project = "test-project"
|
conf.Provider.GCP.Project = "test-project"
|
||||||
conf.Provider.GCP.Image = "some/image/location"
|
conf.Provider.GCP.Image = "some/image/location"
|
||||||
conf.Provider.GCP.Zone = "test-zone"
|
conf.Provider.GCP.Zone = "test-zone"
|
||||||
|
conf.Provider.GCP.Measurements[4] = []byte("44444444444444444444444444444444")
|
||||||
conf.Provider.GCP.Measurements[8] = []byte("00000000000000000000000000000000")
|
conf.Provider.GCP.Measurements[8] = []byte("00000000000000000000000000000000")
|
||||||
conf.Provider.GCP.Measurements[9] = []byte("11111111111111111111111111111111")
|
conf.Provider.GCP.Measurements[9] = []byte("11111111111111111111111111111111")
|
||||||
case cloudprovider.QEMU:
|
case cloudprovider.QEMU:
|
||||||
|
@ -147,7 +147,7 @@ The latter means that value can be generated offline and compared to the one in
|
|||||||
| 7 | Secure Boot State | Azure, Constellation Bootloader | No |
|
| 7 | Secure Boot State | Azure, Constellation Bootloader | No |
|
||||||
| 8 | Kernel command line, GRUB config | Constellation Bootloader | Yes |
|
| 8 | Kernel command line, GRUB config | Constellation Bootloader | Yes |
|
||||||
| 9 | Kernel, initramfs | Constellation Bootloader | Yes |
|
| 9 | Kernel, initramfs | Constellation Bootloader | Yes |
|
||||||
| 10 | Reserved | - | Yes |
|
| 10 | Reserved | - | No |
|
||||||
| 11 | Reserved | Constellation Bootstrapper | Yes |
|
| 11 | Reserved | Constellation Bootstrapper | Yes |
|
||||||
| 12 | ClusterID | Constellation Bootstrapper | Yes |
|
| 12 | ClusterID | Constellation Bootstrapper | Yes |
|
||||||
| 13–23 | Unused | - | - |
|
| 13–23 | Unused | - | - |
|
||||||
@ -177,7 +177,7 @@ The latter means that value can be generated offline and compared to the one in
|
|||||||
| 7 | GCP Secure Boot Policy | GCP, Constellation Bootloader | No |
|
| 7 | GCP Secure Boot Policy | GCP, Constellation Bootloader | No |
|
||||||
| 8 | Kernel command line, GRUB config | Constellation Bootloader | Yes |
|
| 8 | Kernel command line, GRUB config | Constellation Bootloader | Yes |
|
||||||
| 9 | Kernel, initramfs | Constellation Bootloader | Yes |
|
| 9 | Kernel, initramfs | Constellation Bootloader | Yes |
|
||||||
| 10 | Reserved | Constellation Bootstrapper | Yes |
|
| 10 | Reserved | - | No |
|
||||||
| 11 | Reserved | Constellation Bootstrapper | Yes |
|
| 11 | Reserved | Constellation Bootstrapper | Yes |
|
||||||
| 12 | ClusterID | Constellation Bootstrapper | Yes |
|
| 12 | ClusterID | Constellation Bootstrapper | Yes |
|
||||||
| 13–23 | Unused |- | - |
|
| 13–23 | Unused |- | - |
|
||||||
|
@ -209,7 +209,7 @@ func Default() *Config {
|
|||||||
InstanceType: "Standard_DC4as_v5",
|
InstanceType: "Standard_DC4as_v5",
|
||||||
StateDiskType: "Premium_LRS",
|
StateDiskType: "Premium_LRS",
|
||||||
Measurements: copyPCRMap(azurePCRs),
|
Measurements: copyPCRMap(azurePCRs),
|
||||||
EnforcedMeasurements: []uint32{8, 9, 11, 12},
|
EnforcedMeasurements: []uint32{4, 8, 9, 11, 12},
|
||||||
IdKeyDigest: "57486a447ec0f1958002a22a06b7673b9fd27d11e1c6527498056054c5fa92d23c50f9de44072760fe2b6fb89740b696",
|
IdKeyDigest: "57486a447ec0f1958002a22a06b7673b9fd27d11e1c6527498056054c5fa92d23c50f9de44072760fe2b6fb89740b696",
|
||||||
EnforceIdKeyDigest: func() *bool { b := true; return &b }(),
|
EnforceIdKeyDigest: func() *bool { b := true; return &b }(),
|
||||||
ConfidentialVM: func() *bool { b := true; return &b }(),
|
ConfidentialVM: func() *bool { b := true; return &b }(),
|
||||||
@ -223,7 +223,7 @@ func Default() *Config {
|
|||||||
StateDiskType: "pd-ssd",
|
StateDiskType: "pd-ssd",
|
||||||
ServiceAccountKeyPath: "",
|
ServiceAccountKeyPath: "",
|
||||||
Measurements: copyPCRMap(gcpPCRs),
|
Measurements: copyPCRMap(gcpPCRs),
|
||||||
EnforcedMeasurements: []uint32{0, 8, 9, 11, 12},
|
EnforcedMeasurements: []uint32{0, 4, 8, 9, 11, 12},
|
||||||
},
|
},
|
||||||
QEMU: &QEMUConfig{
|
QEMU: &QEMUConfig{
|
||||||
Measurements: copyPCRMap(qemuPCRs),
|
Measurements: copyPCRMap(qemuPCRs),
|
||||||
|
Loading…
Reference in New Issue
Block a user