Skip to content

Commit

Permalink
Update redis driver to v9.0.2 (Teleport fork) (gravitational#30294)
Browse files Browse the repository at this point in the history
* Update redis driver to v9.0.2 (Teleport fork)

* update .github
  • Loading branch information
greedy52 authored Aug 11, 2023
1 parent 1e4a54e commit 19fe689
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ updates:
- dependency-name: github.com/alecthomas/kingpin/v2
- dependency-name: github.com/coreos/go-oidc
- dependency-name: github.com/go-mysql-org/go-mysql
- dependency-name: github.com/go-redis/redis/v9
- dependency-name: github.com/gogo/protobuf
- dependency-name: github.com/julienschmidt/httprouter
- dependency-name: github.com/keys-pub/go-libfido2
- dependency-name: github.com/microsoft/go-mssqldb
- dependency-name: github.com/redis/go-redis/v9
- dependency-name: github.com/vulcand/predicate
open-pull-requests-limit: 10
reviewers:
Expand Down
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
"github.com/aquasecurity/libbpfgo",
"github.com/coreos/go-oidc",
"github.com/go-mysql-org/go-mysql",
"github.com/go-redis/redis/v9",
"github.com/gogo/protobuf",
"github.com/gravitational/teleport/api",
"github.com/gravitational/ttlmap",
"github.com/julienschmidt/httprouter",
"github.com/keys-pub/go-libfido2",
"github.com/microsoft/go-mssqldb",
"github.com/redis/go-redis/v9",
"github.com/vulcand/predicate",
"go.mongodb.org/mongo-driver"
]
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ require (
github.com/go-logr/logr v1.2.4
github.com/go-mysql-org/go-mysql v1.5.0 // replaced
github.com/go-piv/piv-go v1.11.0
github.com/go-redis/redis/v9 v9.0.0-rc.1 // replaced
github.com/go-resty/resty/v2 v2.7.0
github.com/go-webauthn/webauthn v0.8.6
github.com/gocql/gocql v1.5.2
Expand Down Expand Up @@ -135,6 +134,7 @@ require (
github.com/prometheus/client_golang v1.16.0
github.com/prometheus/client_model v0.4.0
github.com/prometheus/common v0.44.0
github.com/redis/go-redis/v9 v9.0.2 // replaced
github.com/russellhaering/gosaml2 v0.9.1
github.com/russellhaering/goxmldsig v1.4.0
github.com/sashabaranov/go-openai v1.14.1
Expand Down Expand Up @@ -420,7 +420,6 @@ replace (
github.com/coreos/go-oidc => github.com/gravitational/go-oidc v0.1.0
github.com/datastax/go-cassandra-native-protocol => github.com/gravitational/go-cassandra-native-protocol v0.0.0-20221005103706-b9e66c056e90
github.com/go-mysql-org/go-mysql => github.com/gravitational/go-mysql v1.5.0-teleport.1
github.com/go-redis/redis/v9 => github.com/gravitational/redis/v9 v9.0.0-teleport.3
github.com/gogo/protobuf => github.com/gravitational/protobuf v1.3.2-teleport.1
github.com/gravitational/teleport/api => ./api
github.com/julienschmidt/httprouter => github.com/gravitational/httprouter v1.3.1-0.20220408074523-c876c5e705a5
Expand All @@ -429,5 +428,6 @@ replace (
// replace module github.com/moby/spdystream until https://github.com/moby/spdystream/pull/91 merges and deps are updated
// otherwise tests fail with a data race detection.
github.com/moby/spdystream => github.com/gravitational/spdystream v0.0.0-20230512133543-4e46862ca9bf
github.com/redis/go-redis/v9 => github.com/gravitational/redis/v9 v9.0.2-teleport.1
github.com/vulcand/predicate => github.com/gravitational/predicate v1.3.1
)
6 changes: 4 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx2
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
github.com/boombuler/barcode v1.0.1 h1:NDBbPmhS+EqABEs5Kg3n/5ZNjy73Pz7SIV+KCeqyXcs=
github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
github.com/bsm/ginkgo/v2 v2.5.0 h1:aOAnND1T40wEdAtkGSkvSICWeQ8L3UASX7YVCqQx+eQ=
github.com/bsm/gomega v1.20.0 h1:JhAwLmtRzXFTx2AkALSLa8ijZafntmhSoU63Ok18Uq8=
github.com/bufbuild/connect-go v1.10.0 h1:QAJ3G9A1OYQW2Jbk3DeoJbkCxuKArrvZgDt47mjdTbg=
github.com/bufbuild/connect-go v1.10.0/go.mod h1:CAIePUgkDR5pAFaylSMtNK45ANQjp9JvpluG20rhpV8=
github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0=
Expand Down Expand Up @@ -807,8 +809,8 @@ github.com/gravitational/predicate v1.3.1 h1:f1uGg2FF6z5wZbcafYpLZJ1gl+82I0MlSd0
github.com/gravitational/predicate v1.3.1/go.mod h1:H5e9dUW7zb/cuKkkhfnyT9SsI/WHWJ8Ra011La16DTY=
github.com/gravitational/protobuf v1.3.2-teleport.1 h1:h5mh+UOKPurqDxn1hRVcr1WzSkmBi+D9qkXpaXA9PFM=
github.com/gravitational/protobuf v1.3.2-teleport.1/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
github.com/gravitational/redis/v9 v9.0.0-teleport.3 h1:Eg/j3jiNUZ558KDXOqzF682EFmf97vxAFFnMgZ0YHns=
github.com/gravitational/redis/v9 v9.0.0-teleport.3/go.mod h1:8et+z03j0l8N+DvsVnclzjf3Dl/pFHgRk+2Ct1qw66A=
github.com/gravitational/redis/v9 v9.0.2-teleport.1 h1:BYrMUySxKFOkZ/4XjKEIvkDYqBBBeRGs3eVLLS9btrA=
github.com/gravitational/redis/v9 v9.0.2-teleport.1/go.mod h1:/xDTe9EF1LM61hek62Poq2nzQSGj0xSrEtEHbBQevps=
github.com/gravitational/roundtrip v1.0.2 h1:eOCY0NEKKaB0ksJmvhO6lPMFz1pIIef+vyPBTBROQ5c=
github.com/gravitational/roundtrip v1.0.2/go.mod h1:fuI1booM2hLRA/B/m5MRAPOU6mBZNYcNycono2UuTw0=
github.com/gravitational/spdystream v0.0.0-20230512133543-4e46862ca9bf h1:aXnqDSit8L1qhI0+QdbJh+MTUFKXG7qbkZXnfr7L96A=
Expand Down
2 changes: 1 addition & 1 deletion lib/srv/db/access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ import (
elastic "github.com/elastic/go-elasticsearch/v8"
mysqlclient "github.com/go-mysql-org/go-mysql/client"
mysqllib "github.com/go-mysql-org/go-mysql/mysql"
goredis "github.com/go-redis/redis/v9"
"github.com/google/uuid"
"github.com/gravitational/trace"
"github.com/jackc/pgconn"
"github.com/jonboulle/clockwork"
mssql "github.com/microsoft/go-mssqldb"
opensearchclt "github.com/opensearch-project/opensearch-go/v2"
goredis "github.com/redis/go-redis/v9"
"github.com/stretchr/testify/require"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"
Expand Down
2 changes: 1 addition & 1 deletion lib/srv/db/redis/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"strings"
"sync"

"github.com/go-redis/redis/v9"
"github.com/gravitational/trace"
"github.com/redis/go-redis/v9"

"github.com/gravitational/teleport/lib/services"
"github.com/gravitational/teleport/lib/srv/db/common"
Expand Down
2 changes: 1 addition & 1 deletion lib/srv/db/redis/cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"fmt"
"strings"

"github.com/go-redis/redis/v9"
"github.com/gravitational/trace"
"github.com/redis/go-redis/v9"
"golang.org/x/exp/slices"

"github.com/gravitational/teleport/lib/defaults"
Expand Down
2 changes: 1 addition & 1 deletion lib/srv/db/redis/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/elasticache"
"github.com/go-redis/redis/v9"
"github.com/gravitational/trace"
"github.com/redis/go-redis/v9"
"golang.org/x/exp/slices"

"github.com/gravitational/teleport/api/types"
Expand Down
2 changes: 1 addition & 1 deletion lib/srv/db/redis/protocol/resp2.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"strconv"
"strings"

"github.com/go-redis/redis/v9"
"github.com/gravitational/trace"
"github.com/redis/go-redis/v9"
)

// ErrCmdNotSupported is returned when an unsupported Redis command is sent to Teleport proxy.
Expand Down
2 changes: 1 addition & 1 deletion lib/srv/db/redis/protocol/resp2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"fmt"
"testing"

"github.com/go-redis/redis/v9"
"github.com/gravitational/trace"
"github.com/redis/go-redis/v9"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion lib/srv/db/redis/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"time"

"github.com/alicebob/miniredis/v2"
"github.com/go-redis/redis/v9"
"github.com/gravitational/trace"
"github.com/redis/go-redis/v9"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/require"

Expand Down

0 comments on commit 19fe689

Please sign in to comment.