Uploaded image for project: 'PicketBox '
  1. PicketBox
  2. SECURITY-803

SecureIdentityLoginModule (and ConfiguredIdentityLoginModule) results are not cached by the JAAS cache

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • PicketBox_4_0_19.Final
    • PicketBox
    • None

    Description

      In EAP 6, when using the SecureIdentityLoginModule to encrypt datasource passwords, the results are not cached by the JAAS cache. In EAP 5, the results are cached. This can lead to a performance issue.

      The root cause appears to be that the EAP 6 JAAS cache does not allow for a JAAS cache key to be null.

      The issue only occurs when the application that uses the datasource is not secured. In this situation, the principal is null when isValid() and updateCache() are called. When the application is secured, the results are cached. I think it is working because the result of the SecureIdentityLoginModule are cached using the authenticated user's principal as the cache key.

      Workaround:
      Use vault for encrypting the database password. This does not use a JAAS login module so the JAAS cache and login module are completely avoided.

      Attachments

        Activity

          People

            sguilhen Stefan Guilhen
            rhn-support-dehort Derek Horton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: