NIFI-10193 Added SupportsSensitiveDynamicProperties to ExecuteStateless

This closes #6177

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Pierre Villard 2022-07-04 16:19:53 +02:00 committed by exceptionfactory
parent 14a31c81dd
commit 4d219689f1
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
2 changed files with 2 additions and 6 deletions

View File

@ -22,6 +22,7 @@ import org.apache.nifi.annotation.behavior.InputRequirement;
import org.apache.nifi.annotation.behavior.InputRequirement.Requirement;
import org.apache.nifi.annotation.behavior.Restricted;
import org.apache.nifi.annotation.behavior.SupportsBatching;
import org.apache.nifi.annotation.behavior.SupportsSensitiveDynamicProperties;
import org.apache.nifi.annotation.behavior.SystemResource;
import org.apache.nifi.annotation.behavior.SystemResourceConsideration;
import org.apache.nifi.annotation.behavior.SystemResourceConsiderations;
@ -120,6 +121,7 @@ import static org.apache.nifi.processor.util.StandardValidators.createDirectoryE
@Restricted
@SupportsBatching
@SupportsSensitiveDynamicProperties
@SystemResourceConsiderations({
@SystemResourceConsideration(resource= SystemResource.CPU),
@SystemResourceConsideration(resource= SystemResource.DISK),
@ -403,7 +405,6 @@ public class ExecuteStateless extends AbstractProcessor implements Searchable {
.name(propertyDescriptorName)
.defaultValue("Value for the " + propertyDescriptorName + " parameter")
.addValidator(Validator.VALID)
.sensitive(true)
.dynamic(true)
.build();
}

View File

@ -212,11 +212,6 @@
a property to ExecuteStateless with the name "Kafka Topic" and the value "book-sales."
</p>
<p>
It is important to note, however, that often times we need the ability to make use of Sensitive Parameters. For example, we may want to parameterize
a "password" property. Because of this, any property that is added to ExecuteStateless is considered a sensitive property.
</p>
<h1>Exposing the Dataflow</h1>