mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Move db package WIP * Implement OSS access control * Register OSS access control * Fix linter error in tests * Fix linter error in evaluator * Simplify OSS tests * Optimize builtin roles * Chore: add comments to the exported functions * Remove init from ossaccesscontrol package (moved to ext) * Add access control as a dependency for http server * Modify middleware to receive fallback function * Middleware: refactor fallback function call * Move unused models to enterprise * Simplify AccessControl type * Chore: use bool IsDisabled() method instead of CanBeDisabled interface
37 lines
1.2 KiB
Go
37 lines
1.2 KiB
Go
package extensions
|
|
|
|
import (
|
|
// Upgrade ldapsync from cron to cron.v3 and
|
|
// remove the cron (v1) dependency
|
|
|
|
_ "github.com/beevik/etree"
|
|
_ "github.com/cortexproject/cortex/pkg/util"
|
|
_ "github.com/crewjam/saml"
|
|
_ "github.com/gobwas/glob"
|
|
"github.com/grafana/grafana/pkg/registry"
|
|
"github.com/grafana/grafana/pkg/services/accesscontrol/ossaccesscontrol"
|
|
"github.com/grafana/grafana/pkg/services/licensing"
|
|
"github.com/grafana/grafana/pkg/services/validations"
|
|
_ "github.com/grafana/loki/pkg/logproto"
|
|
_ "github.com/grafana/loki/pkg/promtail/client"
|
|
_ "github.com/grpc-ecosystem/go-grpc-middleware"
|
|
_ "github.com/jung-kurt/gofpdf"
|
|
_ "github.com/linkedin/goavro/v2"
|
|
_ "github.com/pkg/errors"
|
|
_ "github.com/robfig/cron"
|
|
_ "github.com/robfig/cron/v3"
|
|
_ "github.com/russellhaering/goxmldsig"
|
|
_ "github.com/stretchr/testify/require"
|
|
_ "github.com/timberio/go-datemath"
|
|
_ "golang.org/x/time/rate"
|
|
_ "gopkg.in/square/go-jose.v2"
|
|
)
|
|
|
|
func init() {
|
|
registry.RegisterService(&licensing.OSSLicensingService{})
|
|
registry.RegisterService(&validations.OSSPluginRequestValidator{})
|
|
registry.RegisterService(&ossaccesscontrol.OSSAccessControlService{})
|
|
}
|
|
|
|
var IsEnterprise bool = false
|