From 67f2e41f2028bbf1f1681d433ebefb56049bb210 Mon Sep 17 00:00:00 2001 From: Hitoshi Mitake Date: Thu, 13 Apr 2017 17:39:09 +0900 Subject: [PATCH] etcdserver: let Status() not require authentication The information that can be obtained with the RPC doesn't need to be protected. Fix https://github.com/coreos/etcd/issues/7721 --- etcdserver/api/v3rpc/maintenance.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/etcdserver/api/v3rpc/maintenance.go b/etcdserver/api/v3rpc/maintenance.go index 50d9abc9011..3657d036082 100644 --- a/etcdserver/api/v3rpc/maintenance.go +++ b/etcdserver/api/v3rpc/maintenance.go @@ -186,9 +186,5 @@ func (ams *authMaintenanceServer) Hash(ctx context.Context, r *pb.HashRequest) ( } func (ams *authMaintenanceServer) Status(ctx context.Context, ar *pb.StatusRequest) (*pb.StatusResponse, error) { - if err := ams.isAuthenticated(ctx); err != nil { - return nil, err - } - return ams.maintenanceServer.Status(ctx, ar) }