From 872b5d56b57d87e6c384530213e216571aa80d4d Mon Sep 17 00:00:00 2001 From: Mateusz Szostok Date: Fri, 1 Mar 2024 10:25:09 +0100 Subject: [PATCH] Revert protection --- cmd/executor/ai/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/executor/ai/main.go b/cmd/executor/ai/main.go index c1f702c..a235c83 100644 --- a/cmd/executor/ai/main.go +++ b/cmd/executor/ai/main.go @@ -11,7 +11,7 @@ import ( "strings" "github.com/hashicorp/go-plugin" - + "github.com/kubeshop/botkube-cloud-plugins/internal/auth" aibrain "github.com/kubeshop/botkube-cloud-plugins/internal/source/ai-brain" "github.com/kubeshop/botkube/pkg/api" "github.com/kubeshop/botkube/pkg/api/executor" @@ -131,9 +131,9 @@ func (*AIFace) Help(context.Context) (api.Message, error) { func main() { executor.Serve(map[string]plugin.Plugin{ pluginName: &executor.Plugin{ - Executor: &AIFace{ + Executor: auth.NewProtectedExecutor(&AIFace{ httpClient: httpx.NewHTTPClient(), - }, + }), }, }) }