Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Apr 12, 2023

Conversation

lukpueh
Copy link
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

lukpueh 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 jku and adityasaky 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