Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
- Expanded trusted Azure Monitor subdomains in public, US Government, and China clouds.
- Added trusted Fabric endpoints in US Government, Bleu, and Delos, and Azure Monitor hosts in Bleu, Delos, and GovSG while preserving existing hosts.

## [6.0.5] - 2026-11-24

### Added
Expand Down
31 changes: 26 additions & 5 deletions azure-kusto-data/azure/kusto/data/wellKnownKustoEndpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
".azureplayfab.com",
".kusto.data.microsoft.com",
".kusto.fabric.microsoft.com",
".adx.loganalytics.azure.com",
".adx.applicationinsights.azure.com",
".adx.monitor.azure.com",
".api.securityplatform.microsoft.com",
".securitycenter.windows.com",
".arg-int.core.windows.net",
Expand All @@ -46,6 +49,10 @@
"AllowedKustoSuffixes": [
".kusto.usgovcloudapi.net",
".kustomfa.usgovcloudapi.net",
".adx.loganalytics.azure.us",
".adx.applicationinsights.azure.us",
".adx.monitor.azure.us",
".kusto.fabric.microsoft.us",
".arg.core.usgovcloudapi.net",
".securitycenter.windows.us"
],
Expand All @@ -60,6 +67,9 @@
".kusto.azuresynapse.azure.cn",
".kusto.chinacloudapi.cn",
".kustomfa.chinacloudapi.cn",
".adx.loganalytics.azure.cn",
".adx.applicationinsights.azure.cn",
".adx.monitor.azure.cn",
".playfab.cn",
".arg.core.chinacloudapi.cn"
],
Expand Down Expand Up @@ -97,23 +107,31 @@
"https://login.sovcloud-identity.fr": {
"AllowedKustoSuffixes": [
".kusto.sovcloud-api.fr",
".kustomfa.sovcloud-api.fr"
".kustomfa.sovcloud-api.fr",
".kusto.fabric.sovcloud-api.fr"
],
"AllowedKustoHostnames": [
"adx.applicationinsights.azure.fr",
"adx.loganalytics.azure.fr",
"adx.monitor.azure.fr"
"adx.monitor.azure.fr",
"adx.applicationinsights.sovcloud-api.fr",
"adx.loganalytics.sovcloud-api.fr",
"adx.monitor.sovcloud-api.fr"
]
},
"https://login.sovcloud-identity.de": {
"AllowedKustoSuffixes": [
".kusto.sovcloud-api.de",
".kustomfa.sovcloud-api.de"
".kustomfa.sovcloud-api.de",
".kusto.fabric.sovcloud-api.de"
],
"AllowedKustoHostnames": [
"adx.applicationinsights.azure.de",
"adx.loganalytics.azure.de",
"adx.monitor.azure.de"
"adx.monitor.azure.de",
"adx.applicationinsights.sovcloud-api.de",
"adx.loganalytics.sovcloud-api.de",
"adx.monitor.sovcloud-api.de"
]
},
"https://login.sovcloud-identity.sg": {
Expand All @@ -124,7 +142,10 @@
"AllowedKustoHostnames": [
"adx.applicationinsights.azure.sg",
"adx.loganalytics.azure.sg",
"adx.monitor.azure.sg"
"adx.monitor.azure.sg",
"adx.applicationinsights.sovcloud-api.sg",
"adx.loganalytics.sovcloud-api.sg",
"adx.monitor.sovcloud-api.sg"
]
}
}
Expand Down
63 changes: 59 additions & 4 deletions azure-kusto-data/tests/test_well_known_kusto_endpoints.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import pytest

from azure.kusto.data._cloud_settings import DEFAULT_PUBLIC_LOGIN_URL
from azure.kusto.data.exceptions import KustoClientInvalidConnectionStringException
from azure.kusto.data.kusto_trusted_endpoints import _well_known_kusto_endpoints_data, well_known_kusto_endpoints, MatchRule
Expand Down Expand Up @@ -154,13 +156,68 @@ def test_well_known_kusto_endpoints_proxy_test():
_validate_endpoint(cluster_and_login_endpoint[0].upper(), cluster_and_login_endpoint[1].upper())


