Skip to content

signer API: improve graceful failure testing and fix thus revealed error handling bug#556

Merged
jku merged 4 commits intosecure-systems-lab:mainfrom
lukpueh:improve-key-checks
Apr 12, 2023
Merged

signer API: improve graceful failure testing and fix thus revealed error handling bug#556
jku merged 4 commits intosecure-systems-lab:mainfrom
lukpueh:improve-key-checks

Conversation

@lukpueh
Copy link
Copy Markdown
Member

@lukpueh lukpueh commented Mar 30, 2023

  • Improve tests on runner that don't have extra dependencies installed:

    • refactor test to add new cases more easily
    • test that verify_signature of SSlibKey and SigstoreKey fails gracefully, if optional dependencies are missing
    • test that ed25519 pure python fallback works for verification
  • Fix SSlibKey.verify_signature to re-raise UnsupportedLibraryError as VerificationError

Lukas Puehringer added 4 commits March 30, 2023 17:39
Make test table driven to easily add other Key implementations.

Signed-off-by: Lukas Puehringer <[email protected]>
Key.verify_signature implementations should only raise
UnverifiedSignatureError or VerificationError, even if an optional
dependency is missing.

This commit changes SSlibKey.verify_signature to re-raise
UnsupportedLibrarError as VerificationError.

Signed-off-by: Lukas Puehringer <[email protected]>
Test SSlibKey and SigstoreKey in addition to already tested GPGKey.

Signed-off-by: Lukas Puehringer <[email protected]>
@lukpueh lukpueh force-pushed the improve-key-checks branch from b7ad98d to b1cf437 Compare March 31, 2023 07:36
@lukpueh lukpueh requested review from adityasaky and jku and removed request for adityasaky March 31, 2023 07:38
@jku jku merged commit 5c7ef18 into secure-systems-lab:main Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants