Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-2030

Refactor how HTTP-based Site-to-Site ports are communicated

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Won't Do
    • 1.0.0
    • None
    • Core Framework
    • None

    Description

      Currently, when clustered, the NodeIdentifier contains a field siteToSiteHttpApiPort but site-to-site should be enabled on both HTTP and HTTPS interfaces if both are made available. We should refactor NodeIdentifier so that it contains an apiPort and a secureApiPort and then when asked for the list of Peers for site-to-site, it should use the scheme of the given HTTP request to determine which port to return. I.e., if the request was made to https://myhost:443/site-to-site/peers then we should return the secure api port. If made to http://myhost:80/site-to-site/peers then we should return the non-secure api port.

      The fix version for this is marked as 1.0.0, but this should be backward compatible, so if it needs to slide from 1.0.0 it's not critical that it make it into this version.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: