Updated KBS settings.
This commit is contained in:
parent
418083d0c7
commit
9941ffe79c
1 changed files with 6 additions and 1 deletions
|
@ -24,6 +24,11 @@ import java.util.Set;
|
||||||
|
|
||||||
public final class RemoteAttestationCipher {
|
public final class RemoteAttestationCipher {
|
||||||
|
|
||||||
|
private static final Set<String> ALLOWED_ADVISORIES = new HashSet<String>() {{
|
||||||
|
add("INTEL-SA-00334");
|
||||||
|
add("INTEL-SA-00615");
|
||||||
|
}};
|
||||||
|
|
||||||
private RemoteAttestationCipher() {
|
private RemoteAttestationCipher() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +105,7 @@ public final class RemoteAttestationCipher {
|
||||||
if ("OK".equals(entity.getIsvEnclaveQuoteStatus())) {
|
if ("OK".equals(entity.getIsvEnclaveQuoteStatus())) {
|
||||||
return true;
|
return true;
|
||||||
} else if ("SW_HARDENING_NEEDED".equals(entity.getIsvEnclaveQuoteStatus())) {
|
} else if ("SW_HARDENING_NEEDED".equals(entity.getIsvEnclaveQuoteStatus())) {
|
||||||
return entity.getAdvisoryIds().length == 1 && "INTEL-SA-00334".equals(entity.getAdvisoryIds()[0]);
|
return Arrays.stream(entity.getAdvisoryIds()).allMatch(ALLOWED_ADVISORIES::contains);
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue