COCOS 492 - Fixes bug from 492, fetch certificates only for SEV-SNP cvms (#536)

* initial commit

* made changes based on errors

* remove unnecessary log

* bug fix

* bug fix

---------

Co-authored-by: Jovan Djukic <jovan.djukic@ultraviolet.com>
This commit is contained in:
Jovan Djukic
2025-10-16 10:45:21 +02:00
committed by GitHub
parent 2b38f4595c
commit cf32a252de
+7 -5
View File
@@ -156,11 +156,13 @@ func main() {
return
}
err = quoteprovider.FetchCertificates(uint(cfg.Vmpl))
if err != nil {
logger.Error(fmt.Sprintf("failed to fetch certificates: %s", err))
exitCode = 1
return
if ccPlatform == attestation.SNP || ccPlatform == attestation.SNPvTPM {
err = quoteprovider.FetchCertificates(uint(cfg.Vmpl))
if err != nil {
logger.Error(fmt.Sprintf("failed to fetch certificates: %s", err))
exitCode = 1
return
}
}
svc := newService(ctx, logger, eventSvc, provider, cfg.Vmpl)