fix: Add chat widget guide and improve URL validation and hooks - #299
Open
Harsh-Microsoft wants to merge 3 commits into
Open
fix: Add chat widget guide and improve URL validation and hooks#299Harsh-Microsoft wants to merge 3 commits into
Harsh-Microsoft wants to merge 3 commits into
Conversation
Harsh-Microsoft
requested review from
Avijit-Microsoft,
Prajwal-Microsoft,
Roopan-Microsoft,
Vinay-Microsoft,
gpickett,
malrose07 and
toherman-msft
as code owners
July 21, 2026 15:39
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.
Purpose
This pull request introduces several improvements focused on security, documentation, and deployment configuration. The most significant changes include enhancing endpoint validation logic to prevent security issues, adding comprehensive documentation for the embeddable chat widget, and updating deployment hooks for interactive execution.
Security improvements:
chat-app/backend/app/utils/voice_utils.pyto use a robust_hostname_matcheshelper, ensuring hostnames match exactly or as subdomains, and replacing insecure substring checks in bothresolve_endpointandis_valid_realtime_endpoint. This guards against incomplete URL sanitization and related security risks.Documentation updates:
documents/EmbeddableWidgetGuide.md, detailing the architecture, build, embedding process, and validation steps for the chat widget, including local development and cross-origin considerations.documents/customer-chatbot-product-roadmap.md, which previously described the product roadmap and implementation sequence for the embeddable widget and related accelerator components.Deployment configuration:
interactiveflag fromfalsetotruein both the Windows and POSIXhookssections ofazure.yaml, enabling interactive execution for deployment hooks. [1] [2]Does this introduce a breaking change?
How to Test
What to Check
Verify that the following are valid
Other Information