Authenticator: Return gRPC errors (#99000)

This commit is contained in:
Gabriel MABILLE
2025-01-16 14:33:57 +01:00
committed by GitHub
parent 98e9f3a534
commit 70ddf9cb76
3 changed files with 27 additions and 29 deletions

View File

@ -80,7 +80,8 @@ func ProvideUnifiedStorageGrpcService(
// FIXME: This is a temporary solution while we are migrating to the new authn interceptor
// grpcutils.NewGrpcAuthenticator should be used instead.
authn, err := grpcutils.NewGrpcAuthenticatorWithFallback(cfg, reg, tracing, &grpc.Authenticator{})
fallback := &grpc.Authenticator{Tracer: tracing}
authn, err := grpcutils.NewGrpcAuthenticatorWithFallback(cfg, reg, tracing, fallback)
if err != nil {
return nil, err
}