我正在使用Nifi 1.9.1中的ExecuteStreamCommand处理器,而不是在curl命令中暴露密码,我想隐藏它。
我想通过ExecuteStreamCommand处理器使用curl命令生成令牌,或者建议一个更好的解决方案,我可以使用支持Ldap的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发布于 2020-12-05 22:41:18
不是的。敏感属性必须在处理器的源代码中手动指定。作为一种变通办法,如果您升级到最新版本的NiFi,sensitive parameters应该可以正常工作。你无论如何都应该这样做,因为1.9.1不是最新的1.9.X版本,并且包含一些已知的bug,值得至少升级到1.9.2 (参数直到1.10才被添加,所以我建议转到我们的最新版本1.12.1 )
https://stackoverflow.com/questions/65155919
复制相似问题