Engine API Client Authentication for the Merge via HTTP (#10236)

* round tripper with claims

* auth

* edit auth

* test out jwt

* passing

* jwt flag

* comment

* passing

* commentary

* fix up jwt parsing

* gaz

* update jwt libs

* tidy

* gaz

* lint

* tidy up

* comment too long

Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
This commit is contained in:
Raul Jordan
2022-02-25 19:08:43 +00:00
committed by GitHub
parent 6163e091a7
commit f3a7f399c0
20 changed files with 314 additions and 37 deletions

View File

@@ -48,7 +48,7 @@ go_library(
"//validator/slashing-protection-history:go_default_library",
"//validator/slashing-protection-history/format:go_default_library",
"@com_github_fsnotify_fsnotify//:go_default_library",
"@com_github_golang_jwt_jwt//:go_default_library",
"@com_github_golang_jwt_jwt_v4//:go_default_library",
"@com_github_grpc_ecosystem_go_grpc_middleware//:go_default_library",
"@com_github_grpc_ecosystem_go_grpc_middleware//recovery:go_default_library",
"@com_github_grpc_ecosystem_go_grpc_middleware//retry:go_default_library",
@@ -112,7 +112,7 @@ go_test(
"//validator/keymanager/remote-web3signer:go_default_library",
"//validator/slashing-protection-history/format:go_default_library",
"//validator/testing:go_default_library",
"@com_github_golang_jwt_jwt//:go_default_library",
"@com_github_golang_jwt_jwt_v4//:go_default_library",
"@com_github_golang_mock//gomock:go_default_library",
"@com_github_google_uuid//:go_default_library",
"@com_github_pkg_errors//:go_default_library",

View File

@@ -13,7 +13,7 @@ import (
"strings"
"github.com/fsnotify/fsnotify"
"github.com/golang-jwt/jwt"
"github.com/golang-jwt/jwt/v4"
"github.com/pkg/errors"
"github.com/prysmaticlabs/prysm/crypto/rand"
"github.com/prysmaticlabs/prysm/io/file"

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"github.com/golang-jwt/jwt"
"github.com/golang-jwt/jwt/v4"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"

View File

@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/golang-jwt/jwt"
"github.com/golang-jwt/jwt/v4"
"github.com/prysmaticlabs/prysm/testing/require"
"google.golang.org/grpc"
"google.golang.org/grpc/metadata"