keybase / keybase/client

Unable to remove PGP key without first removing private key

Open
#7,477 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
9.2k
Forks
1.3k
Avg merge
12h 58m
Merged PRs (30d)
56

Description

keybase logs an error when attempting to remove a PGP key with both the public and encrypted private key uploaded. If I remove the private encrypted key I can then successfully drop the public key.

First failure:

$ keybase pgp drop '01015b2232e4590a043fe229e74150f5a402d1db7ff421912153020849250b0dbd540a'
▶ ERROR DB error

After removing the encrypted private key through Keybase.io:

$ keybase pgp drop '01015b2232e4590a043fe229e74150f5a402d1db7ff421912153020849250b0dbd540a'
▶ INFO Revoking KIDs:
▶ INFO   01015b2232e4590a043fe229e74150f5a402d1db7ff421912153020849250b0dbd540a

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the keybase pgp drop command with both public and encrypted private keys present, then trace the reported DB error from the PGP drop entry point. Done means the public key can be dropped without first removing the encrypted private key, with a regression test covering that state.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cryptography, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.