diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2020-04-17 15:33:40 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2020-04-17 15:33:40 +0300 |
commit | 54465275b27178af0268d1281a7f933585f29b0f (patch) | |
tree | 27af8b79b0b3a01ea2896c5e4dea2e3fc0c20329 /internal/testhelper/testserver.go | |
parent | 0ef438fb0ab8ad9a49a0c42f9722e5647254a253 (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.go | 2 |
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...) |