mirror of
https://github.com/ultravioletrs/cocos.git
synced 2026-06-23 04:10:25 +00:00
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:
+7
-5
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user