mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-04-20 15:35:55 -04:00
config: add default values for OpenStack
This commit is contained in:
parent
5cc7590749
commit
e0b7707c8e
@ -485,6 +485,9 @@ func DefaultsFor(provider cloudprovider.Provider, attestationVariant variant.Var
|
||||
case provider == cloudprovider.QEMU && attestationVariant == variant.QEMUVTPM{}:
|
||||
return qemu_QEMUVTPM.Copy()
|
||||
|
||||
case provider == cloudprovider.OpenStack && attestationVariant == variant.QEMUVTPM{}:
|
||||
return openstack_QEMUVTPM.Copy()
|
||||
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
|
@ -23,4 +23,13 @@ var (
|
||||
gcp_GCPSEVES = M{1: {Expected: []byte{0x74, 0x5f, 0x2f, 0xb4, 0x23, 0x5e, 0x46, 0x47, 0xaa, 0x0a, 0xd5, 0xac, 0xe7, 0x81, 0xcd, 0x92, 0x9e, 0xb6, 0x8c, 0x28, 0x87, 0x0e, 0x7d, 0xd5, 0xd1, 0xa1, 0x53, 0x58, 0x54, 0x32, 0x5e, 0x56}, ValidationOpt: WarnOnly}, 2: {Expected: []byte{0x3d, 0x45, 0x8c, 0xfe, 0x55, 0xcc, 0x03, 0xea, 0x1f, 0x44, 0x3f, 0x15, 0x62, 0xbe, 0xec, 0x8d, 0xf5, 0x1c, 0x75, 0xe1, 0x4a, 0x9f, 0xcf, 0x9a, 0x72, 0x34, 0xa1, 0x3f, 0x19, 0x8e, 0x79, 0x69}, ValidationOpt: WarnOnly}, 3: {Expected: []byte{0x3d, 0x45, 0x8c, 0xfe, 0x55, 0xcc, 0x03, 0xea, 0x1f, 0x44, 0x3f, 0x15, 0x62, 0xbe, 0xec, 0x8d, 0xf5, 0x1c, 0x75, 0xe1, 0x4a, 0x9f, 0xcf, 0x9a, 0x72, 0x34, 0xa1, 0x3f, 0x19, 0x8e, 0x79, 0x69}, ValidationOpt: WarnOnly}, 4: {Expected: []byte{0x33, 0x49, 0x6b, 0xa1, 0xe7, 0x36, 0x10, 0x66, 0xa8, 0x71, 0x03, 0xfa, 0x7f, 0xca, 0xce, 0xd5, 0x1c, 0x85, 0x5c, 0x8f, 0xf9, 0xf8, 0x8d, 0x44, 0x6c, 0xe5, 0x55, 0xad, 0xbe, 0x34, 0x63, 0x3b}, ValidationOpt: Enforce}, 6: {Expected: []byte{0x3d, 0x45, 0x8c, 0xfe, 0x55, 0xcc, 0x03, 0xea, 0x1f, 0x44, 0x3f, 0x15, 0x62, 0xbe, 0xec, 0x8d, 0xf5, 0x1c, 0x75, 0xe1, 0x4a, 0x9f, 0xcf, 0x9a, 0x72, 0x34, 0xa1, 0x3f, 0x19, 0x8e, 0x79, 0x69}, ValidationOpt: WarnOnly}, 7: {Expected: []byte{0xa1, 0xd1, 0x93, 0xdb, 0xfc, 0x3d, 0xa1, 0xa5, 0xe9, 0x3f, 0xe7, 0xb1, 0x38, 0x44, 0x27, 0xfb, 0x78, 0xfe, 0xef, 0xfc, 0xb0, 0x66, 0x75, 0xa0, 0xcf, 0x84, 0x0e, 0xc9, 0x94, 0x06, 0xf2, 0x37}, ValidationOpt: WarnOnly}, 8: {Expected: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, ValidationOpt: Enforce}, 9: {Expected: []byte{0x01, 0xdd, 0xb4, 0xb6, 0xbb, 0xe8, 0x5c, 0x21, 0x18, 0xa6, 0x22, 0x2e, 0x0f, 0x43, 0x6d, 0xac, 0xd0, 0xf1, 0x2d, 0x21, 0x8b, 0xc5, 0x5b, 0x8e, 0x23, 0x45, 0xb1, 0xac, 0xfa, 0x07, 0x39, 0xe1}, ValidationOpt: Enforce}, 11: {Expected: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, ValidationOpt: Enforce}, 12: {Expected: []byte{0x87, 0x04, 0x7a, 0xd9, 0xe5, 0x37, 0xed, 0x0a, 0x9f, 0x5e, 0x54, 0xa5, 0xa8, 0xb1, 0x83, 0xf6, 0x9f, 0xa9, 0xac, 0xf4, 0x40, 0x5c, 0xcb, 0xe0, 0x61, 0xcb, 0x2c, 0xf6, 0x2a, 0x1f, 0xfb, 0x4f}, ValidationOpt: Enforce}, 13: {Expected: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, ValidationOpt: Enforce}, 14: {Expected: []byte{0xd7, 0xc4, 0xcc, 0x7f, 0xf7, 0x93, 0x30, 0x22, 0xf0, 0x13, 0xe0, 0x3b, 0xde, 0xe8, 0x75, 0xb9, 0x17, 0x20, 0xb5, 0xb8, 0x6c, 0xf1, 0x75, 0x3c, 0xad, 0x83, 0x0f, 0x95, 0xe7, 0x91, 0x92, 0x6f}, ValidationOpt: WarnOnly}, 15: {Expected: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, ValidationOpt: Enforce}}
|
||||
qemu_QEMUTDX M
|
||||
qemu_QEMUVTPM = M{4: {Expected: []byte{0x69, 0xd9, 0x0d, 0xe2, 0x06, 0x00, 0x6c, 0xb3, 0x09, 0xa7, 0x4c, 0xb3, 0x05, 0x39, 0xa8, 0x8a, 0xf2, 0x9f, 0x3a, 0x12, 0x8a, 0x35, 0x79, 0x1d, 0x47, 0xc9, 0xd6, 0xe6, 0xdd, 0xb4, 0x2c, 0x9d}, ValidationOpt: Enforce}, 8: {Expected: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, ValidationOpt: Enforce}, 9: {Expected: []byte{0x01, 0xdd, 0xb4, 0xb6, 0xbb, 0xe8, 0x5c, 0x21, 0x18, 0xa6, 0x22, 0x2e, 0x0f, 0x43, 0x6d, 0xac, 0xd0, 0xf1, 0x2d, 0x21, 0x8b, 0xc5, 0x5b, 0x8e, 0x23, 0x45, 0xb1, 0xac, 0xfa, 0x07, 0x39, 0xe1}, ValidationOpt: Enforce}, 11: {Expected: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, ValidationOpt: Enforce}, 12: {Expected: []byte{0x8e, 0xcf, 0xab, 0x3f, 0x18, 0xba, 0x74, 0xd4, 0xa4, 0x88, 0xab, 0x05, 0xfa, 0xa9, 0x1d, 0x69, 0xa1, 0xf9, 0x8c, 0xfd, 0xf8, 0x16, 0x91, 0xc9, 0xe3, 0x80, 0x48, 0x09, 0x1a, 0x88, 0xac, 0xee}, ValidationOpt: Enforce}, 13: {Expected: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, ValidationOpt: Enforce}, 15: {Expected: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, ValidationOpt: Enforce}}
|
||||
openstack_QEMUVTPM = M{
|
||||
4: {Expected: []byte{0x44, 0x83, 0x48, 0x1f, 0xff, 0x52, 0x40, 0x1e, 0x39, 0xc7, 0x0a, 0x2e, 0x80, 0x33, 0x06, 0x63, 0x97, 0x11, 0x41, 0x6e, 0x2b, 0x9d, 0x00, 0x94, 0x8d, 0x27, 0x66, 0xd4, 0xee, 0x46, 0x7d, 0x03}, ValidationOpt: Enforce},
|
||||
8: {Expected: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, ValidationOpt: Enforce},
|
||||
9: {Expected: []byte{0x50, 0x0e, 0x35, 0x4e, 0xac, 0xbd, 0xd3, 0x55, 0xed, 0xe2, 0xd4, 0x44, 0xd3, 0xa4, 0x1c, 0x32, 0x50, 0x0f, 0x95, 0x6f, 0xd7, 0x3c, 0x6a, 0x9b, 0x44, 0xa3, 0x8d, 0x78, 0xeb, 0xd1, 0xdd, 0xd1}, ValidationOpt: Enforce},
|
||||
11: {Expected: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, ValidationOpt: Enforce},
|
||||
12: {Expected: []byte{0x37, 0xe4, 0x62, 0x99, 0xd1, 0x16, 0x66, 0x44, 0x7f, 0x4e, 0x26, 0x91, 0xd5, 0xde, 0x20, 0xa9, 0x04, 0x00, 0xb3, 0x2a, 0x0a, 0x67, 0xae, 0x59, 0xf2, 0xe9, 0x40, 0x1a, 0xaf, 0x0a, 0x4c, 0xd4}, ValidationOpt: Enforce},
|
||||
13: {Expected: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, ValidationOpt: Enforce},
|
||||
15: {Expected: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, ValidationOpt: Enforce},
|
||||
}
|
||||
)
|
||||
|
@ -73,4 +73,13 @@ var (
|
||||
13: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
||||
uint32(PCRIndexClusterID): WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
||||
}
|
||||
openstack_QEMUVTPM = M{
|
||||
4: PlaceHolderMeasurement(PCRMeasurementLength),
|
||||
8: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
||||
9: PlaceHolderMeasurement(PCRMeasurementLength),
|
||||
11: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
||||
12: PlaceHolderMeasurement(PCRMeasurementLength),
|
||||
13: WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
||||
uint32(PCRIndexClusterID): WithAllBytes(0x00, Enforce, PCRMeasurementLength),
|
||||
}
|
||||
)
|
||||
|
@ -784,6 +784,7 @@ func (c *Config) WithOpenStackProviderDefaults(openStackProvider string) *Config
|
||||
switch openStackProvider {
|
||||
case "stackit":
|
||||
c.Provider.OpenStack.Cloud = "stackit"
|
||||
c.Provider.OpenStack.AvailabilityZone = "eu01-1"
|
||||
c.Provider.OpenStack.FlavorID = "2715eabe-3ffc-4c36-b02a-efa8c141a96a"
|
||||
c.Provider.OpenStack.FloatingIPPoolID = "970ace5c-458f-484a-a660-0903bcfd91ad"
|
||||
c.Provider.OpenStack.StateDiskType = "storage_premium_perf6"
|
||||
|
@ -10,5 +10,5 @@ package config
|
||||
|
||||
const (
|
||||
// defaultImage is the default image to use.
|
||||
defaultImage = "ref/main/stream/nightly/v2.9.0-pre.0.20230629134636-a241a84770b9"
|
||||
defaultImage = "ref/poc-openstack-2023-06-30/stream/nightly/v2.9.0-pre.0.20230630121321-5cc75907490d"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user