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

David Handermann updated NIFI-16531:
------------------------------------
    Affects Version/s: 2.12.0

> SSLContext not available to FlowActionReporter.onConfigured
> -----------------------------------------------------------
>
>                 Key: NIFI-16531
>                 URL: https://issues.apache.org/jira/browse/NIFI-16531
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 2.12.0
>            Reporter: David Handermann
>            Assignee: David Handermann
>            Priority: Major
>
> The {{FlowActionReporter}} is an optional framework extension support export 
> of Flow Actions for logging and auditing.
> The framework provides a Context to the {{onConfigured}} method of the 
> {{FlowActionReporter}} which includes an Optional {{SSLContext}} that should 
> be present when the application is configured for TLS using {{nifi.security}} 
> properties.
> Based on the order of instantiation in the {{FlowControllerConfiguration}} 
> the {{SSLContext}} returns empty in {{onConfigured}} because the Spring 
> Framework wires {{SSLContext}} after wiring the {{AuditService}} and then the 
> {{FlowActionReporter}}.
> Moving this Reporter and the {{ComponentMetricReporter}} to a separate 
> {{Configuration}} class would avoid the invalid condition and also provide 
> more cohesive organization of these components.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to