Skip to content

Comments

Add validation checks#1765

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

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

Conversation

@g2vinay
Copy link
Contributor

@g2vinay g2vinay commented Feb 19, 2026

No description provided.

@github-actions github-actions bot added tools-ACR tools-AppConfig AppConfig tools-Communication tools for Azure communication services tools-LoadTesting labels Feb 19, 2026
@g2vinay g2vinay force-pushed the add-endpoint-validation branch 3 times, most recently from 59c1e2c to bc3ea93 Compare February 19, 2026 21:46
@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

Labels

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

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

1 participant