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

feat: Simplify error when decrypting a single EDK #1022

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seebees
Copy link
Contributor

@seebees seebees commented Nov 19, 2024

Decryption may attempt to decrypt multiple encrypted data keys (EDK) To return all errors we wrap them in a CollectionOfErrors.

However, unwrapping these errors can be complicated. To simplify, if there is only a single error,
don’t wrap it, just return the single error.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Decryption may attempt to decrypt multipule encrypted data keys (EDK)
To return all errors we wrap them in a `CollectionOfErrors`.

However, unwrapping these errors can be complicated.
To simplify, if there is only a single error,
don’t wrap it, just return the single error.
@seebees seebees requested a review from a team as a code owner November 19, 2024 05:30
@seebees
Copy link
Contributor Author

seebees commented Nov 19, 2024

This would change the existing error behavior of the library. This is a good idea, but it needs to bake a little more. As is this would be a breaking change.

@seebees seebees marked this pull request as draft November 19, 2024 14:00
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.

1 participant