From 50fc9fe941b137f3c462f2991e9eca7af5a53614 Mon Sep 17 00:00:00 2001 From: Jihyeon Gim Date: Thu, 3 Sep 2026 18:15:04 +0900 Subject: [PATCH] rdma: authenticate RC routes through the terminal error path The RC auth adapter returned signature-verification errors to Fiber, so the production S3 error handler collapsed them into a generic 500 response; authentication failures lost their real status and code the same way route failures did before the terminal serializer. The adapter now sends verification errors through the shared serializer as well. --- cmd/vgwrdma/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/vgwrdma/main.go b/cmd/vgwrdma/main.go index 45975089..29de5ec1 100644 --- a/cmd/vgwrdma/main.go +++ b/cmd/vgwrdma/main.go @@ -1162,7 +1162,7 @@ func runGateway(ctx context.Context, be backend.Backend) error { // chain as usual. rcAuth := func(ctx fiber.Ctx) error { if err := rcVerify(ctx); err != nil { - return err + return rcroutes.WriteRouteError(ctx, err) } return ctx.Next() }