As NiFi uses Jetty internally for its web server capabilities, you could try using a
HeaderPatternRule
as described here to enable HSTS
, which forces only HTTPS
connections. Browsers respond to the provided Strict-Transport-Security
header and know to attempt an HTTPS
connection.
This isn't directly supported by NiFi though, so you would have to modify code in the application. There is an existing
Apache Jira (NIFI-2437) for this to be enabled through a NiFi configuration setting.