fix(secrets): wrap secrets service in authorizer (#17099)
parent
b686a30bd8
commit
dff47721ce
|
@ -163,6 +163,7 @@ func NewAPIHandler(b *APIBackend, opts ...APIHandlerOptFn) *APIHandler {
|
|||
|
||||
orgBackend := NewOrgBackend(b.Logger.With(zap.String("handler", "org")), b)
|
||||
orgBackend.OrganizationService = authorizer.NewOrgService(b.OrganizationService)
|
||||
orgBackend.SecretService = authorizer.NewSecretService(b.SecretService)
|
||||
h.Mount(prefixOrganizations, NewOrgHandler(b.Logger, orgBackend))
|
||||
|
||||
scraperBackend := NewScraperBackend(b.Logger.With(zap.String("handler", "scraper")), b)
|
||||
|
|
Loading…
Reference in New Issue