diff --git a/src/main/java/org/opensearch/flowframework/transport/ReprovisionWorkflowTransportAction.java b/src/main/java/org/opensearch/flowframework/transport/ReprovisionWorkflowTransportAction.java index 17b728bbe..0b33e387d 100644 --- a/src/main/java/org/opensearch/flowframework/transport/ReprovisionWorkflowTransportAction.java +++ b/src/main/java/org/opensearch/flowframework/transport/ReprovisionWorkflowTransportAction.java @@ -97,6 +97,8 @@ public ReprovisionWorkflowTransportAction( protected void doExecute(Task task, ReprovisionWorkflowRequest request, ActionListener listener) { String workflowId = request.getWorkflowId(); + + // Original template is retrieved from index, attempt to decrypt any exisiting credentials before processing Template originalTemplate = encryptorUtils.decryptTemplateCredentials(request.getOriginalTemplate()); Template updatedTemplate = request.getUpdatedTemplate();