It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bamboo server and client certificates

Olaf Trygve Berglihn Dec 12, 2014

I want to add an extra layer of security to the Bamboo server, and only allow connect on the broker URL (jms/activemq) from agents that have valid client certificates (X.509). All my https-traffic is terminated by proxy, where client certificates are required. I set the Bamboo broker URL from tcp: to ssl:.

How do I make the Bamboo server require a trusted client certificate from the agents, and how do I make the agents use their client certificate?

2 answers

1 accepted

0 votes
Answer accepted
Olaf Trygve Berglihn Dec 12, 2014

Digging in to the documentation of Apache activemq[1] i tested adding the parameter needClientAuth in bamboo.cfg.xml:

<property name="bamboo.jms.broker.uri">ssl://0.0.0.0:54663?wireFormat.maxInactivityDuration=300000&needClientAuth=true</property>

I tested connecting with openssl s_client -connect.  Without the needClientAuth set the connection is accepted.  When i set it to to true the connection is rejected without a valid client certificate:

ERROR [ActiveMQ BrokerService[bamboo] Task-2] [TransportConnector] Could not accept connection from tcp://127.0.0.1:46419: javax.net.ssl.SSLHandshakeException: null cert chain

 

However, there is the problem of tuning the trust by setting the trustStore.  In the activemq documentation it is shown how to set the SSLContext for the broker only, and not for the whole VM.  If you set the javax.net.ssl.trustStore to a very limited set of CAs (your private CA), the https-traffic to atlassian from the Bamboo server will fail.

 

  1. http://activemq.apache.org/how-do-i-use-ssl.html
0 votes
Rafael Sperafico Atlassian Team Dec 12, 2014

Hello Olaf,

Thank you for your question.

Please, refer to Securing your remote agents for further information.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

Olaf Trygve Berglihn Dec 12, 2014

Hi, Rafael. The pages you refer to needs to be fixed. There are several errors, as pointed out in the comments. One needs to add the parameters in JAVA_OPTS, and there is no mention of how to require valid client certs.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

10,004 views 46 44
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you