【问题标题】:Is there any possibility to add sensitive field in the nifi processor?是否有可能在 nifi 处理器中添加敏感字段?
【发布时间】: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


    【解决方案1】:

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

    【讨论】:

    • 感谢迈克的回复。那我就升级了。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-28
    • 1970-01-01
    • 2018-03-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多