data-center-helm-charts icon indicating copy to clipboard operation
data-center-helm-charts copied to clipboard

[Suggestion] - Add variables for application tunnels to values.yaml

Open BryanGuffeySonos opened this issue 2 years ago • 1 comments

Suggestion

Many consumers of the DC helm charts will need to connect to Atlassian Cloud application tunnels because they are running one application in Cloud and one on-prem using DC.

In order to successfully deploy application tunnels, the server.xml file needs to be modified with a new HTTP connector and a new JVM argument needs to be added, specifying an upstream port. See here: https://support.atlassian.com/organization-administration/docs/configure-required-connections-and-upstream-ports/

Additionally, one can restrict all traffic to localhost with additional modifications to server.xml, see here: https://support.atlassian.com/organization-administration/docs/configure-required-connections-and-upstream-ports/#Optional--Restrict-access-to-the-HTTP-connector-to-localhost

Finally, HTTPS redirection must be removed from the web.xml file, see here: https://support.atlassian.com/organization-administration/docs/configure-required-connections-and-upstream-ports/#Remove-HTTPS-redirection-from-the-web.xml-file

This seems like an excellent place to add some variables such as APPLICATION_TUNNEL_NEEDED, APPLICATION_TUNNEL_CONNECTOR_PORT, and RESTRICT_APPLICATION_TUNNEL_TO_LOCALHOST` which could then be used to generate the appropriate connector in server.xml, adjust the Engine if necessary, and add the flag to the JVM arguments, along with removing HTTPS redirection from web.xml, all from within the helm chart.

Product

Jira

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

BryanGuffeySonos avatar Aug 31 '23 19:08 BryanGuffeySonos

@BryanGuffeySonos indeed, there have been a few cases involving app tunnels. We'll definitely take a look at it, thanks for raising it!

bianchi2 avatar Aug 31 '23 20:08 bianchi2

Released in 1.22.5. Docs: https://atlassian.github.io/data-center-helm-charts/userguide/CONFIGURATION/#tunnels

bianchi2 avatar Feb 18 '25 02:02 bianchi2