unistore: handle auth when fallback is used (#96772)

* handle auth when fallback is used

* handle auth when fallback is used

* add traces
This commit is contained in:
Georges Chaudy
2024-11-21 11:21:22 +01:00
committed by GitHub
parent ef3759449d
commit 8bb59c64f0
4 changed files with 55 additions and 10 deletions

View File

@ -31,7 +31,7 @@ func NewResourceServer(ctx context.Context, db infraDB.DB, cfg *setting.Cfg,
Reg: reg,
}
if ac != nil {
opts.AccessClient = resource.NewAuthzLimitedClient(ac)
opts.AccessClient = resource.NewAuthzLimitedClient(ac, resource.AuthzOptions{Tracer: tracer})
}
// Support local file blob
if strings.HasPrefix(opts.Blob.URL, "./data/") {