Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-7031

Airflow WinRM endpoint is hardcoded to HTTP

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.10.9
    • Fix Version/s: None
    • Component/s: hooks
    • Labels:
      None

      Description

      In airflow/providers/microsoft/winrm/hooks/winrm.py the following code is hardcoded to use 'http' even when the service is set to use 'https':

      # If endpoint is not set, then build a standard wsman endpoint from host and port.
      if not self.endpoint:
         self.endpoint = 'http://{0}:{1}/wsman'.format(self.remote_host, self.remote_port)
      

      Workaround: configure the 'enpoint' setting manually in the extra configuration of the connection.

      Correction: make the protocol configurable, depending on the value of the 'service' configuration (if 'HTTP' then 'http://' should be used, and if 'HTTPS' then 'https://' should be used).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nbardelot Noël BARDELOT
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: