From e13152648f58fe5b6228ce6945de6cd493c688bb Mon Sep 17 00:00:00 2001 From: Bhavana Ramaram Date: Fri, 6 Oct 2023 15:09:01 -0700 Subject: [PATCH] add bedrockURL to trusted connector regex list 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 4d62bb504f..bf200a3b02 100644 --- a/plugin/src/main/java/org/opensearch/ml/settings/MLCommonsSettings.java +++ b/plugin/src/main/java/org/opensearch/ml/settings/MLCommonsSettings.java @@ -127,7 +127,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,