Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2019-11-01 15:21:16 +0300
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2019-11-01 15:21:16 +0300
commitc8d2fa42a571bec9ff225b9a65c98fa47ca0dba7 (patch)
treef18a0e9802307890b08fd7174fc0480e428197b5
parent312a1cd877925445055614a67a3fbf30de3710a0 (diff)
parentc5a32067ea894de136e0fa35ddbaa5232231242d (diff)
Merge branch 'zj-remove-extract-signature' into 'master'
Remove unused ExtractCommitSignature RPC Closes gitlab#31079 See merge request gitlab-org/gitaly!1562
-rw-r--r--internal/service/commit/extractsignature.go35
-rw-r--r--internal/service/commit/extractsignature_test.go165
-rw-r--r--proto/commit.proto10
-rw-r--r--proto/go/gitalypb/commit.pb.go330
-rw-r--r--ruby/lib/gitaly_server/commit_service.rb47
-rw-r--r--ruby/proto/gitaly/commit_services_pb.rb4
6 files changed, 130 insertions, 461 deletions
diff --git a/internal/service/commit/extractsignature.go b/internal/service/commit/extractsignature.go
deleted file mode 100644
index 8cf7d6e02..000000000
--- a/internal/service/commit/extractsignature.go
+++ /dev/null
@@ -1,35 +0,0 @@
-package commit
-
-import (
- "gitlab.com/gitlab-org/gitaly/internal/rubyserver"
- "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
-)
-
-func (s *server) ExtractCommitSignature(request *gitalypb.ExtractCommitSignatureRequest, stream gitalypb.CommitService_ExtractCommitSignatureServer) error {
- ctx := stream.Context()
-
- client, err := s.ruby.CommitServiceClient(ctx)
- if err != nil {
- return err
- }
-
- clientCtx, err := rubyserver.SetHeaders(ctx, request.GetRepository())
- if err != nil {
- return err
- }
-
- rubyStream, err := client.ExtractCommitSignature(clientCtx, request)
- if err != nil {
- return err
- }
-
- return rubyserver.Proxy(func() error {
- resp, err := rubyStream.Recv()
- if err != nil {
- md := rubyStream.Trailer()
- stream.SetTrailer(md)
- return err
- }
- return stream.Send(resp)
- })
-}
diff --git a/internal/service/commit/extractsignature_test.go b/internal/service/commit/extractsignature_test.go
deleted file mode 100644
index 76d90940c..000000000
--- a/internal/service/commit/extractsignature_test.go
+++ /dev/null
@@ -1,165 +0,0 @@
-package commit
-
-import (
- "context"
- "io"
- "io/ioutil"
- "testing"
-
- "github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/gitaly/internal/testhelper"
- "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
- "google.golang.org/grpc/codes"
-)
-
-func TestExtractCommitSignatureSuccess(t *testing.T) {
- exampleSignature, err := ioutil.ReadFile("testdata/commit-5937ac0a7beb003549fc5fd26fc247adbce4a52e-signature")
- require.NoError(t, err)
-
- exampleSignedText, err := ioutil.ReadFile("testdata/commit-5937ac0a7beb003549fc5fd26fc247adbce4a52e-signed-text")
- require.NoError(t, err)
-
- ctx, cancel := testhelper.Context()
- defer cancel()
-
- server, serverSocketPath := startTestServices(t)
- defer server.Stop()
-
- client, conn := newCommitServiceClient(t, serverSocketPath)
- defer conn.Close()
-
- testRepo, _, cleanupFn := testhelper.NewTestRepo(t)
- defer cleanupFn()
-
- testCases := []struct {
- desc string
- req *gitalypb.ExtractCommitSignatureRequest
- signature []byte
- signedText []byte
- }{
- {
- desc: "commit with signature",
- req: &gitalypb.ExtractCommitSignatureRequest{
- Repository: testRepo,
- CommitId: "5937ac0a7beb003549fc5fd26fc247adbce4a52e",
- },
- signature: exampleSignature,
- signedText: exampleSignedText,
- },
- {
- desc: "commit without signature",
- req: &gitalypb.ExtractCommitSignatureRequest{
- Repository: testRepo,
- CommitId: "e63f41fe459e62e1228fcef60d7189127aeba95a",
- },
- signature: nil,
- signedText: nil,
- },
- }
-
- for _, tc := range testCases {
- t.Run(tc.desc, func(t *testing.T) {
- signature, signedText, err := getSignatureAndText(ctx, client, tc.req)
- require.NoError(t, err)
-
- require.Equal(t, string(tc.signature), string(signature))
- require.Equal(t, string(tc.signedText), string(signedText))
- })
- }
-}
-
-func getSignatureAndText(ctx context.Context, client gitalypb.CommitServiceClient, req *gitalypb.ExtractCommitSignatureRequest) ([]byte, []byte, error) {
- stream, err := client.ExtractCommitSignature(ctx, req)
- if err != nil {
- return nil, nil, err
- }
-
- var signature, signedText []byte
- var resp *gitalypb.ExtractCommitSignatureResponse
- for err == nil {
- resp, err = stream.Recv()
- if err != nil && err != io.EOF {
- return nil, nil, err
- }
-
- signature = append(signature, resp.GetSignature()...)
- signedText = append(signedText, resp.GetSignedText()...)
- }
-
- return signature, signedText, nil
-}
-
-func TestExtractCommitSignatureFail(t *testing.T) {
- ctx, cancel := testhelper.Context()
- defer cancel()
-
- server, serverSocketPath := startTestServices(t)
- defer server.Stop()
-
- client, conn := newCommitServiceClient(t, serverSocketPath)
- defer conn.Close()
-
- testRepo, _, cleanupFn := testhelper.NewTestRepo(t)
- defer cleanupFn()
-
- testCases := []struct {
- desc string
- req *gitalypb.ExtractCommitSignatureRequest
- code codes.Code
- }{
- {
- desc: "truncated commit ID",
- req: &gitalypb.ExtractCommitSignatureRequest{
- Repository: testRepo,
- CommitId: "5937ac0a7beb003549fc5fd26",
- },
- code: codes.InvalidArgument,
- },
- {
- desc: "empty commit ID",
- req: &gitalypb.ExtractCommitSignatureRequest{
- Repository: testRepo,
- CommitId: "",
- },
- code: codes.InvalidArgument,
- },
- {
- desc: "empty repo field",
- req: &gitalypb.ExtractCommitSignatureRequest{
- Repository: nil,
- CommitId: "e63f41fe459e62e1228fcef60d7189127aeba95a",
- },
- code: codes.InvalidArgument,
- },
- {
- desc: "commit ID unknown",
- req: &gitalypb.ExtractCommitSignatureRequest{
- Repository: testRepo,
- CommitId: "0000000000000000000000000000000000000000",
- },
- code: codes.OK,
- },
- }
-
- for _, tc := range testCases {
- t.Run(tc.desc, func(t *testing.T) {
- stream, err := client.ExtractCommitSignature(ctx, tc.req)
- require.NoError(t, err)
-
- var resp *gitalypb.ExtractCommitSignatureResponse
- for err == nil {
- resp, err = stream.Recv()
- if resp != nil {
- require.Empty(t, resp.Signature, "signature must be empty")
- require.Empty(t, resp.SignedText, "signed text must be empty")
- }
- }
-
- if tc.code == codes.OK {
- require.Equal(t, io.EOF, err, "expect EOF when there is no error")
- } else {
- testhelper.RequireGrpcError(t, err, tc.code)
- }
- })
- }
-}
diff --git a/proto/commit.proto b/proto/commit.proto
index 8eca1dd75..2f33b325f 100644
--- a/proto/commit.proto
+++ b/proto/commit.proto
@@ -123,16 +123,6 @@ service CommitService {
target_repository_field: "1"
};
}
-
- // ExtractCommitSignature returns a stream because the signed text may be
- // arbitrarily large and signature verification is impossible without the
- // full text.
- rpc ExtractCommitSignature(ExtractCommitSignatureRequest) returns (stream ExtractCommitSignatureResponse) {
- option (op_type) = {
- op: ACCESSOR
- target_repository_field: "1"
- };
- }
rpc GetCommitSignatures(GetCommitSignaturesRequest) returns (stream GetCommitSignaturesResponse) {
option (op_type) = {
op: ACCESSOR
diff --git a/proto/go/gitalypb/commit.pb.go b/proto/go/gitalypb/commit.pb.go
index c83afcbf6..22f4626b2 100644
--- a/proto/go/gitalypb/commit.pb.go
+++ b/proto/go/gitalypb/commit.pb.go
@@ -2675,135 +2675,134 @@ func init() {
func init() { proto.RegisterFile("commit.proto", fileDescriptor_db7163399a465f48) }
var fileDescriptor_db7163399a465f48 = []byte{
- // 2044 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x59, 0xdb, 0x6e, 0xe3, 0xc6,
- 0x19, 0x0e, 0x75, 0x32, 0xf9, 0x4b, 0x71, 0xe4, 0x59, 0xef, 0xae, 0x4c, 0xdb, 0x6b, 0x87, 0xbb,
- 0x9b, 0x3a, 0x48, 0x2b, 0xbb, 0xee, 0x01, 0xed, 0x55, 0xb1, 0x4e, 0x6c, 0xc3, 0xee, 0xda, 0xda,
- 0xd2, 0x02, 0x02, 0x14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 0xed, 0x98, 0x2c, 0x57, 0x31, 0xac, 0xa4, 0xee, 0xf9, 0xe8,
+ 0xf4, 0xe7, 0x31, 0x8e, 0xe8, 0xf4, 0xe7, 0x92, 0x84, 0x84, 0x9a, 0x83, 0xbd, 0xdf, 0xb2, 0x09,
+ 0x8e, 0xd5, 0x6d, 0xf6, 0xdc, 0xd1, 0xae, 0xf8, 0xfc, 0x91, 0xeb, 0x0d, 0x76, 0xc5, 0x32, 0xe2,
+ 0xff, 0xe5, 0xdd, 0x81, 0x2b, 0xdb, 0x93, 0x6e, 0xb7, 0xc2, 0x45, 0x3f, 0xf9, 0x2e, 0x00, 0x00,
+ 0xff, 0xff, 0x40, 0xb0, 0x08, 0x31, 0xa6, 0x1e, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -2838,10 +2837,6 @@ type CommitServiceClient interface {
ListCommitsByOid(ctx context.Context, in *ListCommitsByOidRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByOidClient, error)
ListCommitsByRefName(ctx context.Context, in *ListCommitsByRefNameRequest, opts ...grpc.CallOption) (CommitService_ListCommitsByRefNameClient, error)
FilterShasWithSignatures(ctx context.Context, opts ...grpc.CallOption) (CommitService_FilterShasWithSignaturesClient, error)
- // ExtractCommitSignature returns a stream because the signed text may be
- // arbitrarily large and signature verification is impossible without the
- // full text.
- ExtractCommitSignature(ctx context.Context, in *ExtractCommitSignatureRequest, opts ...grpc.CallOption) (CommitService_ExtractCommitSignatureClient, error)
GetCommitSignatures(ctx context.Context, in *GetCommitSignaturesRequest, opts ...grpc.CallOption) (CommitService_GetCommitSignaturesClient, error)
GetCommitMessages(ctx context.Context, in *GetCommitMessagesRequest, opts ...grpc.CallOption) (CommitService_GetCommitMessagesClient, error)
}
@@ -3300,40 +3295,8 @@ func (x *commitServiceFilterShasWithSignaturesClient) Recv() (*FilterShasWithSig
return m, nil
}
-func (c *commitServiceClient) ExtractCommitSignature(ctx context.Context, in *ExtractCommitSignatureRequest, opts ...grpc.CallOption) (CommitService_ExtractCommitSignatureClient, error) {
- stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[12], "/gitaly.CommitService/ExtractCommitSignature", opts...)
- if err != nil {
- return nil, err
- }
- x := &commitServiceExtractCommitSignatureClient{stream}
- if err := x.ClientStream.SendMsg(in); err != nil {
- return nil, err
- }
- if err := x.ClientStream.CloseSend(); err != nil {
- return nil, err
- }
- return x, nil
-}
-
-type CommitService_ExtractCommitSignatureClient interface {
- Recv() (*ExtractCommitSignatureResponse, error)
- grpc.ClientStream
-}
-
-type commitServiceExtractCommitSignatureClient struct {
- grpc.ClientStream
-}
-
-func (x *commitServiceExtractCommitSignatureClient) Recv() (*ExtractCommitSignatureResponse, error) {
- m := new(ExtractCommitSignatureResponse)
- if err := x.ClientStream.RecvMsg(m); err != nil {
- return nil, err
- }
- return m, nil
-}
-
func (c *commitServiceClient) GetCommitSignatures(ctx context.Context, in *GetCommitSignaturesRequest, opts ...grpc.CallOption) (CommitService_GetCommitSignaturesClient, error) {
- stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[13], "/gitaly.CommitService/GetCommitSignatures", opts...)
+ stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[12], "/gitaly.CommitService/GetCommitSignatures", opts...)
if err != nil {
return nil, err
}
@@ -3365,7 +3328,7 @@ func (x *commitServiceGetCommitSignaturesClient) Recv() (*GetCommitSignaturesRes
}
func (c *commitServiceClient) GetCommitMessages(ctx context.Context, in *GetCommitMessagesRequest, opts ...grpc.CallOption) (CommitService_GetCommitMessagesClient, error) {
- stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[14], "/gitaly.CommitService/GetCommitMessages", opts...)
+ stream, err := c.cc.NewStream(ctx, &_CommitService_serviceDesc.Streams[13], "/gitaly.CommitService/GetCommitMessages", opts...)
if err != nil {
return nil, err
}
@@ -3418,10 +3381,6 @@ type CommitServiceServer interface {
ListCommitsByOid(*ListCommitsByOidRequest, CommitService_ListCommitsByOidServer) error
ListCommitsByRefName(*ListCommitsByRefNameRequest, CommitService_ListCommitsByRefNameServer) error
FilterShasWithSignatures(CommitService_FilterShasWithSignaturesServer) error
- // ExtractCommitSignature returns a stream because the signed text may be
- // arbitrarily large and signature verification is impossible without the
- // full text.
- ExtractCommitSignature(*ExtractCommitSignatureRequest, CommitService_ExtractCommitSignatureServer) error
GetCommitSignatures(*GetCommitSignaturesRequest, CommitService_GetCommitSignaturesServer) error
GetCommitMessages(*GetCommitMessagesRequest, CommitService_GetCommitMessagesServer) error
}
@@ -3487,9 +3446,6 @@ func (*UnimplementedCommitServiceServer) ListCommitsByRefName(req *ListCommitsBy
func (*UnimplementedCommitServiceServer) FilterShasWithSignatures(srv CommitService_FilterShasWithSignaturesServer) error {
return status.Errorf(codes.Unimplemented, "method FilterShasWithSignatures not implemented")
}
-func (*UnimplementedCommitServiceServer) ExtractCommitSignature(req *ExtractCommitSignatureRequest, srv CommitService_ExtractCommitSignatureServer) error {
- return status.Errorf(codes.Unimplemented, "method ExtractCommitSignature not implemented")
-}
func (*UnimplementedCommitServiceServer) GetCommitSignatures(req *GetCommitSignaturesRequest, srv CommitService_GetCommitSignaturesServer) error {
return status.Errorf(codes.Unimplemented, "method GetCommitSignatures not implemented")
}
@@ -3884,27 +3840,6 @@ func (x *commitServiceFilterShasWithSignaturesServer) Recv() (*FilterShasWithSig
return m, nil
}
-func _CommitService_ExtractCommitSignature_Handler(srv interface{}, stream grpc.ServerStream) error {
- m := new(ExtractCommitSignatureRequest)
- if err := stream.RecvMsg(m); err != nil {
- return err
- }
- return srv.(CommitServiceServer).ExtractCommitSignature(m, &commitServiceExtractCommitSignatureServer{stream})
-}
-
-type CommitService_ExtractCommitSignatureServer interface {
- Send(*ExtractCommitSignatureResponse) error
- grpc.ServerStream
-}
-
-type commitServiceExtractCommitSignatureServer struct {
- grpc.ServerStream
-}
-
-func (x *commitServiceExtractCommitSignatureServer) Send(m *ExtractCommitSignatureResponse) error {
- return x.ServerStream.SendMsg(m)
-}
-
func _CommitService_GetCommitSignatures_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(GetCommitSignaturesRequest)
if err := stream.RecvMsg(m); err != nil {
@@ -4043,11 +3978,6 @@ var _CommitService_serviceDesc = grpc.ServiceDesc{
ClientStreams: true,
},
{
- StreamName: "ExtractCommitSignature",
- Handler: _CommitService_ExtractCommitSignature_Handler,
- ServerStreams: true,
- },
- {
StreamName: "GetCommitSignatures",
Handler: _CommitService_GetCommitSignatures_Handler,
ServerStreams: true,
diff --git a/ruby/lib/gitaly_server/commit_service.rb b/ruby/lib/gitaly_server/commit_service.rb
index efd89124c..6f37e1ffb 100644
--- a/ruby/lib/gitaly_server/commit_service.rb
+++ b/ruby/lib/gitaly_server/commit_service.rb
@@ -1,8 +1,5 @@
module GitalyServer
class CommitService < Gitaly::CommitService::Service
- include Utils
- include Gitlab::EncodingHelper
-
def filter_shas_with_signatures(_session, call)
Enumerator.new do |y|
repository = nil
@@ -14,49 +11,5 @@ module GitalyServer
end
end
end
-
- def extract_commit_signature(request, call)
- repository = Gitlab::Git::Repository.from_gitaly(request.repository, call)
-
- Enumerator.new do |y|
- each_commit_signature_chunk(repository, request.commit_id) do |signature_chunk, signed_text_chunk|
- y.yield Gitaly::ExtractCommitSignatureResponse.new(signature: signature_chunk) if signature_chunk.present?
-
- y.yield Gitaly::ExtractCommitSignatureResponse.new(signed_text: signed_text_chunk) if signed_text_chunk.present?
- end
- end
- end
-
- private
-
- # yields either signature chunks or signed_text chunks to the passed block
- def each_commit_signature_chunk(repository, commit_id)
- raise ArgumentError.new("expected a block") unless block_given?
-
- begin
- signature_text, signed_text = Rugged::Commit.extract_signature(repository.rugged, commit_id)
- rescue Rugged::InvalidError
- raise GRPC::InvalidArgument.new("commit lookup failed for #{commit_id.inspect}")
- rescue Rugged::OdbError
- # The client does not care if the commit does not exist
- return
- end
-
- signature_text_io = binary_stringio(signature_text)
- loop do
- chunk = signature_text_io.read(Gitlab.config.git.write_buffer_size)
- break if chunk.nil?
-
- yield chunk, nil
- end
-
- signed_text_io = binary_stringio(signed_text)
- loop do
- chunk = signed_text_io.read(Gitlab.config.git.write_buffer_size)
- break if chunk.nil?
-
- yield nil, chunk
- end
- end
end
end
diff --git a/ruby/proto/gitaly/commit_services_pb.rb b/ruby/proto/gitaly/commit_services_pb.rb
index a2ece6609..f6dd140b7 100644
--- a/ruby/proto/gitaly/commit_services_pb.rb
+++ b/ruby/proto/gitaly/commit_services_pb.rb
@@ -34,10 +34,6 @@ module Gitaly
rpc :ListCommitsByOid, ListCommitsByOidRequest, stream(ListCommitsByOidResponse)
rpc :ListCommitsByRefName, ListCommitsByRefNameRequest, stream(ListCommitsByRefNameResponse)
rpc :FilterShasWithSignatures, stream(FilterShasWithSignaturesRequest), stream(FilterShasWithSignaturesResponse)
- # ExtractCommitSignature returns a stream because the signed text may be
- # arbitrarily large and signature verification is impossible without the
- # full text.
- rpc :ExtractCommitSignature, ExtractCommitSignatureRequest, stream(ExtractCommitSignatureResponse)
rpc :GetCommitSignatures, GetCommitSignaturesRequest, stream(GetCommitSignaturesResponse)
rpc :GetCommitMessages, GetCommitMessagesRequest, stream(GetCommitMessagesResponse)
end