Skip to content

Reject revoked remotely resolved signing keys#3

Open
Mirochill wants to merge 1 commit into
permission-protocol:mainfrom
Mirochill:fix/reject-revoked-remote-keys
Open

Reject revoked remotely resolved signing keys#3
Mirochill wants to merge 1 commit into
permission-protocol:mainfrom
Mirochill:fix/reject-revoked-remote-keys

Conversation

@Mirochill
Copy link
Copy Markdown

Summary

  • preserve backward compatibility for remote key records without lifecycle metadata
  • accept remotely resolved active and rotated keys
  • reject remotely resolved revoked keys before their key material can be used
  • fail closed for unknown explicit remote key statuses
  • add regression coverage for rotated, revoked, and unknown statuses

Why

The public key-rotation documentation states that historical rotated keys remain usable for verification, while revoked keys must fail immediately. The resolver previously selected a remote key by id and ignored the returned lifecycle metadata, allowing a matching revoked Ed25519 key to verify receipts successfully.

Fixes permission-protocol/deploy-gate#50.
Related bounty: permission-protocol/deploy-gate#36.

Validation

  • npm test
  • npm run build
  • git diff --check
  • reran the local revoked-key reproducer from deploy-gate#50 and confirmed KEY_RESOLUTION_FAILED with exit code 4

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.

Verifier accepts Ed25519 signatures from remotely resolved revoked keys

1 participant