-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UID2-4808 Add azure-cc-aks protocol #1340
base: main
Are you sure you want to change the base?
Changes from 4 commits
0019e08
21c462a
41d02b3
8cdb394
499ea63
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -486,6 +486,7 @@ private Map.Entry<UidCoreClient, UidOptOutClient> createUidClients(Vertx vertx, | |
private AttestationResponseHandler getAttestationTokenRetriever(Vertx vertx, String attestationUrl, String clientApiToken, Handler<Pair<AttestationResponseCode, String>> responseWatcher) throws Exception { | ||
String enclavePlatform = this.config.getString(Const.Config.EnclavePlatformProp); | ||
String operatorType = this.config.getString(Const.Config.OperatorTypeProp, ""); | ||
String maaServerBaseUrl = this.config.getString(Const.Config.MaaServerBaseUrlProp, "https://sharedeus.eus.attest.azure.net"); | ||
|
||
IAttestationProvider attestationProvider; | ||
switch (enclavePlatform) { | ||
|
@@ -508,7 +509,10 @@ private AttestationResponseHandler getAttestationTokenRetriever(Vertx vertx, Str | |
break; | ||
case "azure-cc": | ||
LOGGER.info("creating uid core client with azure cc attestation protocol"); | ||
String maaServerBaseUrl = this.config.getString(Const.Config.MaaServerBaseUrlProp, "https://sharedeus.eus.attest.azure.net"); | ||
attestationProvider = AttestationFactory.getAzureCCAttestation(maaServerBaseUrl); | ||
break; | ||
case "azure-cc-aks": | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. QQ: We specify There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it is fine since platform is different, attestation is same. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cant we do case "azure-cc", "azure-cc-aks": |
||
LOGGER.info("creating uid core client with azure cc aks attestation protocol"); | ||
attestationProvider = AttestationFactory.getAzureCCAttestation(maaServerBaseUrl); | ||
break; | ||
default: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore this for now, uncomment before merge