Skip to content

feat: external signer to read encrypted privkeys - #2069

Merged
DariusParvin merged 3 commits into
masterfrom
BG-43925-external-signer-encrypted-passphrase
Mar 8, 2022
Merged

feat: external signer to read encrypted privkeys#2069
DariusParvin merged 3 commits into
masterfrom
BG-43925-external-signer-encrypted-passphrase

Conversation

@DariusParvin

@DariusParvin DariusParvin commented Mar 3, 2022

Copy link
Copy Markdown
Contributor
  • When running in external signer mode, express will expect the private
    key json file to be in the encrypted format (same as on the keycard but
    with escape characters).
  • Express expects the wallet passphrase to be set in the environment
    with the name WALLET_<walletId>_PASSPHRASE
  • Update documentation and move to new file EXTERNAL_SIGNER.md

Ticket: BG-43925

@DariusParvin
DariusParvin force-pushed the BG-43925-external-signer-encrypted-passphrase branch from 5023710 to 8ca00a3 Compare March 3, 2022 20:34
@codecov

codecov Bot commented Mar 3, 2022

Copy link
Copy Markdown

Codecov Report

Merging #2069 (ee6a8e6) into master (9a29d1f) will increase coverage by 53.01%.
The diff coverage is 78.26%.

❗ Current head ee6a8e6 differs from pull request most recent head a456f22. Consider uploading reports for the commit a456f22 to get more accurate results

@@             Coverage Diff             @@
##           master    #2069       +/-   ##
===========================================
+ Coverage        0   53.01%   +53.01%     
===========================================
  Files           0        6        +6     
  Lines           0      564      +564     
  Branches        0       86       +86     
===========================================
+ Hits            0      299      +299     
- Misses          0      259      +259     
- Partials        0        6        +6     
Flag Coverage Δ
unit 53.01% <78.26%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
modules/express/src/clientRoutes.ts 34.26% <78.26%> (ø)
modules/express/src/errors.ts 82.35% <0.00%> (ø)
modules/express/src/expressApp.ts 89.68% <0.00%> (ø)
modules/express/src/args.ts 100.00% <0.00%> (ø)
modules/express/src/retryPromise.ts 11.76% <0.00%> (ø)
modules/express/src/config.ts 100.00% <0.00%> (ø)

@DariusParvin
DariusParvin marked this pull request as ready for review March 3, 2022 21:19
@DariusParvin
DariusParvin force-pushed the BG-43925-external-signer-encrypted-passphrase branch from 6063a07 to 92ad3b0 Compare March 7, 2022 17:30
Darius Parvin added 2 commits March 7, 2022 09:47
- When running in external signer mode, express will expect the private
key json file to be in the encrypted format (same as on the keycard but
with escape characters).
- Express expects the wallet passphrase to be set in the environment
with the name WALLET_<walletId>_PASSPHRASE

Ticket: BG-43925
- private keys should be in encrypted format with escaped characters
- wallet passphrase should be set as a environment var
- add headers and move diagram up

Ticket: BG-43925
@DariusParvin
DariusParvin force-pushed the BG-43925-external-signer-encrypted-passphrase branch from 92ad3b0 to a456f22 Compare March 7, 2022 17:48

@tylerlevine tylerlevine left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good work, just a few comments

Comment thread modules/express/src/clientRoutes.ts Outdated
Comment thread modules/express/src/clientRoutes.ts Outdated
Comment thread modules/express/src/clientRoutes.ts Outdated
Comment thread modules/express/src/clientRoutes.ts Outdated
- create new doc EXTERNAL_SIGNER.md
- add example configuration settings

Ticket: BG-43925
@DariusParvin
DariusParvin force-pushed the BG-43925-external-signer-encrypted-passphrase branch from a456f22 to 2300f14 Compare March 7, 2022 20:45
@DariusParvin

Copy link
Copy Markdown
Contributor Author

Good catches, thanks for the feedback. I've addressed them now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants