Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6506

PropertiesFileInitialContextFactory pollutes system properties with values that may contain passwords

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.8, 0.32
    • qpid-java-6.0
    • JMS AMQP 0-x
    • None

    Description

      The current implementation of PropertiesFileInitialContextFactory sets each property key encountered in the properties file as a system property (providing a system property with the same name does not already exist).

      It is not uncommon for applications or frameworks to log all system properties to aid diagnostics. If such an application were to include the Qpid client, such logging may include connection urls and thus may include passwords in the clear too.

      It seems difficult to justify why the PropertiesFileInitialContextFactory should behave in this way. To me, it does not obviously support a end user use-case. The commit comment goes back six years and seems to include a change made to help testing.

      Change PropertiesFileInitialContextFactory so that it no longer alters the system properties.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kwall Keith Wall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: