-
Notifications
You must be signed in to change notification settings - Fork 373
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
feat: In the gnokey CLI, add command to update the password #2700
Conversation
Signed-off-by: Jeff Thompson <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2700 +/- ##
==========================================
+ Coverage 60.95% 60.97% +0.02%
==========================================
Files 564 565 +1
Lines 75273 75314 +41
==========================================
+ Hits 45884 45926 +42
+ Misses 26019 26015 -4
- Partials 3370 3373 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
LGTM
In the meantime, do we really need this command? You can simply export and re-import the key and set a new password. It's not like you will update your password every day.
On the other hand, this command doesn't seem to cause any harm, so I suppose it's fine to have it.
Signed-off-by: Jeff Thompson <[email protected]>
Signed-off-by: Jeff Thompson <[email protected]>
Signed-off-by: Jeff Thompson <[email protected]>
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.
LGTM for the docs
In PR gnolang/gno#2700, the keybase API method `Update` is renamed to `Rotate` because "Update" is too general. (This method only changes the password.) We want Gno Native Kit to closely follow the core APIs, so this PR renames `UpdatePassword` to `RotatePassword`. * In go.mod, use the latest gnolang/gno . * In the API, rename UpdatePassword to RotatePassword. Run `make regenerate` . * Push to buf the latest API and update expo dependencies. --------- Signed-off-by: Jeff Thompson <[email protected]>
The
Keybase
API supports a method to change the password of a key. It is currently calledUpdate
which is confusing. This PR renames the API function toRotate
and adds the "rotate" command to the gnokey CLI.BREAKING CHANGE: The Keybase API function
Update
is renamed toRotate
. (Note: I haven't seen code using this function, so it should be minimal impact.)Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description