Skip to content

Fix add-signing-service failing for keys with subkeys#7689

Open
dralley wants to merge 1 commit intopulp:mainfrom
dralley:fix-add-signing-service
Open

Fix add-signing-service failing for keys with subkeys#7689
dralley wants to merge 1 commit intopulp:mainfrom
dralley:fix-add-signing-service

Conversation

@dralley
Copy link
Copy Markdown
Contributor

@dralley dralley commented May 6, 2026

The previous implementation counted fpr: lines in GPG's colon output to verify that exactly one key matched the provided key ID. However, GPG emits a separate fpr: line for the primary key and each subkey, so any key with subkeys would be rejected with "There are N keys matching the key id."

Count pub:/sec: lines instead, which represent actual distinct keys.

Assisted-By: claude-opus-4.6

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

The previous implementation counted fpr: lines in GPG's colon output to
verify that exactly one key matched the provided key ID. However, GPG
emits a separate fpr: line for the primary key and each subkey, so any
key with subkeys would be rejected with "There are N keys matching the
key id."

Count pub:/sec: lines instead, which represent actual distinct keys.

Assisted-By: claude-opus-4.6
@dralley dralley force-pushed the fix-add-signing-service branch from 33eda3d to 58c5349 Compare May 6, 2026 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant