This is an automated email from the ASF dual-hosted git repository.
martinzink pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new acf6bc7e4 MINIFICPP-2879 Use FIPS when MINIFI_FIPS environment
variable is set (#2235)
acf6bc7e4 is described below
commit acf6bc7e4e8041bc9f15b756997cdad9133217be
Author: Gabor Gyimesi <[email protected]>
AuthorDate: Mon Aug 10 16:28:58 2026 +0200
MINIFICPP-2879 Use FIPS when MINIFI_FIPS environment variable is set (#2235)
---
.../src/minifi_behave/containers/minifi_linux_container.py | 5 ++++-
.../src/minifi_behave/containers/minifi_win_container.py | 6 +++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git
a/behave_framework/src/minifi_behave/containers/minifi_linux_container.py
b/behave_framework/src/minifi_behave/containers/minifi_linux_container.py
index 4658a8237..d5826f4e7 100644
--- a/behave_framework/src/minifi_behave/containers/minifi_linux_container.py
+++ b/behave_framework/src/minifi_behave/containers/minifi_linux_container.py
@@ -131,7 +131,10 @@ class MinifiLinuxContainer(LinuxContainer, MinifiProtocol):
self.properties["nifi.extension.path"] =
self.deployment_type.extension_pattern
self.properties["nifi.administrative.yield.duration"] = "1 sec"
self.properties["nifi.bored.yield.duration"] = "100 millis"
- self.properties["nifi.openssl.fips.support.enable"] = "false"
+ if 'MINIFI_FIPS' in os.environ and os.environ["MINIFI_FIPS"] == "true":
+ self.properties["nifi.openssl.fips.support.enable"] = "true"
+ else:
+ self.properties["nifi.openssl.fips.support.enable"] = "false"
self.properties["nifi.provenance.repository.class.name"] =
"NoOpRepository"
self.properties["nifi.python.processor.dir"] =
self.deployment_type.minifi_python_path
diff --git
a/behave_framework/src/minifi_behave/containers/minifi_win_container.py
b/behave_framework/src/minifi_behave/containers/minifi_win_container.py
index 9ece439b4..020ddbe6f 100644
--- a/behave_framework/src/minifi_behave/containers/minifi_win_container.py
+++ b/behave_framework/src/minifi_behave/containers/minifi_win_container.py
@@ -20,6 +20,7 @@ from minifi_behave.containers.directory import Directory
from .container_windows import WindowsContainer
from .minifi_protocol import MinifiProtocol
import logging
+import os
class MinifiWindowsContainer(WindowsContainer, MinifiProtocol):
@@ -54,7 +55,10 @@ class MinifiWindowsContainer(WindowsContainer,
MinifiProtocol):
self.properties["nifi.extension.path"] = "../extensions/*"
self.properties["nifi.administrative.yield.duration"] = "1 sec"
self.properties["nifi.bored.yield.duration"] = "100 millis"
- self.properties["nifi.openssl.fips.support.enable"] = "false"
+ if 'MINIFI_FIPS' in os.environ and os.environ["MINIFI_FIPS"] == "true":
+ self.properties["nifi.openssl.fips.support.enable"] = "true"
+ else:
+ self.properties["nifi.openssl.fips.support.enable"] = "false"
self.properties["nifi.provenance.repository.class.name"] =
"NoOpRepository"
def _fill_default_log_properties(self):