Skip to content

webhooks: Clean up bot config and creation forms. - #8

Open
JDoe-code wants to merge 15 commits into
19773-fixedfrom
19773-new-changes
Open

webhooks: Clean up bot config and creation forms.#8
JDoe-code wants to merge 15 commits into
19773-fixedfrom
19773-new-changes

Conversation

@JDoe-code

Copy link
Copy Markdown
Owner

This addition adds some final touches to the UI of the bot config and creation forms to omit the approaches we were using when we were originally trying to extract the secret from the request URL rather than from BotConfigData.

Srinandha-Murugesan and others added 11 commits July 23, 2026 00:38
Add validate_webhook_delivery to parse request signatures and handle
JsonableError exceptions during payload verification.

Tested with:
./tools/test-backend zerver/tests/test_webhooks_common.py

Co-authored-by: Srinandha Murugesan <srinandhamurugesan@gmail.com>
Co-authored-by: Isaiah Marte <JDoe-code@users.noreply.github.com>
Co-authored-by: Akshaj Katkuri <Akshaj-Katkuri@users.noreply.github.com>
Co-authored-by: Jason Zheng <jasonzheng13@users.noreply.github.com>
Update WebhookTestCase to generate HMAC signatures when testing
signed webhook payloads. Update GitHub webhook tests accordingly.

Tested with:
./tools/test-backend zerver/webhooks/github/

Co-authored-by: Srinandha Murugesan <srinandhamurugesan@gmail.com>
Co-authored-by: Isaiah Marte <JDoe-code@users.noreply.github.com>
Co-authored-by: Akshaj Katkuri <Akshaj-Katkuri@users.noreply.github.com>
Co-authored-by: Jason Zheng <jasonzheng13@users.noreply.github.com>
Add webhook secret field options to integration definitions and
dev panel UI. Synchronize header recalculation on user input.

Tested via dev panel frontend UI and ./tools/lint.

Co-authored-by: Srinandha Murugesan <srinandhamurugesan@gmail.com>
Co-authored-by: Isaiah Marte <JDoe-code@users.noreply.github.com>
Co-authored-by: Akshaj Katkuri <Akshaj-Katkuri@users.noreply.github.com>
Co-authored-by: Jason Zheng <jasonzheng13@users.noreply.github.com>
Add backend recalculate_signature view and signature registry for
dev panel UI recalculation. Add unit tests for signature hashing.

Tested with:
./tools/test-backend zerver/tests/test_integrations_dev_panel.py

Co-authored-by: Srinandha Murugesan <srinandhamurugesan@gmail.com>
Co-authored-by: Isaiah Marte <JDoe-code@users.noreply.github.com>
Co-authored-by: Akshaj Katkuri <Akshaj-Katkuri@users.noreply.github.com>
Co-authored-by: Jason Zheng <jasonzheng13@users.noreply.github.com>
Invoke validate_webhook_delivery in GitHub webhook handler view and
register dev recalculate_signature endpoint in zproject dev URLs.

Tested with:
./tools/test-backend zerver/webhooks/github/

Co-authored-by: Srinandha Murugesan <srinandhamurugesan@gmail.com>
Co-authored-by: Isaiah Marte <JDoe-code@users.noreply.github.com>
Co-authored-by: Akshaj Katkuri <Akshaj-Katkuri@users.noreply.github.com>
Co-authored-by: Jason Zheng <jasonzheng13@users.noreply.github.com>
Sanitize the error response in recalculate_signature to prevent
exposing internal stack traces or server implementation details via
raw exception strings.

Co-authored-by: Srinandha Murugesan <srinandhamurugesan@gmail.com>
Co-authored-by: Isaiah Marte <JDoe-code@users.noreply.github.com>
Co-authored-by: Akshaj Katkuri <Akshaj-Katkuri@users.noreply.github.com>
Co-authored-by: Jason Zheng <jasonzheng13@users.noreply.github.com>
Co-authored-by: Srinandha Murugesan <srinandhamurugesan@gmail.com>
Co-authored-by: Isaiah Marte <JDoe-code@users.noreply.github.com>
Co-authored-by: Akshaj Katkuri <Akshaj-Katkuri@users.noreply.github.com>
Co-authored-by: Jason Zheng <jasonzheng13@users.noreply.github.com>
@JDoe-code
JDoe-code force-pushed the 19773-new-changes branch 3 times, most recently from 2844fc6 to b6dd6c3 Compare July 29, 2026 19:44
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