Skip to content

chore: add test for RSA decryption validation for v1 object#194

Merged
rishav-karanjit merged 11 commits into
mainfrom
rishav/testRSAV1Object
Jun 11, 2026
Merged

chore: add test for RSA decryption validation for v1 object#194
rishav-karanjit merged 11 commits into
mainfrom
rishav/testRSAV1Object

Conversation

@rishav-karanjit

@rishav-karanjit rishav-karanjit commented Jun 10, 2026

Copy link
Copy Markdown
Member

Issue #, if available:

Description of changes:
Add test that verifies the decryption of RSA-encrypted v1 objects succeeds with newer clients.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This test class verifies the decryption of RSA-encrypted objects using legacy wrapping. It includes setup for encryption and parameterized tests for various runtime and policy combinations.
Refactor rsaRuntimeAndPolicyMatrix to remove unused configurations.

@ParameterizedTest(name = "Encrypt: Java-V1-RSA, Decrypt: {0} / {1}")
@MethodSource("rsaRuntimeAndPolicyMatrix")
void canDecryptV1RsaObjectWithLegacyEnabled(LanguageServerTarget language, String configName,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: also include a negative test when enableLegacyWrappingAlgorithms(false)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do that in private repo

rishav-karanjit and others added 7 commits June 11, 2026 12:24
Co-authored-by: Kess Plasmeier <76071473+kessplas@users.noreply.github.com>
Co-authored-by: Kess Plasmeier <76071473+kessplas@users.noreply.github.com>
@rishav-karanjit rishav-karanjit merged commit 863c05e into main Jun 11, 2026
30 checks passed
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