mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-05 21:44:15 -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
|
@ -11,6 +11,7 @@ import (
|
|||
"github.com/edgelesssys/constellation/coordinator/atls"
|
||||
"github.com/edgelesssys/constellation/coordinator/attestation/azure"
|
||||
"github.com/edgelesssys/constellation/coordinator/attestation/gcp"
|
||||
"github.com/edgelesssys/constellation/coordinator/attestation/qemu"
|
||||
"github.com/edgelesssys/constellation/coordinator/attestation/vtpm"
|
||||
"github.com/edgelesssys/constellation/internal/config"
|
||||
)
|
||||
|
@ -78,6 +79,12 @@ func (v *Validators) setPCRs(config *config.Config) error {
|
|||
return err
|
||||
}
|
||||
v.pcrs = azurePCRs
|
||||
case cloudprovider.QEMU:
|
||||
qemuPCRs := *config.Provider.QEMU.PCRs
|
||||
if err := v.checkPCRs(qemuPCRs); err != nil {
|
||||
return err
|
||||
}
|
||||
v.pcrs = qemuPCRs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
@ -98,6 +105,10 @@ func (v *Validators) updateValidators() {
|
|||
v.validators = []atls.Validator{
|
||||
azure.NewValidator(v.pcrs),
|
||||
}
|
||||
case cloudprovider.QEMU:
|
||||
v.validators = []atls.Validator{
|
||||
qemu.NewValidator(v.pcrs),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue