【发布时间】:2021-03-17 05:39:55
【问题描述】:
我在 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
【问题讨论】:
标签: curl apache-nifi rest