Zanzana: Initial work to run openFGA as embedded or standalone service (#89211)

* Zanana: Initial work to run zanana as ebeddedn or standalone

* Add addr settings for when remote client is used.

* sync dependencies

* Lock mysql driver version
---------

Co-authored-by: Dan Cech <dcech@grafana.com>
This commit is contained in:
Karl Persson
2024-06-18 10:04:18 +02:00
committed by GitHub
co-authored by Dan Cech
parent d0cf8956e2
commit 606a74d0af
20 changed files with 421 additions and 79 deletions
+5
View File
@@ -13,6 +13,7 @@ import (
"github.com/grafana/grafana/pkg/api"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/modules"
"github.com/grafana/grafana/pkg/services/authz"
"github.com/grafana/grafana/pkg/services/featuremgmt"
storageServer "github.com/grafana/grafana/pkg/services/store/entity/server"
"github.com/grafana/grafana/pkg/setting"
@@ -133,6 +134,10 @@ func (s *ModuleServer) Run() error {
return storageServer.ProvideService(s.cfg, s.features, s.log)
})
m.RegisterModule(modules.ZanzanaServer, func() (services.Service, error) {
return authz.ProvideZanzanaService(s.cfg, s.features)
})
m.RegisterModule(modules.All, nil)
return m.Run(s.context)