@pytest.mark.parametrize(
"suffix, login_endpoint",
[
(".adx.loganalytics.azure.com", DEFAULT_PUBLIC_LOGIN_URL),
(".adx.applicationinsights.azure.com", DEFAULT_PUBLIC_LOGIN_URL),
(".adx.monitor.azure.com", DEFAULT_PUBLIC_LOGIN_URL),
(".adx.loganalytics.azure.us", "https://login.microsoftonline.us"),
(".adx.applicationinsights.azure.us", "https://login.microsoftonline.us"),
(".adx.monitor.azure.us", "https://login.microsoftonline.us"),
(".kusto.fabric.microsoft.us", "https://login.microsoftonline.us"),
(".adx.loganalytics.azure.cn", CHINA_CLOUD_LOGIN),
(".adx.applicationinsights.azure.cn", CHINA_CLOUD_LOGIN),
(".adx.monitor.azure.cn", CHINA_CLOUD_LOGIN),
(".kusto.fabric.sovcloud-api.fr", "https://login.sovcloud-identity.fr"),
(".kusto.fabric.sovcloud-api.de", "https://login.sovcloud-identity.de"),
],
)
def test_well_known_kusto_endpoints_proxy_suffixes(suffix, login_endpoint):
endpoint = f"https://cluster{suffix}"
_validate_endpoint(endpoint, login_endpoint)
_validate_endpoint(endpoint.upper(), login_endpoint.upper())
_validate_endpoint(f"https://regional.cluster{suffix}", login_endpoint)
if suffix.startswith(".adx."):
_validate_endpoint(f"https://{suffix[1:]}", login_endpoint)

wrong_login_endpoint = CHINA_CLOUD_LOGIN if login_endpoint == DEFAULT_PUBLIC_LOGIN_URL else DEFAULT_PUBLIC_LOGIN_URL
with pytest.raises(KustoClientInvalidConnectionStringException):
_validate_endpoint(endpoint, wrong_login_endpoint)
for untrusted_endpoint in [f"{endpoint}.untrusted.example", f"https://cluster{suffix[1:]}"]:
with pytest.raises(KustoClientInvalidConnectionStringException):
_validate_endpoint(untrusted_endpoint, login_endpoint)


@pytest.mark.parametrize(
"cloud_suffix, login_endpoint",
[
("fr", "https://login.sovcloud-identity.fr"),
("de", "https://login.sovcloud-identity.de"),
("sg", "https://login.sovcloud-identity.sg"),
],
)
@pytest.mark.parametrize("service", ["applicationinsights", "loganalytics", "monitor"])
def test_well_known_kusto_endpoints_sovereign_proxy_hostnames(cloud_suffix, login_endpoint, service):
hostname = f"adx.{service}.sovcloud-api.{cloud_suffix}"
endpoint = f"https://{hostname}"
_validate_endpoint(endpoint, login_endpoint)
_validate_endpoint(endpoint.upper(), login_endpoint.upper())
_validate_endpoint(f"https://adx.{service}.azure.{cloud_suffix}", login_endpoint)

with pytest.raises(KustoClientInvalidConnectionStringException):
_validate_endpoint(endpoint, DEFAULT_PUBLIC_LOGIN_URL)
for untrusted_endpoint in [f"https://cluster.{hostname}", f"{endpoint}.untrusted.example"]:
with pytest.raises(KustoClientInvalidConnectionStringException):
_validate_endpoint(untrusted_endpoint, login_endpoint)


def test_well_known_kusto_endpoints_proxy_negative_test():
for clusterName in [
"https://cluster.kusto.aria.microsoft.com",
"https://cluster.eu.kusto.aria.microsoft.com",
"https://cluster.ade.loganalytics.io",
"https://cluster.ade.applicationinsights.io",
"https://cluster.adx.monitor.azure.com",
"https://cluster.adx.applicationinsights.azure.cn",
"https://cluster.adx.monitor.azure.eaglex.ic.gov",
]:
Expand Down Expand Up @@ -218,10 +275,8 @@ def test_well_known_kusto_endpoints_additional_websites():

def _check_endpoint(cluster_name, default_public_login_url, expect_fail):
if expect_fail:
try:
with pytest.raises(KustoClientInvalidConnectionStringException):
_validate_endpoint(cluster_name, default_public_login_url)
except KustoClientInvalidConnectionStringException:
pass
else:
_validate_endpoint(cluster_name, default_public_login_url)

Expand Down