Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-16648

hazelcast-network.xml is not included in support zip

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.9.0
    • Fix Version/s: 3.11.0
    • Component/s: HA
    • Labels:
    • Story Points:
      1

      Description

      As of changes since 3.7.0 per NEXUS-14377, Nexus uses the following logic to load hazelcast config files:

      • if $karaf.data/etc/fabric/hazelcast-network.xml does not exist, copy $karaf.base/etc/fabric/hazelcast-network-default.xml to $karaf.data/etc/fabric/hazelcast-network.xml
      • if $karaf.base/etc/fabric/hazelcast.xml exists, load it
      • if $karaf.base/etc/fabric/hazelcast.xml does not exist, log a WARN and load default values from internal configuration

      The problem is the support zip generator does not include $karaf.data/etc/fabric/hazelcast-network.xml and therefore by default it is impossible to learn what the user has configured hazelcast to do.

      https://github.com/sonatype/nexus-internal/blob/f8d90379daff553edf6bcb8e8f983a794ccde6f6/private/plugins/nexus-hazelcast-plugin/src/main/java/com/sonatype/nexus/hazelcast/internal/HazelcastInstanceProvider.java#L128

      The other "fabric" install dir files are included and sanitized.

      Expected

      • bundle $karaf.data/etc/fabric/hazelcast-network.xml into the support zip at path work/etc/fabric/hazelcast-network.xml
      • obfuscate any potential passwords that may be in that file

        Attachments

          Activity

            People

            Assignee:
            jbryan Jeremy Bryan
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Peter Lynch Peter Lynch
            Team:
            Nexus - Core
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title