Skip to content

Add webhook signature verification #45

Description

@teesofttech

Summary

Add webhook event signature verification support.

Docs: https://developers.termii.com/events-and-reports
Parent split from: #42

Scope

  • Add a helper for verifying the X-Termii-Signature header.
  • Use HMAC SHA512 over the raw event payload with the Termii secret key.
  • Preserve the existing webhook event model support.

Acceptance criteria

  • Verification API accepts raw payload, signature header, and secret key.
  • Comparison is time-constant where practical.
  • Tests cover valid signatures, invalid signatures, missing signatures, and altered payloads.
  • README/docs explain how to verify before deserializing or trusting webhook payloads.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions