Skip to content

release: the release prints and publishes the signing key; a key KMS would not self-sign is refused - #5

Merged
aledbf merged 1 commit into
mainfrom
public-key-in-release
Nov 17, 2026
Merged

aledbf merged 1 commit into
mainfrom
public-key-in-release

Conversation

@aledbf

@aledbf aledbf commented Nov 17, 2026

Copy link
Copy Markdown
Member

Printing the public key requires KMS to sign the key's user id (the OpenPGP self-signature), and the key policy (ci#18) lets only the release role sign. With an administrator's credentials, kmspgp public printed half a key: go-crypto drops the signer's own error and serializes an unsigned self-signature.

  • kmspgp.New now refuses that key and says what KMS answered (test: a KMS that returns the public key but refuses to sign).
  • public -out <file>.
  • release.yml prints the key in its log and GoReleaser attaches it to the release as terraform-provider-spin_signing-key.asc. The registries get the key from there: tag first, then register the key, then publish the provider (both registries read the releases that already exist).

The fingerprint is the public key's plus the creation time, with no signature involved, so the one printed earlier (8EF62E80E6B0A4DA9E7F7D2FD126D64FEE202416) is the one the release will print.

mutate: 0 survived.

🤖 Generated with Claude Code

…would not self-sign is refused

Printing the key has KMS sign its user id, and only the release's role
may sign: an administrator's public printed half a key, because go-crypto
drops the signer's error. New now refuses that key with what KMS said,
and the release writes the key beside what it signs, as
terraform-provider-spin_signing-key.asc, and into its log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf merged commit c1fd464 into main Nov 17, 2026
1 check passed
@aledbf
aledbf deleted the public-key-in-release branch November 17, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant