feat(discord): feature-complete webhook provider with embeds, base64 file attachments, edit, rate-limit retry, host restriction, and guardrails - #6646
Open
aries1980 wants to merge 6 commits into
Conversation
…, rate-limit retry, host restriction keephq#6645
aries1980
force-pushed
the
feat/discord-provider-enhancement
branch
from
July 25, 2026 12:26
b6040df to
e92147d
Compare
Contributor
Author
|
For the |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6646 +/- ##
==========================================
- Coverage 30.49% 30.47% -0.03%
==========================================
Files 101 101
Lines 11741 11770 +29
==========================================
+ Hits 3581 3587 +6
- Misses 8160 8183 +23 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
MULTI_TENANT is backward-compatibly routed to the Auth0 identity manager/verifier, but the test_app fixture only mocked the OIDC discovery HTTP call when AUTH_TYPE was the literal string "AUTH0". This left MULTI_TENANT-parametrized tests making a real network call that timed out in CI. Also fixes AUTH0_DOMAIN being set with a duplicated https:// scheme, which produced an invalid discovery URL.
Run scripts/docs_render_provider_snippets.py to sync the Discord and base provider snippets with the provider's updated docstring/methods (new discord_basic.yml example, updated files/message_id/content descriptions), fixing the failing tests-docs CI check.
Contributor
Author
|
@shahargl : Hi, after the rebase, the issues went away, I think it is ready for review. |
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.
Summary
Feature-completes the Discord webhook provider against the Execute Webhook + Edit Message APIs:
embeds,username,avatar_url,allowed_mentions,flags,thread_name,applied_tags,poll,attachmentsforwarded as-isfilesparam via multipart/form-data; no filesystem paths supported (security rationale in code/docs); acceptsbytes,(filename, content, content_type)tuples, or{"base64": "...", "filename": "..."}dictsmessage_idparam switches toPATCH .../messages/{id}; snowflake-validatedwebhook_urlhost restriction — onlydiscord.com/discordapp.comacceptedvalidate_scopes()— GET on the webhook URL to confirm it is real and reachablettsanddeletedeliberately dropped — marginal value, not worth surface areaNew: 53 tests
Documentation updated
Closes #6645