Repository navigation
Verify Ed25519 (v1a) webhook signatures - #1
Merged
Merged
Conversation
…Scheme/publicKey Webhook now accepts a whpk_ public key (verify-only) or a whsk_ secret key (sign + verify, for tests); the prefix picks the scheme. Same timestamp tolerance and any-entry-matches multi-signature handling as v1; each verifier only considers its own version's entries in a mixed header. Adds Webhook.signatureScheme(), SCHEME_* constants, generateEd25519KeyPair() and Ed25519KeyPair. Endpoint gains signatureScheme and publicKey; CreateEndpointParams and UpdateEndpointParams gain signatureScheme(). Version 1.1.0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds verification of Ed25519 (
v1a) webhook signatures. The scheme is picked from the key prefix:whpk_public keys verifyv1aentries,whsec_secrets verifyv1as before. Same timestamp tolerance and multi-entry (rotation grace) handling as v1. Endpoint models now exposesignatureSchemeandpublicKey, create/update acceptsignatureScheme, and the rotate-secret result covers the Ed25519 response shape. Tested against signatures produced by the API's own signing code.