You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by David Early via users <us...@nifi.apache.org> on 2024/07/11 17:42:00 UTC

Site To Site through HAProxy/F5 with SSL termination

Is this even possible?
[image: Drawing6.jpg]

We need to set up site to site communications between a NiFi in the cloud
and an on prem NiFi.  Data ONLY needs to flow from Cloud to OnPrem, not the
other direction.

There is a proxy (F5 in this case, we are trying to test using HAProxy).

Access to the Web UI works fine, but Site to Site fails with a variety of
errors.  The web ui shows the wildcard cert as the cert being returned by
the proxy which is expected.

The primary issue is that we can communicate, but we get an Unauthorized
error on the Cloud server.  On the OnPrem server, the logs claim there is
no cert.   It is unclear what cert, if any, is being presented to the
OnPrem instance.

We have set up site to site internally without issues, but this is in a
relatively controlled environment using self signed certs and self signed
CA certs.  We have not gone through a proxy before and appear to lack the
experience to understand what needs to be done.

I see all kinds of things about proxy configuration options in NiFi (Proxy
configs in the remote process groups, "proxy user requests" policy, etc),
but we don't have anyone in house that has been able to figure out what we
need to do to get Site to Site working in this scenario.

With HAProxy, I have been able to get this to work but it is a hack: I
substituted a non-wildcard cert on the proxy and forced it to use it on the
outbound side.  The problem is, this basically authenticates ANYONE who
hits the proxy into NiFi on prem.

My suspicion is that we don't fully understand how this is actually working
and what needs to be done at the proxy to make this work.  If we can figure
out how to make this work using HAProxy, I can work with folks to figure
out what needs to be done in the F5.

Any help would be greatly appreciated.

Dave