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
This commit is contained in:
Karl Persson 2022-11-29 10:57:47 +01:00 committed by GitHub
parent 8a0e0584ba
commit 17ec4089dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 0 deletions

1
.github/CODEOWNERS vendored
View File

@ -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

View File

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

View File

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

View File

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

View File

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

View File

@ -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,
},
}
)

View File

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