Skip to content

Conversation

MMcM
Copy link
Collaborator

@MMcM MMcM commented Sep 17, 2025

Following on from #3522, extend how key store is used by YAML tests to allow for multiple keys in the connection options. Any one of these keys can be read back.

The existing YAML tests continue to work with this new implementation, as the options are known to the old serializer implementation and the earlier PR's implementation of a single key.

A new YAML test shows the use of multiple keys, restricted to the current version, as it involves a new option.

@MMcM MMcM added the testing improvement Change that improves our testing label Sep 17, 2025
@MMcM MMcM force-pushed the serializer-key-store-key-manager branch from d8beed8 to 87ba406 Compare September 20, 2025 01:03
@MMcM MMcM force-pushed the serializer-key-store-key-manager branch from 87ba406 to 651f725 Compare September 23, 2025 00:47
@MMcM
Copy link
Collaborator Author

MMcM commented Sep 23, 2025

Rebased to parent as of da67b46.

Add a new test block using it showing reading with different keys, restricted to the current version, as because old versions do not understand the new option.
@MMcM MMcM force-pushed the serializer-key-store-key-manager branch from 651f725 to 93cfbf2 Compare September 24, 2025 14:44
@MMcM MMcM marked this pull request as ready for review September 24, 2025 14:44
@MMcM MMcM requested a review from ScottDugas September 24, 2025 16:45
if (keyEntryPassword == null) {
keyEntryPassword = keyStorePassword;
}
final KeyStore.ProtectionParameter keyEntryProtection = new KeyStore.PasswordProtection(keyEntryPassword.toCharArray());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, probably good to move this closer

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

But then something else is too far away, right? Right now, it is constructing the arguments in the order in which they are passed to the constructor.

@MMcM MMcM added the enhancement New feature or request label Sep 24, 2025
MMcM and others added 2 commits September 24, 2025 16:04
…ord/provider/common/KeyStoreSerializationKeyManager.java

Co-authored-by: Scott Dugas <scott.dugas@gmail.com>
@ScottDugas ScottDugas merged commit f3abc1c into FoundationDB:main Sep 25, 2025
8 checks passed
@MMcM MMcM deleted the serializer-key-store-key-manager branch September 25, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request testing improvement Change that improves our testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants