Skip to content

Commit fbc7470

Browse files
committed
log out the enclave-id
1 parent 8cd6d1a commit fbc7470

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);
7071
return new AttestationResult(aDoc.getPublicKey(), id.toString());
7172
}
7273

0 commit comments

Comments
 (0)