是否有可能在nifi处理器中添加敏感字段



我在Nifi 1.9.1中使用ExecuteStreamCommand处理器,而不是在curl命令中暴露密码,我想隐藏它。

我想通过ExecuteStreamCommand处理器使用curl命令生成令牌,或者建议一个更好的解决方案,我可以使用Ldap-enabled Nifi API 生成令牌

ExecuteStreamCommand Property:
Command Argument: -sSK;-u;<userid>:<password>;-d;username=<userid>&password=<password>;--request;POST;--header;Content-Type:application/x-www-form-urlencoded;--header;Accept:text/plain;--data;${data:toString()};https://<nifiurl>/nifi-api/access/token
Command Path : curl

没有。必须在处理器的源代码中手动指定敏感属性。作为变通办法,如果您升级到最新版本的NiFi,敏感参数应该可以正常工作。无论如何,你都应该这样做,因为1.9.1不是最新的1.9.X版本,并且包含一些已知的错误,值得升级到至少1.9.2(直到1.10才添加参数,所以我建议使用我们最新的1.12.1(

最新更新