Coder Social home page Coder Social logo

[Suggestion] - internalProxies line should be removed when there is no proxyInternalIps value in tomcatConfig about data-center-helm-charts HOT 9 CLOSED

SuperWonjune avatar SuperWonjune commented on August 23, 2024
[Suggestion] - internalProxies line should be removed when there is no proxyInternalIps value in tomcatConfig

from data-center-helm-charts.

Comments (9)

bianchi2 avatar bianchi2 commented on August 23, 2024 2

@SuperWonjune PRs in docker repos:

from data-center-helm-charts.

bianchi2 avatar bianchi2 commented on August 23, 2024 1

@SuperWonjune I'll raise PRs to both. Thanks for bringing this up!

from data-center-helm-charts.

SuperWonjune avatar SuperWonjune commented on August 23, 2024

More question : It appears that the RemoteIpValve value configuration is only in Confluence value.yaml, Is there any specific reason for not applying same option to Jira or any other products?

from data-center-helm-charts.

bianchi2 avatar bianchi2 commented on August 23, 2024

@SuperWonjune good questions!

In fact, server.xml is generated in the image entrypoint https://bitbucket.org/atlassian-docker/docker-atlassian-confluence-server/src/master/config/server.xml.j2. Template in the Helm chart is only necessary if you run as non root (in which case the non root user has no permissions to write to server.xml).

Yes, you are right, no x-forwarded-for headers will be added if internalProxies is empty, and having defaults can certainly help match commonly used interfaces (say, in AWS).

As to why only Confluence has remoteValve and Jira does not have it, I don't have an immediate answer. Config files (or rather templates) used in images (and here in Helm) are copies of config files distributed by products.

from data-center-helm-charts.

bianchi2 avatar bianchi2 commented on August 23, 2024

@SuperWonjune and feel free to raise a PR with the suggested change!

from data-center-helm-charts.

SuperWonjune avatar SuperWonjune commented on August 23, 2024

Thank you for your response.

It seems more appropriate to create an Issue and submit a Pull Request on the Bitbucket Repository you shared. (Though it doesn't seem like granting permissions to regular users)

I think we can close this issue.

from data-center-helm-charts.

SuperWonjune avatar SuperWonjune commented on August 23, 2024

Hello @bianchi2 I hope you've been well.

I'm reaching out regarding the progress on the request I made last time. Currently, in the server.xml template file of Confluence, the internalProxies setting allows for proper configuration of the client IP. However, in Jira server.xml file used in image, there is no related code like <Valve className="org.apache.catalina.valves.RemoteIpValve" in the template file. This means that in Jira, in a Proxy environment, the Client IP still cannot be correctly output.

Could you please share the progress on the PR for the server.xml.j2 file in the official Jira image below:

Jira: https://bitbucket.org/atlassian-docker/docker-atlassian-jira/src/master/config/server.xml.j2
Confluence: https://bitbucket.org/atlassian-docker/docker-atlassian-confluence-server/src/master/config/server.xml.j2

from data-center-helm-charts.

bianchi2 avatar bianchi2 commented on August 23, 2024

@SuperWonjune this has been fixed in helm charts (if you prefer Helm to generate server.xml) but not in jinja templates in the images themselves. This will be fixed.

from data-center-helm-charts.

SuperWonjune avatar SuperWonjune commented on August 23, 2024

@bianchi2
Thanks for sharing the progress.
Is there any open issue ticket or ongoing PR that we can check?

from data-center-helm-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.