mirror of https://github.com/apache/nifi.git
NIFI-10193 Added SupportsSensitiveDynamicProperties to ExecuteStateless
This closes #6177 Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
14a31c81dd
commit
4d219689f1
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue