NIFI-12877 Added Sensitive Dynamic Property Support to RestLookUpService

This closes #8525

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
lehelb 2024-03-16 22:23:01 -05:00 committed by exceptionfactory
parent 2303a15f8e
commit 129130fc09
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ import okhttp3.Response;
import okhttp3.ResponseBody;
import org.apache.nifi.annotation.behavior.DynamicProperties;
import org.apache.nifi.annotation.behavior.DynamicProperty;
import org.apache.nifi.annotation.behavior.SupportsSensitiveDynamicProperties;
import org.apache.nifi.annotation.documentation.CapabilityDescription;
import org.apache.nifi.annotation.documentation.Tags;
import org.apache.nifi.annotation.lifecycle.OnDisabled;
@ -80,6 +81,7 @@ import static org.apache.commons.lang3.StringUtils.trimToEmpty;
@Tags({ "rest", "lookup", "json", "xml", "http" })
@CapabilityDescription("Use a REST service to look up values.")
@SupportsSensitiveDynamicProperties
@DynamicProperties({
@DynamicProperty(name = "*", value = "*", description = "All dynamic properties are added as HTTP headers with the name " +
"as the header name and the value as the header value.", expressionLanguageScope = ExpressionLanguageScope.FLOWFILE_ATTRIBUTES)