RBAC: Add cache for oss rbac permissions (#55098)

* RBAC: Add cache for oss permissions

* RBAC: include service account actions

* RBAC: revert changes to fetch service account permissions

* Update comment for setting

* RBAC: Disable permission chache for tests
This commit is contained in:
Karl Persson
2022-09-14 09:13:10 +02:00
committed by GitHub
parent 716bdde3f6
commit 870929b463
6 changed files with 81 additions and 9 deletions
+2 -1
View File
@@ -17,6 +17,7 @@ import (
"github.com/grafana/grafana/pkg/api/response"
"github.com/grafana/grafana/pkg/api/routing"
"github.com/grafana/grafana/pkg/infra/fs"
"github.com/grafana/grafana/pkg/infra/localcache"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/infra/remotecache"
"github.com/grafana/grafana/pkg/infra/tracing"
@@ -379,7 +380,7 @@ func setupHTTPServerWithCfgDb(
acService = acmock
} else {
var err error
acService, err = acimpl.ProvideService(cfg, database.ProvideService(db), routeRegister)
acService, err = acimpl.ProvideService(cfg, database.ProvideService(db), routeRegister, localcache.ProvideService())
require.NoError(t, err)
ac = acimpl.ProvideAccessControl(cfg)
}