-
Notifications
You must be signed in to change notification settings - Fork 112
Make use of key store its own key manager #3606
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
Make use of key store its own key manager #3606
Conversation
d8beed8
to
87ba406
Compare
87ba406
to
651f725
Compare
Rebased to parent as of da67b46. |
…is for existing tests.
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.
651f725
to
93cfbf2
Compare
...main/java/com/apple/foundationdb/record/provider/common/KeyStoreSerializationKeyManager.java
Outdated
Show resolved
Hide resolved
...main/java/com/apple/foundationdb/record/provider/common/KeyStoreSerializationKeyManager.java
Show resolved
Hide resolved
...main/java/com/apple/foundationdb/record/provider/common/KeyStoreSerializationKeyManager.java
Outdated
Show resolved
Hide resolved
...main/java/com/apple/foundationdb/record/provider/common/KeyStoreSerializationKeyManager.java
Outdated
Show resolved
Hide resolved
...main/java/com/apple/foundationdb/record/provider/common/KeyStoreSerializationKeyManager.java
Show resolved
Hide resolved
fdb-relational-api/src/main/java/com/apple/foundationdb/relational/api/Options.java
Outdated
Show resolved
Hide resolved
if (keyEntryPassword == null) { | ||
keyEntryPassword = keyStorePassword; | ||
} | ||
final KeyStore.ProtectionParameter keyEntryProtection = new KeyStore.PasswordProtection(keyEntryPassword.toCharArray()); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
…ord/provider/common/KeyStoreSerializationKeyManager.java Co-authored-by: Scott Dugas <scott.dugas@gmail.com>
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.