Skip to content

Commit

Permalink
Merge pull request #74 from IABTechLab/lun-UID2-2069-remove-azure-v1
Browse files Browse the repository at this point in the history
Remove Azure SGX
  • Loading branch information
lunwang-ttd authored Nov 3, 2023
2 parents 61529fd + 1612c4b commit c62c640
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/uid2/core/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand All @@ -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());
Expand Down

0 comments on commit c62c640

Please sign in to comment.