diff --git a/notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/ConfigIndexingActions.kt b/notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/ConfigIndexingActions.kt index bf0a3293..5a228600 100644 --- a/notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/ConfigIndexingActions.kt +++ b/notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/ConfigIndexingActions.kt @@ -56,7 +56,7 @@ object ConfigIndexingActions { @Suppress("UnusedPrivateMember") private fun validateSlackConfig(slack: Slack, user: User?) { - require(slack.url.contains(Regex("https://hooks\\.slack\\.com/services"))) { + require(slack.url.contains(Regex("https://hooks\\.(?:gov-)?slack\\.com/services"))) { "Wrong Slack url. Should contain \"hooks.slack.com/services/\"" } }