Skip to content

Commit

Permalink
Change: gpg verification failure handling of notus advisories sha256sums
Browse files Browse the repository at this point in the history
When gpg verification on sha256sums for notus advisories fails it is
printing a warning instead of crashing ospd-openvas.

This changes the behaviour mentioned in #765
  • Loading branch information
nichtsfrei committed Sep 9, 2022
1 parent 182da27 commit 9d0bd4e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ospd_openvas/notus.py
Expand Up @@ -47,7 +47,11 @@ def hashsum_verificator(
def on_hash_sum_verification_failure(
_: Optional[Dict[str, str]]
) -> Dict[str, str]:
raise Exception("GPG verification of notus sha256sums failed")
logger.warning(
"GPG verification of notus sha256sums failed."
" Notus advisories are not loaded."
)
return {}

sha_sum_file_path = advisories_directory_path / "sha256sums"
sha_sum_reload_config = ReloadConfiguration(
Expand Down

0 comments on commit 9d0bd4e

Please sign in to comment.