jhaals / yopass

Secure sharing of secrets, passwords and files
https://yopass.se
Apache License 2.0
1.78k stars 275 forks source link

Azure cache redis integration to Yopass application #2295

Open Rajeshwaric7 opened 4 months ago

Rajeshwaric7 commented 4 months ago

Need help on how do we integrate Azure cache Redis to Yopass application. Please assist on this.

i am following this doc as a reference to connect to the Redis cache DB using env as mentioned in below screenshot.

https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-tutorial-aks-get-started#tutorial-connect-to-azure-cache-for-redis-from-your-application-hosted-on-azure-kubernetes-service

Getting same error:

{"level":"error","ts":1715149906.388099,"caller":"server/server.go:80","msg":"Unable to store secret","error":"memcache: no servers configured or available","stacktrace":"github.com/jhaals/yopass/pkg/server.(Server).createSecret\n\t/yopass/pkg/server/server.go:80\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2122\ngithub.com/jhaals/yopass/pkg/server.newMetricsMiddleware.func1.1\n\t/yopass/pkg/server/server.go:228\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2122\ngithub.com/gorilla/mux.(Router).ServeHTTP\n\t/go/pkg/mod/github.com/gorilla/mux@v1.8.1/mux.go:212\ngithub.com/jhaals/yopass/pkg/server.SecurityHeadersHandler.func1\n\t/yopass/pkg/server/server.go:198\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2122\ngithub.com/gorilla/handlers.loggingHandler.ServeHTTP\n\t/go/pkg/mod/github.com/gorilla/handlers@v1.5.2/logging.go:47\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2936\nnet/http.(*conn).serve\n\t/usr/

image

Rajeshwaric7 commented 3 months ago

@jhaals , Please suggest on reported problem.