Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-16838

Securing your remote agents

    XMLWordPrintable

Details

    • 0
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

        This issue prevents Bamboo Remote Agent to communicate with Bamboo Server

      Summary

      1. Issue

      According to Securing your remote agents under Step 3. Configure your Bamboo server to use SSL section only the Broker URL needs to be updated from tcp to ssl. However, it is required to update Broker Client URL and Broker URL to ssl.

      According to Running the Setup Wizard documentation, the Bamboo Setup Wizard provides the option to setup Broker URL, however Bamboo requires either Broker Client URL and Broker URL to be set as ssl if attempting on Securing your remote agents (please, notice there is a request to update documentation https://jira.atlassian.com/browse/BAM-16837)

      2. Expected Results

      When setting up both broker (Broker Client URL and Broker URL) to ssl under "<bamboo-home>/bamboo.cfg.xml" or "Bamboo administration >> Overview >> System >> General configuration" it is possible to establish communication using the SSL protocol.

      <bamboo-home>/bamboo.cfg.xml
      <!-- please, notice 'broker.client' and 'broker' are setup as 'ssl' -->
      <property name="bamboo.jms.broker.client.uri">failover:(ssl://127.0.0.1:54663?wireFormat.maxInactivityDuration=300000)?initialReconnectDelay=15000&amp;maxReconnectAttempts=10</property>
      <property name="bamboo.jms.broker.uri">ssl://0.0.0.0:54663?wireFormat.maxInactivityDuration=300000</property>
      


      The below exception is thrown in the "<bamboo-agent-home>/atlassian-bamboo.agent.log file:

      INFO   | jvm 1    | 2015/11/18 12:26:51 | 2015-11-18 12:26:51,295 INFO [Thread-0] [AgentRegistrationBean] Definition from the server: com.atlassian.bamboo.v2.build.agent.RemoteAgentDefinitionImpl@1c2ade40[7438337,127.0.0.1]
      

      3. Actual Results

      When setting up only Broker URL to ssl during Bamboo Setup Wizard or under "<bamboo-home>/bamboo.cfg.xml" or "Bamboo administration >> Overview >> System >> General configuration" the communication is broken.

      <bamboo-home>/bamboo.cfg.xml
      <!-- please, notice only 'broker' is setup as 'ssl' -->
      <property name="bamboo.jms.broker.client.uri">failover:(tcp://127.0.0.1:54663?wireFormat.maxInactivityDuration=300000)?initialReconnectDelay=15000&amp;maxReconnectAttempts=10</property>
      <property name="bamboo.jms.broker.uri">ssl://0.0.0.0:54663?wireFormat.maxInactivityDuration=300000</property>
      


      The below exception is thrown in the "<bamboo-agent-home>/atlassian-bamboo.agent.log file:

      INFO   | jvm 1    | 2015/11/18 12:31:54 | 2015-11-18 12:31:53,991 WARN [ActiveMQ Transport: tcp://broker.client.url/127.0.0.1:54663@52829] [FailoverTransport] Transport (tcp://127.0.0.1:54663) failed, reason:  java.io.EOFException, attempting to automatically reconnect
      

      Attachments

        1. bamboo.secure.correct.png
          bamboo.secure.correct.png
          116 kB
        2. bamboo.secure.wrong.png
          bamboo.secure.wrong.png
          116 kB
        3. GeneralConfiguration.png
          GeneralConfiguration.png
          81 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rsperafico Rafael Sperafico (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: