Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1893

ENCRYPT: Thread safety issues during key changes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • 3.6.2
    • None
    • None

      For symmetric encryption, ENCRYPT has members with shared state: secret key, version and ciphers. In order for to provide consistent state between different threads accessing these members, they should be synchronized.

      I have implemented one solution by wrapping the state in separate object which can be found here:
      https://github.com/tepitebson/JGroups/tree/ENCRYPT_Thread_safety

      I also have replaced the WeakHashMap holding the previous keys with Cache in google's guava library so my solution probably is not suitable for an official solution.

            rhn-engineering-bban Bela Ban
            tepitebson Tero Leppikangas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: