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

Improve EncryptContentPGP Content Type Detection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.15.0, 1.21.0
    • 2.0.0-M1, 1.22.0
    • Extensions, Security
    • None

    Description

      The EncryptContentPGP Processor reads the initial bytes of incoming files to determine whether a file is an OpenPGP message. This initial read is necessary to support flows with SignContentPGP creating signed OpenPGP messages prior to encryption.

      The current implementation uses an InputStreamCallback with ProcessSession.read() to run content type detection. Instead a separate read callback, the StreamCallback for ProcessSession.write() can be modified to use a buffer with PushbackInputStream. This will avoid reading the initial bytes multiple times.

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              exceptionfactory David Handermann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m