Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-123817

Allow proxy in Elasticsearch REST client

Details

    Description

      Solution notes

      The following new properties have been added to
      com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConfiguration (Elasticsearch 7 in System Settings) and
      com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConnectionConfiguration (Elasticsearch Connections in System Settings):

      proxyHost
      proxyPort (defaults to "0")
      proxyUserName
      proxyPassword
      

      Steps to Reproduce:

      1. Use the official documentation to configure Liferay DXP to connect to Elasticsearch on Elastic Cloud: https://help.liferay.com/hc/en-us/articles/360046314732
      2. Configure a proxy between your Liferay server and Elastic Cloud, so that all external requests from your Liferay server network require proxy.
      3. Start your server using system properties http.proxyHost and http.proxyPort to use your proxy configuration.

       

      Actual Results:

      Connection isn't possible

       

      Expected Results:

      Connection should be possible.

       

      See https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-low-usage-initialization.html for proxy usage example.

      Attachments

        Issue Links

          Activity

            People

              brian.lee Brian Lee
              mariano.alvaro Mariano Álvaro
              Adam Brandizzi Adam Brandizzi
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Development End Date:
                Development Start Date:

                Packages

                  Version Package
                  7.3.10 DXP FP1
                  7.3.10.1 DXP SP1
                  7.3.6 CE GA7
                  7.4.13 DXP GA1
                  Master