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:
authorPavlo Strokov <pstrokov@gitlab.com>2020-04-17 15:33:40 +0300
committerJacob Vosmaer <jacob@gitlab.com>2020-04-17 15:33:40 +0300
commit54465275b27178af0268d1281a7f933585f29b0f (patch)
tree27af8b79b0b3a01ea2896c5e4dea2e3fc0c20329 /internal/testhelper/testserver.go
parent0ef438fb0ab8ad9a49a0c42f9722e5647254a253 (diff)
Drop support for Gitaly v1 authentication
Removal of `RPCCredentials` as it was completely the same implementation as `RPCCredentialsV2`. Fix all places where `RPCCredentials` was used. Removal of `v1` token representation check and validation. Closes: https://gitlab.com/gitlab-org/gitaly/-/issues/2498
Diffstat (limited to 'internal/testhelper/testserver.go')
-rw-r--r--internal/testhelper/testserver.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/testhelper/testserver.go b/internal/testhelper/testserver.go
index 175b4c7b7..b8131ecd3 100644
--- a/internal/testhelper/testserver.go
+++ b/internal/testhelper/testserver.go
@@ -202,7 +202,7 @@ func (p *TestServer) Start() error {
opts := []grpc.DialOption{grpc.WithInsecure()}
if p.token != "" {
- opts = append(opts, grpc.WithPerRPCCredentials(gitalyauth.RPCCredentials(p.token)))
+ opts = append(opts, grpc.WithPerRPCCredentials(gitalyauth.RPCCredentialsV2(p.token)))
}
conn, err := grpc.Dial("unix://"+praefectServerSocketPath, opts...)