How to use a proxy while making a REST call from Jira server plugin

We are using a Jira server plugin and making a REST call from it using Apache HTTP client. However this client does not seem to respect the proxy set at Jira level.

 

What can we do so that the proxy at Jira level is respected? Is there a Jira REST client that we can use that can obey Jira level proxy? 

1 answer

0 votes

Two things come to mind:

1) How is the plugin making calls to the Jira site? (ie what address is the plugin using to make this REST API call?)  Is it the Base URL of the site?   I would expect this to be set to use the base URL that Jira is configured to use.

AND

2) How is Jira configured in regards to the $JIRAINSTALL/conf/server.xml file?   This file controls how Jira's Tomcat web server is hosting the site and serving up this Jira content.  If you're using a reverse proxy in front of Jira, then you should have a connector in that file that uses the proxyPort, proxyName, and scheme parameters.  If you don't use those parameters for the proxy connector, then Jira does not properly know that its traffic is being routed through this proxy.  For situations like this, it's really important that this be configured when using a reverse proxy with Jira.  Otherwise you get some unexpected behaviors where things don't work correctly like REST calls.

 

Provided that your plugin is using the Base URL Jira is set to AND that Jira is setup to correctly use those parameters in the server.xml config for that connector, I would expect the plugin to be able to reach the site, even when using a reverse proxy.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,802 views 11 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot