diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2f0661efb0d63..ec788b7736924 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -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: diff --git a/.github/renovate.json b/.github/renovate.json index f7ff623c8feba..9c917698c73f9 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -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" ] diff --git a/go.mod b/go.mod index bc85bc76bed71..2271d9269c165 100644 --- a/go.mod +++ b/go.mod @@ -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 @@ -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 @@ -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 @@ -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 ) diff --git a/go.sum b/go.sum index 19d743dc48db3..7f619b3715b64 100644 --- a/go.sum +++ b/go.sum @@ -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= @@ -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= diff --git a/lib/srv/db/access_test.go b/lib/srv/db/access_test.go index fdc6ed434e31e..b50810b5451ca 100644 --- a/lib/srv/db/access_test.go +++ b/lib/srv/db/access_test.go @@ -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" diff --git a/lib/srv/db/redis/client.go b/lib/srv/db/redis/client.go index ef923dce4112b..91460a197d935 100644 --- a/lib/srv/db/redis/client.go +++ b/lib/srv/db/redis/client.go @@ -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" diff --git a/lib/srv/db/redis/cmds.go b/lib/srv/db/redis/cmds.go index bdc8f59063676..c2ef323f5d30e 100644 --- a/lib/srv/db/redis/cmds.go +++ b/lib/srv/db/redis/cmds.go @@ -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" diff --git a/lib/srv/db/redis/engine.go b/lib/srv/db/redis/engine.go index 3998d325ce990..4e94ea01ea23e 100644 --- a/lib/srv/db/redis/engine.go +++ b/lib/srv/db/redis/engine.go @@ -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" diff --git a/lib/srv/db/redis/protocol/resp2.go b/lib/srv/db/redis/protocol/resp2.go index ce9d21db93aa4..0a6a138cfbcdb 100644 --- a/lib/srv/db/redis/protocol/resp2.go +++ b/lib/srv/db/redis/protocol/resp2.go @@ -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. diff --git a/lib/srv/db/redis/protocol/resp2_test.go b/lib/srv/db/redis/protocol/resp2_test.go index 8ac9a90a7bf2c..9c9bcbaec2477 100644 --- a/lib/srv/db/redis/protocol/resp2_test.go +++ b/lib/srv/db/redis/protocol/resp2_test.go @@ -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" ) diff --git a/lib/srv/db/redis/test.go b/lib/srv/db/redis/test.go index 65c4c3a5dd7bc..0272a295c1eb4 100644 --- a/lib/srv/db/redis/test.go +++ b/lib/srv/db/redis/test.go @@ -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"