fix(feishu): align feishu webhook verification flow with sdk behavior#250
Merged
sheepbox8646 merged 1 commit intoMar 15, 2026
Merged
Conversation
a4ea580 to
611aa00
Compare
sheepbox8646
approved these changes
Mar 15, 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.
#247
这个PR修复了 Feishu webhook 验证链路不一致的问题。此前 url_verification、明文 event_callback 和加密回调分别走不同分支,导致“只配 encrypt_key”的 challenge 场景会失败,而无 secret 的 webhook 配置又可能被保 存或重新启用,留下实际不可用且不安全的配置
修复后:url_verification 改为兼容飞书官方的加密校验流程,配置了 verification_token 时明文和加密回调都会强校验token,同时把“encrypt_key 或 verification_token 至少一个”下沉到配置规范化和启用校验,并同步调整 Web 端提示文案