-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Beholder CSA Authentication (#15160)
* Bump chainlink-common to PR latest * Wire up Beholder auth in loop * Move keystore auth into NewApplication * Wire up CSA Auth for Beholder * Use simplified auth header approach * Add auth header after logging config * Remove empty line for linter * Put back mistakenly removed imports * Update to latest chainlink-common@INFOPLAT-1071-beholder-csa-signer-auth_2 * Rename return vars Co-authored-by: Jordan Krage <jmank88@gmail.com> * Bump chainlink-common from latest INFOPLAT-1071-beholder-csa-signer-auth_2 * Bump chainlink-common to latest INFOPLAT-1071-beholder-csa-signer-auth_2 * Bump chainlink-common to latest INFOPLAT-1071-beholder-csa-signer-auth_2 * go mod tidy for ./integration-tests * make gomodtidy * Add changeset file * Potential test fix * Clean up the test: remove a few unused mocks * Revert "Clean up the test: remove a few unused mocks" This reverts commit f55cc8e. * Revert "Potential test fix" This reverts commit cb348aa. * Adding InstanceAppFactoryWithKeystoreMock for shell_local tests (#15167) * Revert "remove go.mod replace with real version (#15142)" This reverts commit d61ce51. * Run go mod tidy * Add Beholder auth to deployment LoopRegistry * Update chainlink-common to PR latest * Run go mod tidy * Prep keystore for beholder auth * Bump chainlink-common to latest * Run go mod tidy --------- Co-authored-by: 4of9 <177086174+4of9@users.noreply.github.com> Co-authored-by: Geert G <117188496+cll-gg@users.noreply.github.com> Co-authored-by: Jordan Krage <jmank88@gmail.com> Co-authored-by: patrickhuie19 <patrick.huie@smartcontract.com> Co-authored-by: krehermann <16602512+krehermann@users.noreply.github.com>
- Loading branch information
1 parent
1757514
commit 816dcf8
Showing
27 changed files
with
143 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"chainlink": minor | ||
--- | ||
|
||
Add CSA authentication support to Beholder #added |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package keystore | ||
|
||
import ( | ||
"encoding/hex" | ||
|
||
"github.com/smartcontractkit/chainlink-common/pkg/beholder" | ||
) | ||
|
||
func BuildBeholderAuth(keyStore Master) (authHeaders map[string]string, pubKeyHex string, err error) { | ||
csaKeys, err := keyStore.CSA().GetAll() | ||
if err != nil { | ||
return nil, "", err | ||
} | ||
csaKey := csaKeys[0] | ||
csaPrivKey := csaKey.Raw().Bytes() | ||
authHeaders = beholder.BuildAuthHeaders(csaPrivKey) | ||
pubKeyHex = hex.EncodeToString(csaKey.PublicKey) | ||
return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.