Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add request signature validation #3

Merged
merged 11 commits into from
Jul 31, 2024

Conversation

chapati23
Copy link
Collaborator

Depends on #1 and #2 being merged first.

This adds a validation function to check if the caller of the cloud function is actually quick alerts following this: https://www.quicknode.com/docs/quickalerts/quickalerts-destinations/webhooks/webhook-signature

I left it outcommented in the main function for now because I couldn't test it with a real payload. I think it would be easiest to try this out for the monitoring events from sorted oracles because those come in frequently.

@chapati23 chapati23 force-pushed the feat/add-request-signature-validation branch from 2640b6e to 447baf6 Compare July 23, 2024 08:15
@nvtaveras
Copy link
Contributor

Updated to include X-AUTH-Token header for internal testing request. Deployed + tested

@nvtaveras nvtaveras merged commit 34ffb1d into main Jul 31, 2024
1 check passed
@nvtaveras nvtaveras deleted the feat/add-request-signature-validation branch July 31, 2024 15:53
chapati23 added a commit that referenced this pull request Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants