From 1612c4b110e1f5a56306a5a29554c9af25841508 Mon Sep 17 00:00:00 2001 From: Lun Wang Date: Thu, 2 Nov 2023 15:05:18 +0800 Subject: [PATCH] Remove Azure SGX --- src/main/java/com/uid2/core/Main.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/uid2/core/Main.java b/src/main/java/com/uid2/core/Main.java index 890978a..b097adc 100644 --- a/src/main/java/com/uid2/core/Main.java +++ b/src/main/java/com/uid2/core/Main.java @@ -34,7 +34,6 @@ import io.vertx.core.http.HttpServerOptions; import io.vertx.core.http.impl.HttpUtils; import io.vertx.core.json.JsonObject; -import io.vertx.ext.web.client.WebClient; import io.vertx.micrometer.Label; import io.vertx.micrometer.MetricsDomain; import io.vertx.micrometer.MicrometerMetricsOptions; @@ -117,10 +116,8 @@ public static void main(String[] args) { enclaveRotatingVerticle = new RotatingStoreVerticle("enclaves", 60000, enclaveIdProvider); - var maaServerBaseUrl = ConfigStore.Global.getOrDefault(com.uid2.core.Const.Config.MaaServerBaseUrlProp, "https://sharedeus.eus.attest.azure.net"); AttestationService attestationService = new AttestationService() .with("trusted", new TrustedAttestationProvider()) - .with("azure-sgx", new AzureAttestationProvider(maaServerBaseUrl, WebClient.create(vertx))) .with("aws-nitro", new NitroAttestationProvider(new InMemoryAWSCertificateStore())); // try read GoogleCredentials @@ -137,6 +134,7 @@ public static void main(String[] args) { .with("gcp-vmid", new GcpVmidAttestationProvider(googleCredentials, enclaveParams)); } + var maaServerBaseUrl = ConfigStore.Global.getOrDefault(com.uid2.core.Const.Config.MaaServerBaseUrlProp, "https://sharedeus.eus.attest.azure.net"); attestationService.with("azure-cc", new AzureCCAttestationProvider(maaServerBaseUrl)); attestationService.with("gcp-oidc", new GcpOidcAttestationProvider());