Skip to content

Commit f55ef29

Browse files
kvapsclaude
andcommitted
feat(satellite): enable gRPC reflection on satellite-side server
Lets grpcurl introspect the satellite's service descriptor for on-cluster smoke tests without shipping a generated proto bundle. Cheap and convenient — disable later if reflection becomes a security concern (currently the satellite gRPC port is cluster-local anyway). Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
1 parent 6682e37 commit f55ef29

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/satellite/agent.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import (
3232
"github.com/cockroachdb/errors"
3333
"google.golang.org/grpc"
3434
"google.golang.org/grpc/credentials/insecure"
35+
"google.golang.org/grpc/reflection"
3536

3637
"github.com/cozystack/blockstor/pkg/drbd"
3738
satellitepb "github.com/cozystack/blockstor/pkg/satellite/proto"
@@ -166,6 +167,7 @@ func (a *Agent) startGRPCServer(ctx context.Context) (string, func(), error) {
166167

167168
gs := grpc.NewServer()
168169
satellitepb.RegisterSatelliteServer(gs, NewGRPCServer(rec))
170+
reflection.Register(gs)
169171

170172
done := make(chan struct{})
171173

0 commit comments

Comments
 (0)