We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3d6221 commit c58b4e6Copy full SHA for c58b4e6
notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/ConfigIndexingActions.kt
@@ -56,7 +56,9 @@ object ConfigIndexingActions {
56
57
@Suppress("UnusedPrivateMember")
58
private fun validateSlackConfig(slack: Slack, user: User?) {
59
- // TODO: URL validation with rules
+ require(slack.url.contains(Regex("https://hooks\\.slack\\.com/services"))) {
60
+ "Wrong Slack url. Should contain \"hooks.slack.com/services/\""
61
+ }
62
}
63
64
0 commit comments