You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2023/04/12 17:35:00 UTC
[jira] [Created] (NIFI-11437) Improve EncryptContentPGP Content Type Detection
David Handermann created NIFI-11437:
---------------------------------------
Summary: Improve EncryptContentPGP Content Type Detection
Key: NIFI-11437
URL: https://issues.apache.org/jira/browse/NIFI-11437
Project: Apache NiFi
Issue Type: Improvement
Components: Extensions, Security
Reporter: David Handermann
Assignee: David Handermann
Fix For: 1.latest, 2.latest
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)