Features: Add aplha feature toggle for authn service (#59469)

* Features: Add aplha feature toggle for authn service

* AuthN: Add service boilerplate

* Set authnz-team as codeowners of authn service
pull/57101/head
Karl Persson 3 years ago committed by GitHub
parent 8a0e0584ba
commit 17ec4089dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .github/CODEOWNERS
  2. 1
      packages/grafana-data/src/types/featureToggles.gen.ts
  3. 4
      pkg/services/authn/authn.go
  4. 8
      pkg/services/authn/authnimpl/service.go
  5. 7
      pkg/services/authn/authntest/fake.go
  6. 5
      pkg/services/featuremgmt/registry.go
  7. 4
      pkg/services/featuremgmt/toggles_gen.go

@ -224,6 +224,7 @@ lerna.json @grafana/frontend-ops
/pkg/services/teamguardian @grafana/grafana-authnz-team
/pkg/services/serviceaccounts @grafana/grafana-authnz-team
/pkg/services/loginattempt @grafana/grafana-authnz-team
/pkg/services/authn @grafana/grafana-authnz-team
# Grafana Partnerships Team
/pkg/infra/httpclient/httpclientprovider/sigv4_middleware.go @grafana/grafana-partnerships-team

@ -82,4 +82,5 @@ export interface FeatureToggles {
nestedFolders?: boolean;
accessTokenExpirationCheck?: boolean;
elasticsearchBackendMigration?: boolean;
authnService?: boolean;
}

@ -0,0 +1,4 @@
package authn
type Service interface {
}

@ -0,0 +1,8 @@
package authnimpl
import "github.com/grafana/grafana/pkg/services/authn"
var _ authn.Service = new(Service)
type Service struct {
}

@ -0,0 +1,7 @@
package authntest
import "github.com/grafana/grafana/pkg/services/authn"
type FakeService struct {
authn.Service
}

@ -367,5 +367,10 @@ var (
Description: "Use Elasticsearch as backend data source",
State: FeatureStateAlpha,
},
{
Name: "authnService",
Description: "Use new auth service to perform authentication",
State: FeatureStateAlpha,
},
}
)

@ -270,4 +270,8 @@ const (
// FlagElasticsearchBackendMigration
// Use Elasticsearch as backend data source
FlagElasticsearchBackendMigration = "elasticsearchBackendMigration"
// FlagAuthnService
// Use new auth service to perform authentication
FlagAuthnService = "authnService"
)

Loading…
Cancel
Save