From da978b2e5117bb88c30fead2e7d72bb78411d9a2 Mon Sep 17 00:00:00 2001 From: Joshua Palis Date: Thu, 25 Jul 2024 18:59:07 +0000 Subject: [PATCH] Adding comments Signed-off-by: Joshua Palis --- .../transport/ReprovisionWorkflowTransportAction.java | 2 ++ 1 file changed, 2 insertions(+) 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();