Skip to content

Commit 640e520

Browse files
authored
Merge pull request #237 from IABTechLab/tjm-UID2-3359-add-enclave-logging
Log out the enclave-id
2 parents 8cd6d1a + 0f26cea commit 640e520

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/com/uid2/shared/secure/GcpOidcCoreAttestationService.java

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public void attest(byte[] attestationRequest, byte[] publicKey, Handler<AsyncRes
3939

4040
var enclaveId = this.validate(tokenPayload);
4141
if (enclaveId != null) {
42+
LOGGER.info("Successfully attested gcp-oidc against registered enclaves, enclave id: " + enclaveId);
4243
handler.handle(Future.succeededFuture(new AttestationResult(publicKey, enclaveId)));
4344
} else {
4445
LOGGER.warn("Can not find registered gcp-oidc enclave id.");

src/main/java/com/uid2/shared/secure/NitroCoreAttestationService.java

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ private AttestationResult attestInternal(byte[] publicKey, AttestationRequest aR
6767
return new AttestationResult(AttestationFailure.FORBIDDEN_ENCLAVE);
6868
}
6969

70+
LOGGER.info("Successfully attested aws-nitro against registered enclaves, enclave id: " + id.toString());
7071
return new AttestationResult(aDoc.getPublicKey(), id.toString());
7172
}
7273

0 commit comments

Comments
 (0)