gh parity: no first-class gpg-key command — adding a key to the account means hand-building JSON for the raw api passthrough #53
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adding the release-signing public key to a forge account had no first-class path. The actual workflow was:
gpg --armor --export <keyid>to a file,{"armored_public_key": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n..."}),madt_api_call POST /user/gpg_keys,token does not have at least one of required scope(s): [write:user]— a clear error, but only surfaced after all the manual assembly.gh ships
gh gpg-key add <key-file>/list/delete(and thessh-keysibling). Per the naming conventions (ADR 0016, gh verbatim), madtea should too:madtea gpg-key add [<key-file>]— read the armored key from a file or stdin, wrap the JSON, POST/user/gpg_keys;list/delete <id>on the same noun. Consider thessh-keysibling while in there (madtea already hasauth use-ssh, so ssh-key add has an existing consumer).endpointSuggestionsentries for/user/gpg_keys(and/user/keys) pointing at the new command.auth whoamialready reports token scopes — the new command could name the missingwrite:userscope before asking the server, the way the raw call only did at the end.docs/COMPARISON.mdrows (gh has both key commands; tea/fj coverage varies).Observed on codeberg.org (Forgejo) 2026-07-13 while adding the madtea release-signing pubkey to my account.