-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop on-disk keybase in favor of keyring #5180
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5180 +/- ##
==========================================
- Coverage 54.72% 54.71% -0.02%
==========================================
Files 307 307
Lines 18304 18290 -14
==========================================
- Hits 10017 10007 -10
- Misses 7501 7507 +6
+ Partials 786 776 -10 |
|
||
func isRunningOnServer() bool { | ||
backends := keyring.AvailableBackends() | ||
return len(backends) == 2 && backends[1] == keyring.BackendType("file") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does running on server mean here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a misnomer, I copied it from the original PR and am happy to rename it. It attempts to determine whether the test is running on a developer machine or in a CI container.
This certainly breaks API and ABI. How comes that breaks the state machine too? @fedekunze |
``` $ gaiacli keys update --help Command "update" is deprecated, it takes no effect with the new keyring based backend and is provided only for backward compatibility with the legacy LevelDB based backend. Refer to your operating system's manual to learn how to change your keyring's password. Change the password used to protect private key Usage: gaiacli keys update <name> [flags] Flags: -h, --help help for update Global Flags: --chain-id string Chain ID of tendermint node -e, --encoding string Binary encoding (hex|b64|btc) (default "hex") --home string directory for config and data (default "/home/alessio/.gaiacli") -o, --output string Output format (text|json) (default "text") --trace print out full stack trace on errors ```
1df4010
to
70f672a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
FYI, I'll merge this by EOD. I'll wait for more reviews until then |
@fedekunze your days are quite long 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested ACK
txBytes, err := txBldr.BuildAndSign(fromName, client.DefaultKeyPass, msgs) BuildAndSign uses client.DefaultKeyPass instead of user input |
@andrecronje |
I've decided to keep the passphrase around even if it's empty in order to avoid the |
Rationale for this work is articulated in https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-006-secret-store-replacement.md
Breaking changes:
its subpackages:
to initialise the user session's keyring.
a future release.
CLIContext's new constructors are provided:
CLIContext now encapsulates a io.Reader and provides a
WithInput(io.Reader) method to override the initial
configuration.
Thanks: @poldsam for the original patch #4754
docs/
)Unreleased
section inCHANGELOG.md
Files changed
in the github PR explorerFor Admin Use: