1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
//! Well-known Azure service domains for URL validation.
//!
//! This module provides static domain lists used by [`crate::URIValidator`] to
//! recognise Azure Key Vault and Azure Storage endpoints. The lists cover
//! all public Azure sovereign clouds (global Azure, China, US Government).
//!
//! # Usage
//!
//! These constants are typically consumed indirectly through
//! [`crate::URIValidator::in_azure_key_vault_domain`] and
//! [`crate::URIValidator::in_azure_storage_domain`], but they are also public
//! in case you need to build custom domain checks.
//!
//! This file is auto-generated from `config/Domains.json`.
//! Do not edit manually; run `scripts/build-domains-rust.sh` to regenerate.
/// Azure Key Vault service domains across all public Azure environments.
///
/// Covers vault and managed-HSM endpoints for:
///
/// | Suffix | Cloud |
/// |--------|-------|
/// | `vault.azure.net` | Global Azure |
/// | `vault.azure.cn` | Azure China |
/// | `vault.usgovcloudapi.net` | Azure US Government |
///
/// Hostnames containing `--` are rejected by [`crate::URIValidator::in_azure_key_vault_domain`]
/// per Azure naming restrictions.
pub const AZURE_KEY_VAULT_DOMAINS: & = &;
/// Azure Storage service domains across all public Azure environments.
///
/// Covers Blob, Web, Data Lake Storage Gen2 (DFS), File, Queue, and Table
/// endpoints for:
///
/// | Suffix | Cloud |
/// |--------|-------|
/// | `*.core.windows.net` | Global Azure |
/// | `*.storage.azure.net` | Global Azure (alternative) |
/// | `*.core.usgovcloudapi.net` | Azure US Government |
/// | `*.core.chinacloudapi.cn` | Azure China |
///
/// Like [`AZURE_KEY_VAULT_DOMAINS`], hostnames containing `--` are rejected
/// by [`crate::URIValidator::in_azure_storage_domain`] per Azure naming restrictions.
pub const AZURE_STORAGE_DOMAINS: & = &;