konpyutaika / nifikop

The NiFiKop NiFi Kubernetes operator makes it easy to run Apache NiFi on Kubernetes. Apache NiFI is a free, open-source solution that support powerful and scalable directed graphs of data routing, transformation, and system mediation logic.
https://konpyutaika.github.io/nifikop/
Apache License 2.0
122 stars 40 forks source link

feat(nifi-cluster-helm): add option to include node ports from external services into `webProxyHosts` #345

Closed umarhussain15 closed 6 months ago

umarhussain15 commented 6 months ago
Q A
Bug fix? no
New feature? no
API breaks? no
Deprecations? no
Related tickets
License Apache 2.0

What's in this PR?

This change will add the option to include NodePorts from clusters.externalServices with custom hosts list and add them in NifiCluster under webProxyHosts.

Why?

This will help in cases where NiFi's UI and API is accessed over the node port services and NiFi needs the host[:port] entry present in nifi.web.proxy.host in nifi.properties. If the host is not listed in the property, then NiFi will complain about host header:

System Error
The request contained an invalid host header [<host>:<port>] in the request [/nifi/login]. Check for request manipulation or third-party intercept.
Valid host headers are [empty] or:

Additional context

Checklist