AB#2114 Add QEMU metadata API (#237)

* Add QEMU metadata API

* API server is started automatically when using terraform to deploy a QEMU cluster

* Enable QEMU metadata usage for disk-mapper, debugd and the Coordinator

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-06-30 11:14:26 +02:00 committed by GitHub
parent b0aafd0c2a
commit 040e498b42
17 changed files with 648 additions and 23 deletions

View file

@ -10,6 +10,7 @@ import (
azurecloud "github.com/edgelesssys/constellation/coordinator/cloudprovider/azure"
gcpcloud "github.com/edgelesssys/constellation/coordinator/cloudprovider/gcp"
qemucloud "github.com/edgelesssys/constellation/coordinator/cloudprovider/qemu"
"github.com/edgelesssys/constellation/coordinator/core"
"github.com/edgelesssys/constellation/internal/attestation/azure"
"github.com/edgelesssys/constellation/internal/attestation/gcp"
@ -67,8 +68,7 @@ func main() {
case "qemu":
diskPath = qemuStateDiskPath
issuer = qemu.NewIssuer()
log.Warnf("cloud services are not supported on QEMU")
metadata = &core.ProviderMetadataFake{}
metadata = &qemucloud.Metadata{}
default:
diskPathErr = fmt.Errorf("csp %q is not supported by Constellation", *csp)