From 23ea3a1d94a4115f4d5bb8ba30f75b5282f7f3df Mon Sep 17 00:00:00 2001 From: Doryu Date: Thu, 27 Nov 2025 00:26:39 +0100 Subject: [PATCH 1/3] Update server.go --- validator/rpc/server.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/validator/rpc/server.go b/validator/rpc/server.go index a718799cc81f..2ea9faf273fa 100644 --- a/validator/rpc/server.go +++ b/validator/rpc/server.go @@ -78,7 +78,6 @@ type Server struct { startFailure error ctx context.Context walletDir string - jwtSecret []byte grpcHeaders []string } @@ -219,7 +218,6 @@ func (s *Server) InitializeRoutes() error { s.router.HandleFunc("GET "+api.WebUrlPrefix+"wallet", s.WalletConfig) s.router.HandleFunc("POST "+api.WebUrlPrefix+"wallet/create", s.CreateWallet) s.router.HandleFunc("POST "+api.WebUrlPrefix+"wallet/keystores/validate", s.ValidateKeystores) - s.router.HandleFunc("POST "+api.WebUrlPrefix+"wallet/recover", s.RecoverWallet) // slashing protection endpoints s.router.HandleFunc("GET "+api.WebUrlPrefix+"slashing-protection/export", s.ExportSlashingProtection) s.router.HandleFunc("POST "+api.WebUrlPrefix+"slashing-protection/import", s.ImportSlashingProtection) From 944726bb10bfa49a2e8626a1226a5f27ebe22de3 Mon Sep 17 00:00:00 2001 From: Doryu Date: Thu, 27 Nov 2025 00:28:21 +0100 Subject: [PATCH 2/3] Update auth_token.go --- validator/rpc/auth_token.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/validator/rpc/auth_token.go b/validator/rpc/auth_token.go index 8f9ac76adab6..983e6a9e371b 100644 --- a/validator/rpc/auth_token.go +++ b/validator/rpc/auth_token.go @@ -60,11 +60,10 @@ func (s *Server) initializeAuthToken() error { log.Error(err) } }() - secret, token, err := readAuthTokenFile(f) + _, token, err := readAuthTokenFile(f) if err != nil { return err } - s.jwtSecret = secret s.authToken = token return nil } From 0897ece10aabed16d57a9e8cb084cfc599e4f502 Mon Sep 17 00:00:00 2001 From: Doryu Date: Thu, 27 Nov 2025 00:29:51 +0100 Subject: [PATCH 3/3] Update auth_token_test.go --- validator/rpc/auth_token_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/validator/rpc/auth_token_test.go b/validator/rpc/auth_token_test.go index e8989bdbd7df..78df046ab45b 100644 --- a/validator/rpc/auth_token_test.go +++ b/validator/rpc/auth_token_test.go @@ -14,7 +14,6 @@ import ( "github.com/OffchainLabs/prysm/v7/api" "github.com/OffchainLabs/prysm/v7/io/file" "github.com/OffchainLabs/prysm/v7/testing/require" - "github.com/ethereum/go-ethereum/common/hexutil" "github.com/golang-jwt/jwt/v4" logTest "github.com/sirupsen/logrus/hooks/test" "google.golang.org/grpc" @@ -125,7 +124,6 @@ func TestServer_LegacyTokensStillWork(t *testing.T) { err = srv.initializeAuthToken() require.NoError(t, err) - require.Equal(t, hexutil.Encode(srv.jwtSecret), "0xb5bbbaf533b625a93741978857f13d7adeca58445a1fb00ecf3373420b92776c") require.Equal(t, srv.authToken, "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.MxwOozSH-TLbW_XKepjyYDHm2IT8Ki0tD3AHuajfNMg") f, err := os.Open(filepath.Clean(srv.authTokenPath))