NIFI-15930: Re-init Secrets from a Provider with Controller Service#11241
NIFI-15930: Re-init Secrets from a Provider with Controller Service#11241bobpaulin wants to merge 1 commit into
Conversation
* Pre-Enable Parameter Provider Controller Services to ensure they are valid prior to secret resolution * Enable Working Context to apply any changes in Connector Property Values and Resolved values to the Parameter Context of the Working Flow Context * Warn when a parameter provider is not found
|
Hey @bobpaulin thanks for looking into this. Looking at the code, I think we can probably simplify things quite a bit. In particular, we're picking and choosing which Controller Services we "pre-enable" and then handling those separately from the rest. I presume this is due to this comment in the code: But I don't think this is really necessary. Instead, what if we just inherit the Controller Services before we inherit the Parameter Providers & Connectors? That comment was really more of a "let's do connectors first, just in case there are issues." So we'd avoid inheriting a Controller Service locally if there was a failure inheriting Connectors. At the time, it seemed like this was largely "free." But now, this approach introduces significant complexity and confusion because Controller Services are selectively handled here or there. IMO, I think we should look at just inheriting the root-level Controller Services before Parameter Providers. |
exceptionfactory
left a comment
There was a problem hiding this comment.
Concurring with @markap14, I agree that inheriting controller-level Controller Services before Parameter Providers should be a more straightforward way to go.
Summary
NIFI-15930
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000VerifiedstatusPull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
./mvnw clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation