View Issue Details

IDProjectCategoryView StatusLast Update
0004644SymmetricDSBugpublic2020-11-20 00:00
Reporterelong Assigned Toelong  
Prioritynormal 
Status resolvedResolutionfixed 
Product Version3.12.0 
Target Version3.12.6Fixed in Version3.12.6 
Summary0004644: Multiple nodes need synchronized access to keystore
DescriptionWhen starting multiple nodes in the same server, access to the keystore should be synchronized to avoid race condition problems. It's possible for both nodes to generate the default secret key and use it to encrypt data, but the last key generated will be the one found on a restart, leaving one of the nodes unable to decrypt data:

ERROR [node1] [AbstractSymmetricEngine] [symmetric-engine-startup-2] An error occurred while starting SymmetricDS StackTraceKey.init [RuntimeException:867906149] java.lang.RuntimeException: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
        at org.jumpmind.security.SecurityService.decrypt(SecurityService.java:208)
        at com.jumpmind.symmetric.security.NodePasswordFilter.onNodeSecurityRender(NodePasswordFilter.java:22)
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

SymmetricDS: 3.12 09a6d98a

2020-11-19 23:38:41

admin

Details Diff
0004644: Multiple nodes need synchronized access to keystore Affected Issues
0004644
mod - symmetric-util/src/main/java/org/jumpmind/security/SecurityService.java Diff File

Issue History

Date Modified Username Field Change
2020-11-19 13:46 elong New Issue
2020-11-19 13:46 elong Status new => assigned
2020-11-19 13:46 elong Assigned To => elong
2020-11-19 23:38 elong Status assigned => resolved
2020-11-19 23:38 elong Resolution open => fixed
2020-11-19 23:38 elong Fixed in Version => 3.12.6
2020-11-20 00:00 admin Changeset attached => SymmetricDS 3.12 09a6d98a