Closed gaboesquivel closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
bitlauncher | ❌ Failed (Inspect) | Sep 13, 2024 7:25am | ||
smartsale-faucet | ❌ Failed (Inspect) | Sep 13, 2024 7:25am |
This pull request restores Alchemy signature checks and makes several changes to the Alchemy webhook configuration. It removes some environment variables, updates webhook URLs, and adds a new script to log all webhooks.
Change | Details | Files |
---|---|---|
Restored Alchemy signature validation in the activity API route |
|
apps/web/app/api/activity/route.ts |
Simplified environment configuration for Alchemy services |
|
services/alchemy/src/config.ts |
Updated Alchemy webhook configuration |
|
services/alchemy/webhooks/activity.ts services/alchemy/webhooks/activity-dev.ts |
Added new script to log all Alchemy webhooks |
|
services/alchemy/webhooks/get-webhook.ts |
The changes in this pull request involve updates to the Alchemy service's webhook handling and configuration management. Key modifications include re-enabling signature validation for incoming requests, introducing a new environment variable for notification tokens, and enhancing dependency management by adding lodash
. Additionally, validations for certain environment variables were removed, and hardcoded values were introduced for webhook URLs and deposit addresses, which simplifies the configuration but may reduce flexibility.
File Path | Change Summary |
---|---|
apps/web/app/api/activity/route.ts |
Restored validation of the Alchemy signature in the POST function, returning a 401 Unauthorized response if validation fails. |
services/alchemy/env.sample |
Added new environment variable ALCHEMY_NOTIFY_TOKEN for notification purposes. |
services/alchemy/package.json |
Added lodash dependency and removed duplicate entry for @repo/chains . |
services/alchemy/src/config.ts |
Removed validations for ALCHEMY_ACTIVITY_WEBHOOK_URL and PRESALE_ADDRESS , simplifying configuration. |
services/alchemy/webhooks/activity-dev.ts |
Changed addresses parameter in createAddressActivityNotification to a hardcoded Ethereum address. |
services/alchemy/webhooks/activity.ts |
Updated webhook URL from a configuration variable to a hardcoded URL. Removed unused imports. |
services/alchemy/webhooks/get-webhook.ts |
Introduced a new file implementing functionality to fetch and log webhooks using the Alchemy SDK. |
Objective | Addressed | Explanation |
---|---|---|
Restore signature validation | ✅ | |
Introduce notification token | ✅ | |
Improve dependency management | ✅ | |
Validate environment variables | ❌ | Validation for ALCHEMY_ACTIVITY_WEBHOOK_URL and PRESALE_ADDRESS was removed. |
Simplify webhook handling | ❓ | Unclear if the impact of hardcoded values meets the simplification goal. |
createAddressActivityNotification
function in the main PR involve updating the handling of deposit addresses, which aligns with the modifications made in the retrieved PR that supports multiple deposit addresses per chain.🐰 In the meadow, we hop and play,
With changes brightening up the day.
Validations restored, a token in tow,
Dependencies streamlined, watch us grow!
Webhooks now dance, with logs to show,
In the world of Alchemy, we steal the show! 🌼✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by Sourcery
Restore Alchemy signature validation in the activity route to enhance security. Remove unused configuration entries and update the webhook URL in the address activity notification. Add a new script to log all webhooks by URL using the Alchemy SDK.
New Features:
Enhancements:
Chores:
Summary by CodeRabbit
New Features
Bug Fixes
Improvements
Dependency Updates
lodash
as a new dependency for improved utility functions.