Add webhook signature verification and event parsing tools#5023
Open
AadiSharma49 wants to merge 1 commit intoaden-hive:mainfrom
Open
Add webhook signature verification and event parsing tools#5023AadiSharma49 wants to merge 1 commit intoaden-hive:mainfrom
AadiSharma49 wants to merge 1 commit intoaden-hive:mainfrom
Conversation
Author
|
@Hundao check it !! |
Collaborator
|
Hi @AadiSharma49, it seems like both of these tools are already handled by the Hive Runtime. WebhookServer (core/framework/runtime/webhook_server.py) does the signature verification and json payload parsing for webhook routes configure with a secret. By the time an agent node gets the event, it's already verified. I think it would be better to focus on hubspot_register_webhook_subscription and hubspot_list_webhook_subscriptions, those are operations we do not have. |
Author
|
Hey @bryanadenhq , so webhooks are already being handled in another PR, should I start working on hubspot_register_webhook_subscription and hubspot_list_webhook_subscriptions next? |
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.
Description
This PR introduces the foundational webhook support for HubSpot integration.
It implements basic webhook utilities to enable event-driven workflows in Hive, specifically:
This follows the suggested incremental approach — starting with simple, testable webhook utilities before implementing subscription management and advanced features.
Type of Change
Related Issues
#4035
Changes Made
hubspot_webhook_toolmodulehubspot_webhook_verify(HMAC SHA256 signature validation)hubspot_webhook_receive(structured event parsing)Testing
Describe the tests you ran to verify your changes:
cd tools && pytest)ruff check .)All integration, credential coverage, and registration contract tests pass locally.
Checklist
Screenshots (if applicable)
Not applicable (backend feature).
@bryanadenhq
As discussed, this PR focuses only on the basic webhook utilities review it and tell me
If this approach looks good, I will proceed with a follow-up PR implementing:
hubspot_register_webhook_subscriptionhubspot_list_webhook_subscriptionsLet me know if you’d like any adjustments to scope or structure before moving to the next phase.