Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-3791

Flexibility, concurrency, security, and compatibility issues in CachedLDAPAuthorizationMap

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.7.0
    • Component/s: Broker, Documentation
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      CachedLDAPAuthorizationMap provides support for dynamic AuthZ policy updates without restarting the broker; however, I think there are several issues with the implementation.

      1) The underlying structures for storing and managing AuthZ policy are not concurrent or synchronized.
      2) DN manipulation using Strings is error prone and the current implementation is case sensitive. This case sensitivity leads to issues with AD.
      3) For synchronous updates to the AuthZ policy, the temp destination policy is not reset and may retain out-of-date policy entries.

      1) Requires examining the usage of these structures and applying the necessary protections.
      2) Can be resolved with better String parsing or through applying the changes in AMQ-3770 to CachedLDAPAuthorizationMap as well.
      3) Can be resolved by clearing the policy entry before repopulating the policy from LDAP.

      There are also several enhancements to the configurability of the implementation that I see:

      1) Support user or group membership in the LDAP entry representing a permission on a destination. Allowing user DNs or group DNs here makes it easier to deal with one-off policies for individual users.
      2) Group membership in the LDAP entry representing a permission on a destination should support use of the full DN, not just the value of the member CN.
      3) The based DN should be fully customizable and the LDAP entry representing a permission on a destination should support use of an optional prefix for uniqueness. "cn=<PREFIX>read,ou=$,..."
      4) The name of the GroupPrincipal or UserPrincipal that is created from the policy in LDAP should be flexible. For instance, allow the group name or user name attribute to be configured.

        Attachments

        1. AMQ-3791.patch
          162 kB
          David Valeri

          Issue Links

            Activity

              People

              • Assignee:
                dejanb Dejan Bosanac
                Reporter:
                davaleri David Valeri
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: