mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-28 23:09:36 -04:00
Add qemu cloudprovider for activation calls
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
f2305b3ce6
commit
8444d5c515
10 changed files with 237 additions and 0 deletions
|
@ -30,6 +30,11 @@ var (
|
|||
uint32(vtpm.PCRIndexOwnerID): {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},
|
||||
uint32(vtpm.PCRIndexClusterID): {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},
|
||||
}
|
||||
|
||||
qemuPCRs = map[uint32][]byte{
|
||||
uint32(vtpm.PCRIndexOwnerID): {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},
|
||||
uint32(vtpm.PCRIndexClusterID): {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},
|
||||
}
|
||||
)
|
||||
|
||||
// Config defines a configuration used by the CLI.
|
||||
|
@ -193,6 +198,9 @@ func Default() *Config {
|
|||
},
|
||||
PCRs: pcrPtr(gcpPCRs),
|
||||
},
|
||||
QEMU: &QEMUConfig{
|
||||
PCRs: pcrPtr(qemuPCRs),
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -216,6 +224,7 @@ type ProviderConfig struct {
|
|||
EC2 *EC2Config `json:"ec2config,omitempty"`
|
||||
Azure *AzureConfig `json:"azureconfig,omitempty"`
|
||||
GCP *GCPConfig `json:"gcpconfig,omitempty"`
|
||||
QEMU *QEMUConfig `json:"qemuconfig,omitempty"`
|
||||
}
|
||||
|
||||
// EC2Config are AWS EC2 specific configuration values used by the CLI.
|
||||
|
@ -248,6 +257,10 @@ type GCPConfig struct {
|
|||
PCRs *map[uint32][]byte `json:"pcrs,omitempty"`
|
||||
}
|
||||
|
||||
type QEMUConfig struct {
|
||||
PCRs *map[uint32][]byte `json:"pcrs,omitempty"`
|
||||
}
|
||||
|
||||
func pcrPtr(pcrs map[uint32][]byte) *map[uint32][]byte {
|
||||
return &pcrs
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue