|
21 | 21 | //! URL to load credentials. The URL MUST satisfy one of the following three properties: |
22 | 22 | //! 1. The URL begins with `https` |
23 | 23 | //! 2. The URL refers to an allowed IP address. If a URL contains a domain name instead of an IP address, |
24 | | -//! a DNS lookup will be performed. ALL resolved IP addresses MUST refer to an allowed IP address, or |
25 | | -//! the credentials provider will return `CredentialsError::InvalidConfiguration`. Valid IP addresses are: |
| 24 | +//! a DNS lookup will be performed. ALL resolved IP addresses MUST refer to an allowed IP address, or |
| 25 | +//! the credentials provider will return `CredentialsError::InvalidConfiguration`. Valid IP addresses are: |
26 | 26 | //! a) Loopback interfaces |
27 | 27 | //! b) The [ECS Task Metadata V2](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v2.html) |
28 | 28 | //! address ie 169.254.170.2. |
@@ -416,9 +416,9 @@ impl From<InvalidFullUriErrorKind> for InvalidFullUriError { |
416 | 416 | /// Either: |
417 | 417 | /// 1. The URL is uses `https` |
418 | 418 | /// 2. The URL refers to an allowed IP. If a URL contains a domain name instead of an IP address, |
419 | | -/// a DNS lookup will be performed. ALL resolved IP addresses MUST refer to an allowed IP, or |
420 | | -/// the credentials provider will return `CredentialsError::InvalidConfiguration`. Allowed IPs |
421 | | -/// are the loopback interfaces, and the known ECS/EKS container IPs. |
| 419 | +/// a DNS lookup will be performed. ALL resolved IP addresses MUST refer to an allowed IP, or |
| 420 | +/// the credentials provider will return `CredentialsError::InvalidConfiguration`. Allowed IPs |
| 421 | +/// are the loopback interfaces, and the known ECS/EKS container IPs. |
422 | 422 | async fn validate_full_uri( |
423 | 423 | uri: &str, |
424 | 424 | dns: Option<SharedDnsResolver>, |
|
0 commit comments