Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Add keybaseca sign command to sign keys manually when keybase is down#15

Merged
ddworken merged 4 commits intomasterfrom
david/keybase-ca-sign
Aug 15, 2019
Merged

Add keybaseca sign command to sign keys manually when keybase is down#15
ddworken merged 4 commits intomasterfrom
david/keybase-ca-sign

Conversation

@ddworken
Copy link
Copy Markdown
Contributor

Also:

  • Adds tests for keybaseca sign that verify that it generates a correct signed key
  • Updates docs to explain keybaseca sign (and keep the docs on doing it manually via ssh-keygen in case anything ever breaks with keybaseca sign)
  • Refactored key signing to live in a single function that is called by keybaseca sign and the signature request handler.
  • Updates the version of urfave/cli in order to pull in a recent change that added support for making CLI flags required.
  • Adds strings.TrimSpace(...) around the output of commands when they error and we include the command's output in an error string. This removes the new line from error messages and makes them more readable.

Also:
- Adds tests for `keybaseca sign` that verify that it generates a correct signed key
- Updates docs to explain `keybaseca sign` (and keep the docs on doing it manually via ssh-keygen
in case anything ever breaks with `keybaseca sign`)
- Refactored key signing to live in a single function that is called by `keybaseca sign` and the
signature request handler.
- Updates the version of urfave/cli in order to pull in a recent change that added support for
making CLI flags required.
- Adds `strings.TrimSpace(...)` around the output of commands when they error and we include the
command's output in an error string. This removes the new line from error messages and makes them
more readable.
@ddworken ddworken changed the base branch from master to david/circleci August 15, 2019 15:32
@ddworken ddworken requested a review from xgess August 15, 2019 15:50
@ddworken
Copy link
Copy Markdown
Contributor Author

Merged david/circleci into this. First feature branch with passing CI! 🎉

Comment thread src/cmd/keybaseca/keybaseca.go
Comment thread src/cmd/keybaseca/keybaseca.go Outdated
Comment thread tests/bot-entrypoint.py Outdated
"bin/keybaseca generate --overwrite-existing-key\n"
"echo yes | bin/keybaseca backup > /shared/cakey.backup\n"
# The output from this backup is tested in test_env_1.py
"echo yes | bin/keybaseca backup > /mnt/cakey.backup\n"
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.

can't say i love this pattern. i guess there's no way to trigger this from outside, and that's kinda the point. 🤷‍♂

@ddworken ddworken changed the base branch from david/circleci to master August 15, 2019 21:49
@ddworken ddworken merged commit 917567a into master Aug 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants