Skip to content
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

Implement private keys export/import symmetric functionalities #4436

Merged
merged 10 commits into from
May 30, 2019

Conversation

alessio
Copy link
Contributor

@alessio alessio commented May 29, 2019

Add Keybase's ExportPrivKey()/ImportPrivKey() API calls to export/import
ASCII-armored private keys. Relevant keys subcommands are provided as well.

Closes: #2020

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote tests
  • Updated relevant documentation (docs/)
  • Added a relevant changelog entry: clog add [section] [stanza] [message]
  • rereviewed Files changed in the github PR explorer

For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@alessio alessio marked this pull request as ready for review May 29, 2019 15:55
@alessio alessio changed the title Implement private keys export/import symmetric functionalities WIP: Implement private keys export/import symmetric functionalities May 29, 2019
@alessio alessio added the WIP label May 29, 2019
@alessio alessio requested review from zmanian and cwgoes May 29, 2019 15:58
@codecov
Copy link

codecov bot commented May 29, 2019

Codecov Report

Merging #4436 into master will increase coverage by 0.05%.
The diff coverage is 66.19%.

@@            Coverage Diff             @@
##           master    #4436      +/-   ##
==========================================
+ Coverage   54.58%   54.63%   +0.05%     
==========================================
  Files         248      250       +2     
  Lines       15967    16038      +71     
==========================================
+ Hits         8716     8763      +47     
- Misses       6617     6629      +12     
- Partials      634      646      +12

Allow users to encrypt ASCII-armor output with different passphrase.
@alessio alessio requested a review from jleni May 30, 2019 10:24
@alessio alessio changed the title WIP: Implement private keys export/import symmetric functionalities Implement private keys export/import symmetric functionalities May 30, 2019
if err != nil {
return err
}
encryptPassword, err := input.GetPassword("Enter passphrase to encrypt the exported key:", buf)
Copy link
Member

Choose a reason for hiding this comment

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

As we discussed earlier, maybe we should open another issue for this, however, I think it would be good to improve input.GetPassword to ensure that something like 12345678 is not accepted.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zmanian ping

crypto/keys/types.go Outdated Show resolved Hide resolved
@alexanderbez alexanderbez added the C:Keys Keybase, KMS and HSMs label May 30, 2019
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

TestedACK

crypto/keys/types.go Outdated Show resolved Hide resolved
crypto/keys/types.go Outdated Show resolved Hide resolved
alessio and others added 2 commits May 30, 2019 16:04
Co-Authored-By: Alexander Bezobchuk <[email protected]>
Co-Authored-By: Alexander Bezobchuk <[email protected]>
@alessio alessio merged commit 85ebf5f into master May 30, 2019
@alessio alessio deleted the alessio/keys-export branch May 30, 2019 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:Keys Keybase, KMS and HSMs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce gaiacli keys export / gaiacli keys import
3 participants