X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2d29045a1b392251b777639634e527abfd8b06e2..0596129229750c593066e414d9315f643585bc3e:/lib/controller/handler.go?ds=sidebyside diff --git a/lib/controller/handler.go b/lib/controller/handler.go index 665fd5c636..e1392bef92 100644 --- a/lib/controller/handler.go +++ b/lib/controller/handler.go @@ -101,7 +101,10 @@ func (h *Handler) setup() { h.federation = federation.New(h.Cluster, &healthFuncs) rtr := router.New(h.federation, router.Config{ MaxRequestSize: h.Cluster.API.MaxRequestSize, - WrapCalls: api.ComposeWrappers(ctrlctx.WrapCallsInTransactions(h.db), oidcAuthorizer.WrapCalls), + WrapCalls: api.ComposeWrappers( + ctrlctx.WrapCallsInTransactions(h.db), + oidcAuthorizer.WrapCalls, + ctrlctx.WrapCallsWithAuth(h.Cluster)), }) healthRoutes := health.Routes{"ping": func() error { _, err := h.db(context.TODO()); return err }} @@ -152,6 +155,7 @@ func (h *Handler) setup() { } go h.trashSweepWorker() + go h.containerLogSweepWorker() } var errDBConnection = errors.New("database connection error")