diff --git a/cmd/rdpgw/config/configuration.go b/cmd/rdpgw/config/configuration.go index b1937dd..32a70fa 100644 --- a/cmd/rdpgw/config/configuration.go +++ b/cmd/rdpgw/config/configuration.go @@ -200,11 +200,6 @@ func Load(configFile string) Configuration { Conf.Security.UserTokenEncryptionKey, _ = security.GenerateRandomString(32) log.Printf("No valid `security.usertokenencryptionkey` specified (empty or not 32 characters). Setting to random") } - - if len(Conf.Security.UserTokenSigningKey) != 32 { - Conf.Security.UserTokenSigningKey, _ = security.GenerateRandomString(32) - log.Printf("No valid `security.usertokensigningkey` specified (empty or not 32 characters). Setting to random") - } } if len(Conf.Server.SessionKey) != 32 { diff --git a/go.mod b/go.mod index 995dd5b..7a2845e 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/bolkedebruin/gokrb5/v8 v8.5.0 github.com/coreos/go-oidc/v3 v3.9.0 github.com/fatih/structs v1.1.0 - github.com/go-jose/go-jose/v4 v4.0.1 + github.com/go-jose/go-jose/v4 v4.0.5 github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 github.com/google/uuid v1.6.0 github.com/gorilla/mux v1.8.1 @@ -23,9 +23,9 @@ require ( github.com/msteinert/pam/v2 v2.0.0 github.com/patrickmn/go-cache v2.1.0+incompatible github.com/prometheus/client_golang v1.19.0 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 github.com/thought-machine/go-flags v1.6.3 - golang.org/x/crypto v0.31.0 + golang.org/x/crypto v0.32.0 golang.org/x/oauth2 v0.18.0 google.golang.org/grpc v1.62.1 google.golang.org/protobuf v1.33.0 @@ -36,7 +36,7 @@ require ( github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect - github.com/go-jose/go-jose/v3 v3.0.1 // indirect + github.com/go-jose/go-jose/v3 v3.0.4 // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/gorilla/securecookie v1.1.2 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect @@ -52,7 +52,7 @@ require ( github.com/prometheus/common v0.50.0 // indirect github.com/prometheus/procfs v0.13.0 // indirect golang.org/x/net v0.23.0 // indirect - golang.org/x/sys v0.28.0 // indirect + golang.org/x/sys v0.29.0 // indirect golang.org/x/text v0.21.0 // indirect google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240314234333-6e1732d8331c // indirect