You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2025/08/07 13:03:00 UTC
[jira] [Resolved] (NIFI-14826) Correct the enabling HTTP mode in the start.sh script
[ https://issues.apache.org/jira/browse/NIFI-14826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Handermann resolved NIFI-14826.
-------------------------------------
Resolution: Won't Fix
Thanks for describing the proposed changes [~peter279k].
As mentioned on the associated pull request, NiFi 2 removed support for plain HTTP mode from the Docker image to discourage use. The README.md for the image could be updated to make this more clear, but support for plain HTTP should remain disabled in the convenience image build.
> Correct the enabling HTTP mode in the start.sh script
> -----------------------------------------------------
>
> Key: NIFI-14826
> URL: https://issues.apache.org/jira/browse/NIFI-14826
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Docker
> Affects Versions: 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0
> Environment: The NiFi is run as the container in the Docker engine.
> Reporter: Chun-Sheng, Li
> Priority: Major
> Labels: easyfix
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When running the NiFi in the Docker environment, it will run the `start.sh` script to run the NiFi platform.
> According to the [start.sh|https://github.com/apache/nifi/blob/rel/nifi-2.5.0/nifi-docker/dockerhub/sh/start.sh] [,|https://github.com/apache/nifi/blob/rel/nifi-2.5.0/nifi-docker/dockerhub/sh/start.sh),] it seems that some configurations have been problematic and conflicts when we need to run the NiFi with enabling the HTTP mode.
> To resolve the above issue, I recommend the following approach:
> * Implement the `comment` function to add the comment for some configuration in the `common.sh` file.
> * Defining the `NIFI_WEB_HTTPS_ENABLE` environment variable and the default is not set.
> * When this environment variable is not set, it will disable the secure mode.
> ** Add the comment or replace property for related enabling HTTP configurations.
> * When this environment variable is set, it will enable the secure mode.
> ** Replace property for related enabling HTTPS configurations.
> And related reference is available [here|https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-2-0-Dockerized-running-insecure-on-HTTP/td-p/397979].
> Once this issue has been resolved, the [README.md|https://github.com/apache/nifi/tree/rel/nifi-2.5.0/nifi-docker/dockerhub#readme] should add the changes in the `Latest changes` section.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)