Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

umarhussain15
Copy link
Contributor

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

  • Implementation tested
  • Error handling code meets the guideline
  • Logging code meets the guideline
  • User guide and development docs updated (if needed)
  • Append changelog with changes

…al services into `webProxyHosts`

This change will add the option to include NodePorts from `clusters.externalServices` with custom hosts list and add them in `NifiCluster` under `webProxyHosts`.
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`

Signed-off-by: Umar Hussain <umarhussain.work@gmail.com>
Co-authored-by: Michael H <86672176+mh013370@users.noreply.github.com>
@mh013370 mh013370 merged commit 6535ae3 into konpyutaika:master Jan 3, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants