CTL-059 · human

Keys That Only the Release Can Use

Keep signing keys in KMS or an HSM and allow only the release pipeline identity to sign.

TechnicalEffort MediumEffectiveness High

Signing keys stored as files can be copied and used anywhere. Non-exportable keys in a managed key service, with a key policy that allows Sign only from the release role, make every signing call attributable and limit it to the approved path. Keyless signing ties each signature to a workflow identity in a public log.

Rotate any keys that have ever lived as files, since copies may exist.

Put it in place

  1. 01Move signing keys into AWS KMS, Azure Key Vault Managed HSM, GCP Cloud KMS or a hardware HSM as non-exportable keys.
  2. 02Grant `kms:Sign` only to the release pipeline role; deny all humans except a break-glass procedure.
  3. 03Record build ID and artifact hash for every signing call.
  4. 04Consider Sigstore keyless signing with identity checks at verify time.

Counters 2 techniques