From b52a03d50b82864a341094db81a1c6be91896955 Mon Sep 17 00:00:00 2001 From: Bhavana Ramaram Date: Fri, 6 Oct 2023 15:16:31 -0700 Subject: [PATCH] add bedrockURL to trusted connector regex list (#1461) Signed-off-by: Bhavana Ramaram --- .../java/org/opensearch/ml/settings/MLCommonsSettings.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/src/main/java/org/opensearch/ml/settings/MLCommonsSettings.java b/plugin/src/main/java/org/opensearch/ml/settings/MLCommonsSettings.java index d616becb3c..03d4cf8647 100644 --- a/plugin/src/main/java/org/opensearch/ml/settings/MLCommonsSettings.java +++ b/plugin/src/main/java/org/opensearch/ml/settings/MLCommonsSettings.java @@ -130,7 +130,8 @@ private MLCommonsSettings() {} .of( "^https://runtime\\.sagemaker\\..*[a-z0-9-]\\.amazonaws\\.com/.*$", "^https://api\\.openai\\.com/.*$", - "^https://api\\.cohere\\.ai/.*$" + "^https://api\\.cohere\\.ai/.*$", + "^https://bedrock-runtime\\..*[a-z0-9-]\\.amazonaws\\.com/.*$" ), Function.identity(), Setting.Property.NodeScope,