[jira] [Updated] (NIFI-11437) Improve EncryptContentPGP Content Type Detection

2023-04-13 Thread David Handermann (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-11437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Handermann updated NIFI-11437:

Fix Version/s: 2.0.0
   1.22.0
   (was: 1.latest)
   (was: 2.latest)
   Resolution: Fixed
   Status: Resolved  (was: Patch Available)

> Improve EncryptContentPGP Content Type Detection
> 
>
> Key: NIFI-11437
> URL: https://issues.apache.org/jira/browse/NIFI-11437
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions, Security
>Affects Versions: 1.15.0, 1.21.0
>Reporter: David Handermann
>Assignee: David Handermann
>Priority: Major
> Fix For: 2.0.0, 1.22.0
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)


[jira] [Updated] (NIFI-11437) Improve EncryptContentPGP Content Type Detection

2023-04-12 Thread David Handermann (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-11437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Handermann updated NIFI-11437:

Affects Version/s: 1.21.0
   1.15.0

> Improve EncryptContentPGP Content Type Detection
> 
>
> Key: NIFI-11437
> URL: https://issues.apache.org/jira/browse/NIFI-11437
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions, Security
>Affects Versions: 1.15.0, 1.21.0
>Reporter: David Handermann
>Assignee: David Handermann
>Priority: Major
> Fix For: 1.latest, 2.latest
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)


[jira] [Updated] (NIFI-11437) Improve EncryptContentPGP Content Type Detection

2023-04-12 Thread David Handermann (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-11437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Handermann updated NIFI-11437:

Issue Type: Bug  (was: Improvement)

> Improve EncryptContentPGP Content Type Detection
> 
>
> Key: NIFI-11437
> URL: https://issues.apache.org/jira/browse/NIFI-11437
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions, Security
>Reporter: David Handermann
>Assignee: David Handermann
>Priority: Major
> Fix For: 1.latest, 2.latest
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)


[jira] [Updated] (NIFI-11437) Improve EncryptContentPGP Content Type Detection

2023-04-12 Thread David Handermann (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-11437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Handermann updated NIFI-11437:

Status: Patch Available  (was: Open)

> 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
>Priority: Major
> Fix For: 1.latest, 2.latest
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)