fix: correct webhook signature verification to use standard base64#88
Merged
Conversation
Remove URL-safe base64 character replacements (+/- and /_) from signature verification code examples. E2B webhooks send standard base64 signatures (with + and / characters), not URL-safe base64 as previously documented. Updated verification code in JavaScript, Python, and Go to match actual E2B webhook signature format by only removing padding (=) characters.
There was a problem hiding this comment.
Pull request overview
This PR fixes webhook signature verification examples to use standard base64 encoding instead of URL-safe base64. The E2B webhook service sends signatures using standard base64 format (with + and / characters), so the verification code examples were incorrectly performing URL-safe character replacements that would cause signature validation to fail.
Changes:
- Removed incorrect URL-safe base64 character replacements (
+to-and/to_) from signature verification examples - Retained padding character (
=) removal which is still necessary for comparison
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
dobrac
approved these changes
Jan 28, 2026
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.
Remove URL-safe base64 character replacements from signature verification code examples.
E2B webhooks send standard base64 signatures (with + and / characters).
Note
Updates webhook verification examples to match standard base64 signatures from E2B.
=padding (no URL-safe+//replacements)docs/sandbox/lifecycle-events-webhooks.mdxWritten by Cursor Bugbot for commit d169027. This will update automatically on new commits. Configure here.