﻿# How should an Activepieces 0.93.0 Help Scout flow verify webhook signatures?

Exercise the webhook with signed raw bytes, a changed body and malformed headers, then verify that only authenticated input reaches the agent.

Author: Retrivium team
Updated: 2026-11-09
Canonical URL: https://retrivium.ai/journal/news-activepieces-help-scout-signature-before-agent/
Language: en

Activepieces 0.93.0 includes a Help Scout webhook verifier correction. The change uses the raw request body and the service’s Base64-encoded HMAC format. A deployment that sends these events to an agent can check the authentication boundary by observing whether malformed deliveries reach any workflow step.

## Match the provider’s byte sequence

Help Scout documents a signature over the body as delivered. Parsing and reserializing JSON can change whitespace or character escaping even when the parsed object is equivalent. Compute verification before that conversion and use a fixture containing both whitespace and escaped characters to catch accidental normalization.

## Verify each format boundary

The pull request explains that the old comparison interpreted data using the wrong encoding and could accept malformed headers. Build cases for a missing header, an incorrectly encoded value and a properly encoded incorrect signature. The acceptance test should observe the run queue as well as HTTP status.

## Allow valid traffic through the same route

Generate a valid delivery in an isolated Help Scout setup and let it pass through the same proxy and parsing stack used in production. If it fails, compare raw-body handling and registration state. The project reports a live test of selected triggers, with other triggers covered by their shared path.

## Separate authentication and action

After signature verification, interpret the event type, target mailbox and intended agent permissions. A valid delivery can still be a retry or describe an unsupported operation. Tie duplicate handling to the business event identity where it is available, and keep external writes behind their own policy.

## Record results without secrets

The most useful upgrade record includes the connector version, fixture identifiers and the number of runs for each case. A rejected request should have zero agent calls. Keep webhook secrets and message bodies out of this record. That makes the result reusable when the proxy or trigger configuration changes.

## Primary sources

- [Activepieces 0.93.0 release](https://github.com/activepieces/activepieces/releases/tag/0.93.0)
- [Help Scout verifier implementation and tests](https://github.com/activepieces/activepieces/pull/17129)
- [Help Scout webhook signature contract](https://developer.helpscout.com/webhooks/)

## Related reading

- [GitHub webhook HMAC verifies the original request body](/journal/guide-github-webhook-hmac-original-body/)
- [Stripe webhook retries receive a new signing timestamp](/journal/guide-stripe-webhook-signing-time-retry/)
