Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-863

NiFi "sensitive properties" properties are duplicated/unused

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.2.1
    • None
    • Core Framework
    • None

    Description

      Currently, NiFiProperties has two sets of the same properties keys:

          public static final String SENSITIVE_PROPS_KEY = "nifi.sensitive.props.key";
          public static final String SENSITIVE_PROPS_ALGORITHM = "nifi.sensitive.props.algorithm";
          public static final String SENSITIVE_PROPS_PROVIDER = "nifi.sensitive.props.provider";
      

      and

          // encryptor properties
          public static final String NF_SENSITIVE_PROPS_KEY = "nifi.sensitive.props.key";
          public static final String NF_SENSITIVE_PROPS_ALGORITHM = "nifi.sensitive.props.algorithm";
          public static final String NF_SENSITIVE_PROPS_PROVIDER = "nifi.sensitive.props.provider";
      

      These are to be used primarily via the encryptor, but it also duplicates these keys:

          public static final String NF_SENSITIVE_PROPS_KEY = "nifi.sensitive.props.key";
          public static final String NF_SENSITIVE_PROPS_ALGORITHM = "nifi.sensitive.props.algorithm";
          public static final String NF_SENSITIVE_PROPS_PROVIDER = "nifi.sensitive.props.provider";
      

      despite referencing the NiFiProperties class.

      We should clean up the number of instances and remove the extraneous items.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            aldrin Aldrin Piri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment