Skip to content

Commit

Permalink
Promote signature failure and cache corruption logs from DEBUG to WARN
Browse files Browse the repository at this point in the history
  • Loading branch information
emlun committed Sep 15, 2022
1 parent b6a8ee4 commit 8cf2b92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Changes:

* The `AuthenticatorToBeFiltered` argument of the `FidoMetadataService` runtime
filter now omits zero AAGUIDs.
* Promoted log messages in `FidoMetadataDownloader` about BLOB signature failure
and cache corruption from DEBUG level to WARN level.

Fixes:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ private Optional<MetadataBLOB> refreshBlobInternal(
return Optional.of(downloadedBlob);
} catch (FidoMetadataDownloaderException e) {
if (e.getReason() == Reason.BAD_SIGNATURE && cached.isPresent()) {
log.debug("New BLOB has bad signature - falling back to cached BLOB.");
log.warn("New BLOB has bad signature - falling back to cached BLOB.");
return cached;
} else {
throw e;
Expand Down Expand Up @@ -954,7 +954,7 @@ private Optional<MetadataBLOB> loadCachedBlobOnly(X509Certificate trustRootCerti
try {
return parseAndVerifyBlob(cached, trustRootCertificate);
} catch (Exception e) {
log.debug("Failed to read or parse cached BLOB.", e);
log.warn("Failed to read or parse cached BLOB.", e);
return null;
}
});
Expand Down

0 comments on commit 8cf2b92

Please sign in to comment.