Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore(deps): drop lestrrat-go/jwx, use go-jose in oidc test (#20272)
Danny Xu586cb11e89e7
diff --git a/backend/plugin/idp/oidc/oidc_test.go b/backend/plugin/idp/oidc/oidc_test.goindex 73243aeefb..f00a01a4db 100644--- a/backend/plugin/idp/oidc/oidc_test.go+++ b/backend/plugin/idp/oidc/oidc_test.go@@ -12,8 +12,8 @@ import ("testing""time"+ "github.com/go-jose/go-jose/v4""github.com/golang-jwt/jwt/v5"- "github.com/lestrrat-go/jwx/v3/jwk""github.com/stretchr/testify/assert""github.com/stretchr/testify/require"@@ -132,13 +132,11 @@ func newMockServer(t *testing.T, tls bool, userinfo []byte) *httptest.Server {rs256, err := rsa.GenerateKey(rand.Reader, 2048)require.NoError(t, err)mux.HandleFunc("/oauth/discovery/keys", func(w http.ResponseWriter, _ *http.Request) {- key, err := jwk.Import(rs256.PublicKey)- require.NoError(t, err)-- err = key.Set(jwk.KeyUsageKey, "sig")- require.NoError(t, err)- err = key.Set(jwk.AlgorithmKey, "RS256")- require.NoError(t, err)+ key := jose.JSONWebKey{+ Key: &rs256.PublicKey,+ Use: "sig",+ Algorithm: "RS256",+ }marshalledKey, err := json.Marshal(key)require.NoError(t, err)diff --git a/go.mod b/go.modindex af7d14db48..18b55b81fc 100644--- a/go.mod+++ b/go.mod@@ -63,7 +63,6 @@ require (github.com/jackc/pgtype v1.14.4github.com/jackc/pgx/v5 v5.9.2github.com/labstack/echo-contrib/v5 v5.0.1- github.com/lestrrat-go/jwx/v3 v3.1.1github.com/lib/pq v1.12.3github.com/lor00x/goldap v0.0.0-20240304151906-8d785c64d1c8github.com/mattn/go-sqlite3 v1.14.44@@ -204,8 +203,6 @@ require (github.com/kr/pretty v0.3.1 // indirectgithub.com/kr/text v0.2.0 // indirectgithub.com/kylelemons/godebug v1.1.0 // indirect- github.com/lestrrat-go/httprc/v3 v3.0.5 // indirect- github.com/lestrrat-go/option/v2 v2.0.0 // indirectgithub.com/magiconair/properties v1.8.10 // indirectgithub.com/mitchellh/go-homedir v1.1.0 // indirectgithub.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 // indirect@@ -247,7 +244,6 @@ require (github.com/twpayne/go-kml v1.5.2 // indirectgithub.com/uber/jaeger-client-go v2.30.0+incompatible // indirectgithub.com/uber/jaeger-lib v2.4.1+incompatible // indirect- github.com/valyala/fastjson v1.6.10 // indirectgithub.com/vcaesar/cedar v0.30.0 // indirectgithub.com/xuri/efp v0.0.1 // indirectgithub.com/xuri/nfp v0.0.2-0.20250530014748-2ddeb826f9a9 // indirect@@ -305,7 +301,6 @@ require (github.com/cockroachdb/cockroach-go/v2 v2.4.3github.com/danjacques/gofslock v0.0.0-20220131014315-6e321f4509c8 // indirectgithub.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect- github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.1 // indirectgithub.com/envoyproxy/protoc-gen-validate v1.3.3 // indirectgithub.com/gabriel-vasile/mimetype v1.4.9 // indirectgithub.com/go-faster/city v1.0.1 // indirect@@ -329,8 +324,6 @@ require (github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirectgithub.com/klauspost/compress v1.18.5 // indirectgithub.com/labstack/echo/v5 v5.1.1- github.com/lestrrat-go/blackmagic v1.0.4 // indirect- github.com/lestrrat-go/httpcc v1.0.1 // indirectgithub.com/lufia/plan9stats v0.0.0-20230326075908-cb1d2100619a // indirectgithub.com/openark/golib v0.0.0-20210531070646-355f37940af8github.com/opentracing/basictracer-go v1.1.0 // indirectdiff --git a/go.sum b/go.sumindex d24ba86c2e..4151683120 100644--- a/go.sum+++ b/go.sum@@ -346,8 +346,6 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsgithub.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=-github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.1 h1:5RVFMOWjMyRy8cARdy79nAmgYw3hK/4HUq48LQ6Wwqo=-github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.1/go.mod h1:ZXNYxsqcloTdSy/rNShjYzMhyjf0LaoftYK0p+A3h40=github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8=github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA=github.com/dgryski/go-farm v0.0.0-20240924180020-3414d57e47da h1:aIftn67I1fkbMa512G+w+Pxci9hJPB8oMnkcP3iZF38=@@ -689,20 +687,6 @@ github.com/labstack/echo-contrib/v5 v5.0.1 h1:Z23m8p1F9Doax+pa8ek8ll5d6wvzCbvrAngithub.com/labstack/echo-contrib/v5 v5.0.1/go.mod h1:ajrqEwSloW0vQSTfJ4j9u4tHoS+dg4umCDPxuTvChZs=github.com/labstack/echo/v5 v5.1.1 h1:4QkvKoS8ps5ch49t8b72QS9Z581ytgxhTzxuB/CBA2I=github.com/labstack/echo/v5 v5.1.1/go.mod h1:SyvlSdObGjRXeQfCCXW/sybkZdOOQZBmpKF0bvALaeo=-github.com/lestrrat-go/blackmagic v1.0.4 h1:IwQibdnf8l2KoO+qC3uT4OaTWsW7tuRQXy9TRN9QanA=-github.com/lestrrat-go/blackmagic v1.0.4/go.mod h1:6AWFyKNNj0zEXQYfTMPfZrAXUWUfTIZ5ECEUEJaijtw=-github.com/lestrrat-go/dsig v1.2.1 h1:MwxzZhE4+4fguHi+uDALKVlC3Cn+O1QU1Q/F8D7hVIc=-github.com/lestrrat-go/dsig v1.2.1/go.mod h1:RD2eOaidyPvpc7IJQoO3Qq52RWdy8ZcJs8lrOnoa1Kc=-github.com/lestrrat-go/dsig-secp256k1 v1.0.0 h1:JpDe4Aybfl0soBvoVwjqDbp+9S1Y2OM7gcrVVMFPOzY=-github.com/lestrrat-go/dsig-secp256k1 v1.0.0/go.mod h1:CxUgAhssb8FToqbL8NjSPoGQlnO4w3LG1P0qPWQm/NU=-github.com/lestrrat-go/httpcc v1.0.1 h1:ydWCStUeJLkpYyjLDHihupbn2tYmZ7m22BGkcvZZrIE=-github.com/lestrrat-go/httpcc v1.0.1/go.mod h1:qiltp3Mt56+55GPVCbTdM9MlqhvzyuL6W/NMDA8vA5E=-github.com/lestrrat-go/httprc/v3 v3.0.5 h1:S+Mb4L2I+bM6JGTibLmxExhyTOqnXjqx+zi9MoXw/TM=-github.com/lestrrat-go/httprc/v3 v3.0.5/go.mod h1:mSMtkZW92Z98M5YoNNztbRGxbXHql7tSitCvaxvo9l0=-github.com/lestrrat-go/jwx/v3 v3.1.1 h1:yd9AdPmZ4INnQ7k42IrzXYpnEG803+SrQ6hdMvzHJzw=-github.com/lestrrat-go/jwx/v3 v3.1.1/go.mod h1:uw/MN2M/Xiu4FhwcIwH11Zsh9JWx9SWzgALl7/uIEkU=-github.com/lestrrat-go/option/v2 v2.0.0 h1:XxrcaJESE1fokHy3FpaQ/cXW8ZsIdWcdFzzLOcID3Ss=-github.com/lestrrat-go/option/v2 v2.0.0/go.mod h1:oSySsmzMoR0iRzCDCaUfsCzxQHUEuhOViQObyy7S6Vg=github.com/lib/pq v0.0.0-20180327071824-d34b9ff171c2/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=@@ -1020,8 +1004,6 @@ github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOgithub.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg=github.com/uber/jaeger-lib v2.4.1+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U=-github.com/valyala/fastjson v1.6.10 h1:/yjJg8jaVQdYR3arGxPE2X5z89xrlhS0eGXdv+ADTh4=-github.com/valyala/fastjson v1.6.10/go.mod h1:e6FubmQouUNP73jtMLmcbxS6ydWIpOfhz34TSfO3JaE=github.com/vcaesar/cedar v0.30.0 h1:9fSDpM7FTjjUdPiBUUa0MWYMRGSEcqgFXvppZcZ4d7Y=github.com/vcaesar/cedar v0.30.0/go.mod h1:lyuGvALuZZDPNXwpzv/9LyxW+8Y6faN7zauFezNsnik=github.com/vcaesar/tt v0.20.1 h1:D/jUeeVCNbq3ad8M7hhtB3J9x5RZ6I1n1eZ0BJp7M+4=