Kevin Doran created NIFI-15910:
----------------------------------
Summary: Connector Verification fails for optional secret
references
Key: NIFI-15910
URL: https://issues.apache.org/jira/browse/NIFI-15910
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework
Reporter: Kevin Doran
Assignee: Kevin Doran
When a connector configuration contains a {{SECRET_REFERENCE}} that has only
{{valueType}} populated, with no {{secretName}} or
{{{}fullyQualifiedSecretName{}}}, framework verify and validate paths in
{{StandardConnectorNode}} try to resolve it against the secrets manager and
emit {{{}Property Validation - Secret Reference: The referenced secret [null]
could not be found{}}}. This is true even for optional or dependent properties
that might not actually be used by the connector if they don't meet their
dependencies.
h2. Fix
In {{StandardConnectorNode.resolvePropertyReferences}} and the active-config
validation path:
* Skip secret resolution and validation for properties whose
{{ConnectorPropertyDependency}} is not satisfied.
* Skip secret resolution for structurally-empty {{SECRET_REFERENCE}} values
(no FQN and no secret name) and treat them as unset, so the connector's own
required-property check produces the actionable " is required" message instead.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)