Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-2534

Send https requests from drools-server to guvnor instead of http requests

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Medium

    Description

      Security has been added to drools-guvnor.
      We want to access guvnor packages from drools-server in https mode, but it seems that there is nothing simple done to add username/password in the request.

      The org.drools.agent.HttpClientImpl class contains 2 methods : checkLastUpdated and fetchPackage which use java.net.HttpURLConnection class for remote connection.
      This HttpClientImpl class is an attribute of the org.drools.agent.URLScanner class :
      "IHttpClient httpClient = new HttpClientImpl();"

      If I want to add authentification information to the HttpURLConnection object, I have to extend the HttpClientImpl class, and URLScanner class and org.drools.agent.RuleAgent and org.drools.server.KnowledgeStatelessServlet...

      Is there a simple way to add authentification without having to extend all these classes ?

      Thanks

      Attachments

        Activity

          People

            mproctor@redhat.com Mark Proctor
            Vincent63 Vincent BONNEFOY (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Archived:

              Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified

                PagerDuty