Skip to content

Commit adc4bf7

Browse files
committed
add keystore signer for beholder auth
1 parent edefd7c commit adc4bf7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkg/loop/internal/core/services/capability/standard/standard_capabilities.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"google.golang.org/grpc"
88
"google.golang.org/protobuf/types/known/emptypb"
99

10+
"github.com/smartcontractkit/chainlink-common/pkg/beholder"
1011
"github.com/smartcontractkit/chainlink-common/pkg/capabilities"
1112
capabilitiespb "github.com/smartcontractkit/chainlink-common/pkg/capabilities/pb"
1213
"github.com/smartcontractkit/chainlink-common/pkg/logger"
@@ -304,6 +305,9 @@ func (s *standardCapabilitiesServer) Initialise(ctx context.Context, request *ca
304305
resources = append(resources, net.Resource{Closer: keystoreConn, Name: "KeystoreConn"})
305306
keyStore := keystoreservice.NewClient(keystoreConn)
306307

308+
// Sets the auth header signing mechanism
309+
beholder.GetClient().SetSigner(keyStore)
310+
307311
capabilitiesRegistryConn, err := s.Dial(request.CapRegistryId)
308312
if err != nil {
309313
s.CloseAll(resources...)

0 commit comments

Comments
 (0)