Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Add validation checks#1765

Open
g2vinay wants to merge 8 commits intomicrosoft:main from
g2vinay:add-endpoint-validation
Open

Add validation checks #1765
g2vinay wants to merge 8 commits intomicrosoft:main from
g2vinay:add-endpoint-validation

Conversation

@g2vinay
Copy link
Contributor

@g2vinay g2vinay commented Feb 19, 2026

No description provided.

@g2vinay g2vinay force-pushed the add-endpoint-validation branch from bc3ea93 to ff3e172 Compare February 19, 2026 23:48
@g2vinay g2vinay marked this pull request as ready for review February 20, 2026 09:22
@g2vinay g2vinay requested review from a team and KarishmaGhiya as code owners February 20, 2026 09:22
Copilot AI review requested due to automatic review settings February 20, 2026 09:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds centralized endpoint/URL validation to reduce SSRF risk across several tools by introducing a shared EndpointValidator helper and applying it at key call sites.

Changes:

  • Introduces EndpointValidator helper with validation for Azure service endpoints, allowed external hosts, and public target URLs.
  • Integrates endpoint validation into Fabric PublicApi network resource download, and Azure tools (LoadTesting, Communication, AppConfig, ACR).
  • Adds unit tests for the new validator behaviors.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
tools/Fabric.Mcp.Tools.PublicApi/src/Services/NetworkResourceProviderService.cs Validates GitHub download URLs against an allowlist before fetching.
tools/Azure.Mcp.Tools.LoadTesting/src/Services/LoadTestingService.cs Validates endpointUrl for load-test targets.
tools/Azure.Mcp.Tools.Communication/src/Services/CommunicationService.cs Validates Communication Service endpoint domain/scheme before client creation.
tools/Azure.Mcp.Tools.AppConfig/src/Services/AppConfigService.cs Validates App Configuration endpoint before client creation.
tools/Azure.Mcp.Tools.Acr/src/Services/AcrService.cs Validates ACR login server endpoint before data-plane calls.
core/Microsoft.Mcp.Core/src/Helpers/EndpointValidator.cs New shared validator implementation (Azure endpoints, external allowlist URLs, public target URL checks).
core/Microsoft.Mcp.Core/tests/Microsoft.Mcp.Core.UnitTests/Helpers/EndpointValidatorTests.cs New unit tests for validator behavior and edge cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot Copilot left review comments

@KarishmaGhiya KarishmaGhiya Awaiting requested review from KarishmaGhiya KarishmaGhiya is a code owner

@conniey conniey Awaiting requested review from conniey conniey is a code owner

@JonathanCrd JonathanCrd Awaiting requested review from JonathanCrd JonathanCrd is a code owner

@jongio jongio Awaiting requested review from jongio jongio is a code owner

@vukelich vukelich Awaiting requested review from vukelich vukelich is a code owner automatically assigned from microsoft/azure-mcp

@wbreza wbreza Awaiting requested review from wbreza wbreza is a code owner automatically assigned from microsoft/azure-mcp

@fanyang-mono fanyang-mono Awaiting requested review from fanyang-mono fanyang-mono is a code owner automatically assigned from microsoft/azure-mcp

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

tools-ACR tools-AppConfig AppConfig tools-Communication tools for Azure communication services tools-LoadTesting

Projects

Status: Untriaged

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /