hoophq / hoop

Hoop.dev is an open-source access gateway that provides secure, seamless, and audited access to databases and infrastructure without exposing credentials or sensitive data.
https://hoop.dev
MIT License
243 stars 10 forks source link

Err: failed listing apps on webhook service provider #575

Closed rcpili-devops closed 35 minutes ago

rcpili-devops commented 2 days ago

So, I’m trying to set up Hoop Gateway, but I’m hitting a snag. Last week, we successfully installed Hoop using the same build version and configuration, but this time, when I try to create a new instance for the new environment, I’m getting the error below.

Error snippet:

{"level":"info","timestamp":"2024-11-29T16:07:48Z","logger":"gateway/main.go:72","msg":"provisioning default organization"}
{"level":"info","timestamp":"2024-11-29T16:07:48Z","logger":"webhooks/webhooks.go:33","msg":"loaded webhook app key with success"}
{"level":"fatal","timestamp":"2024-11-29T16:07:49Z","logger":"gateway/main.go:117","msg":"failed initializing plugin webhooks, reason=failed listing apps on webhook service provider, err=401 Unauthorized","stacktrace":"github.com/hoophq/hoop/gateway.Run\n\t/home/runner/work/hoop/hoop/gateway/main.go:117\ngithub.com/hoophq/hoop/client/cmd.init.func11\n\t/home/runner/work/hoop/hoop/client/cmd/start.go:35\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:920\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968\ngithub.com/hoophq/hoop/client/cmd.Execute\n\t/home/runner/work/hoop/hoop/client/cmd/root.go:38\nmain.main\n\t/home/runner/work/hoop/hoop/client/hoop.go:5\nruntime.main\n\t/opt/hostedtoolcache/go/1.23.3/x64/src/runtime/proc.go:272"}

Version:

{"version":"1.28.10","git_commit":"a212c47e8a479a3cbc08d7b60f36ba148b68960a","build_date":"2024-11-21T19:41:14Z","go_version":"go1.23.3","compiler":"gc","platform":"linux/amd64"}

My assumption is that the issue arises from an attempt to download a plugin from a specific source. However, the process was unsuccessful due to authentication challenges. Please verify my understanding and provide guidance on how to potentially resolve this matter.

sandromello commented 2 days ago

This error is coming from the plugin webhooks, if you're not using it, make sure the environment variable WEBHOOK_APPURL WEBHOOK_APPKEY is not set when starting the gateway. The client will not initialize when this condition is met.

More Information: https://hoop.dev/docs/learn/webhooks-siem