AWS Security ChangesHomeSearch

AWS apigateway medium security documentation change

Service: apigateway · 2025-11-22 · Security-related medium

File: apigateway/latest/developerguide/apigateway-custom-domain-tls-version.md

Summary

Updated documentation to introduce enhanced security policies, clarify TLS 1.3 support, add considerations for security policy usage, and provide detailed CLI examples for policy updates. Removed legacy cipher tables and restructured content organization.

Security assessment

The changes explicitly introduce enhanced security policies requiring endpoint access mode and post-quantum cryptography support, which address modern security requirements. The documentation now warns about rejecting weaker TLS versions (1.0/1.1) when using enhanced policies and adds restrictions for mutual TLS/HTTP APIs with these policies. This demonstrates proactive security hardening against potential vulnerabilities like weak cipher suites and deprecated TLS versions.

Diff

diff --git a/apigateway/latest/developerguide/apigateway-custom-domain-tls-version.md b/apigateway/latest/developerguide/apigateway-custom-domain-tls-version.md
index b0ed14cc7..f5ec01ee4 100644
--- a//apigateway/latest/developerguide/apigateway-custom-domain-tls-version.md
+++ b//apigateway/latest/developerguide/apigateway-custom-domain-tls-version.md
@@ -5 +5 @@
-How to specify a security policy for custom domainsSupported security policies, TLS protocol versions, and ciphers for edge-optimized custom domainsSupported security policies, TLS protocol versions, and ciphers for Regional custom domainsSupported TLS protocol versions and ciphers for private APIsOpenSSL and RFC cipher namesInformation about HTTP APIs and WebSocket APIs
+ConsiderationsHow API Gateway applies security policiesChange your custom domain name's security policyInformation about HTTP APIs and WebSocket APIs
@@ -7 +7 @@ How to specify a security policy for custom domainsSupported security policies,
-# Choose a security policy for your REST API custom domain in API Gateway
+# Choose a security policy for your custom domain in API Gateway
@@ -9 +9 @@ How to specify a security policy for custom domainsSupported security policies,
-For greater security of your Amazon API Gateway custom domain, you can choose a security policy in the API Gateway console, the AWS CLI, or an AWS SDK.
+A _security policy_ is a predefined combination of minimum TLS version and cipher suites offered by API Gateway. When your clients establish a TLS handshake to your API or custom domain name, the security policy enforces the TLS version and cipher suite accepted by API Gateway. Security policies protect your APIs and custom domain names from network security problems such as tampering and eavesdropping between a client and server.
@@ -11 +11 @@ For greater security of your Amazon API Gateway custom domain, you can choose a
-A _security policy_ is a predefined combination of minimum TLS version and cipher suites offered by API Gateway. You can choose either a TLS version 1.2 or TLS version 1.0 security policy. The TLS protocol addresses network security problems such as tampering and eavesdropping between a client and server. When your clients establish a TLS handshake to your API through the custom domain, the security policy enforces the TLS version and cipher suite options your clients can choose to use.
+API Gateway supports legacy security policies and enhanced security policies. `TLS_1_0` and `TLS_1_2` are legacy security policies. Use these security policies for generalized workloads, or to get started creating an API. Any policy that starts with `SecurityPolicy_` is an enhanced security policy. Use these policies for regulated workloads, advanced governance, or to use post-quantum cryptography. When you use an enhanced security policy, you must also set the endpoint access mode for additional governance. For more information, see [Endpoint access mode](./apigateway-security-policies.html#apigateway-security-policies-endpoint-access-mode).
@@ -13 +13 @@ A _security policy_ is a predefined combination of minimum TLS version and ciphe
-In custom domain settings, a security policy determines two settings:
+## Considerations
@@ -15 +15 @@ In custom domain settings, a security policy determines two settings:
-  * The minimum TLS version that API Gateway uses to communicate with API clients
+The following are considerations for security policies for custom domain names for REST APIs in API Gateway:
@@ -17 +17 @@ In custom domain settings, a security policy determines two settings:
-  * The cipher that API Gateway uses to encrypt the content that it returns to API clients
+  * You can't enable mutual TLS on a domain name that uses an enhanced security policy.
@@ -18,0 +19 @@ In custom domain settings, a security policy determines two settings:
+  * You can't map an HTTP API to a domain name that uses an enhanced security policy.
@@ -19,0 +21 @@ In custom domain settings, a security policy determines two settings:
+  * If you enable multi-level base path mapping to a REST API that uses an enhanced security policy, you can’t create a base path mapping to an HTTP API for the same domain name.
@@ -20,0 +23 @@ In custom domain settings, a security policy determines two settings:
+  * Your API can be mapped to a custom domain name with a different security policy than your API. When you invoke that custom domain name, API Gateway uses the security policy of the API to negotiate the TLS handshake. If you disable your default API endpoint, this might affect how callers can invoke your API.
@@ -22 +25 @@ In custom domain settings, a security policy determines two settings:
-If you choose a TLS 1.0 security policy, the security policy accepts TLS 1.0, TLS 1.1, TLS 1.2, and TLS 1.3 traffic. If you choose a TLS 1.2 security policy, the security policy accepts TLS 1.2 and TLS 1.3 traffic and rejects TLS 1.0 traffic.
+  * API Gateway supports security policies on all APIs. However, you can only choose a security policy for REST APIs. API Gateway only supports the `TLS_1_2` security policy for HTTP or WebSocket APIs.
@@ -24 +27 @@ If you choose a TLS 1.0 security policy, the security policy accepts TLS 1.0, TL
-###### Note
+  * API Gateway doesn't support updating a security policy for a domain name with multiple endpoint types. If you have multiple endpoint types for a domain name, delete one of them to update the security policy.
@@ -26 +28,0 @@ If you choose a TLS 1.0 security policy, the security policy accepts TLS 1.0, TL
-You can only specify a security policy for a custom domain. For an API using a default endpoint, API Gateway uses the following security policy: 
@@ -28 +29,0 @@ You can only specify a security policy for a custom domain. For an API using a d
-  * For edge-optimized APIs: `TLS-1-0`
@@ -30 +30,0 @@ You can only specify a security policy for a custom domain. For an API using a d
-  * For Regional APIs: `TLS-1-0`
@@ -32 +32 @@ You can only specify a security policy for a custom domain. For an API using a d
-  * For private APIs: `TLS-1-2`
+## How API Gateway applies security policies
@@ -33,0 +34 @@ You can only specify a security policy for a custom domain. For an API using a d
+The following example shows how API Gateway applies security policies using the `SecurityPolicy_TLS13_1_3_2025_09` security policy as an example.
@@ -34,0 +36 @@ You can only specify a security policy for a custom domain. For an API using a d
+The `SecurityPolicy_TLS13_1_3_2025_09` security policy accepts TLS 1.3 traffic and rejects TLS 1.2 and TLS 1.0 traffic. For TLS 1.3 traffic, the security policy accepts the following cipher suites:
@@ -35,0 +38 @@ You can only specify a security policy for a custom domain. For an API using a d
+  * `TLS_AES_128_GCM_SHA256`
@@ -37 +40 @@ You can only specify a security policy for a custom domain. For an API using a d
-The ciphers for each security policy are described in the following tables on this page.
+  * `TLS_AES_256_GCM_SHA384`
@@ -39 +42 @@ The ciphers for each security policy are described in the following tables on th
-###### Topics
+  * `TLS_CHACHA20_POLY1305_SHA256`
@@ -41 +43,0 @@ The ciphers for each security policy are described in the following tables on th
-  * How to specify a security policy for custom domains
@@ -43 +44,0 @@ The ciphers for each security policy are described in the following tables on th
-  * Supported security policies, TLS protocol versions, and ciphers for edge-optimized custom domains
@@ -45 +45,0 @@ The ciphers for each security policy are described in the following tables on th
-  * Supported security policies, TLS protocol versions, and ciphers for Regional custom domains
@@ -47 +47 @@ The ciphers for each security policy are described in the following tables on th
-  * Supported TLS protocol versions and ciphers for private APIs
+API Gateway does not accept any other cipher suites. For instance, the security policy would reject any TLS 1.3 traffic that uses the `AES128-SHA` cipher suite.
@@ -49 +49 @@ The ciphers for each security policy are described in the following tables on th
-  * OpenSSL and RFC cipher names
+To monitor which TLS protocol and ciphers clients used to access your API Gateway, you can use the `$context.tlsVersion` and `$context.cipherSuite` context variables in your access logs. For more information, see [Monitor REST APIs in API Gateway](./rest-api-monitor.html).
@@ -51 +51 @@ The ciphers for each security policy are described in the following tables on th
-  * Information about HTTP APIs and WebSocket APIs
+To see the default security policies for all REST APIs and custom domain names, see [Default security policies](./apigateway-security-policies-list.html#apigateway-security-policies-default). To see the supported security policies for all REST APIs and custom domain names, see [Supported security policies](./apigateway-security-policies-list.html).
@@ -52,0 +53 @@ The ciphers for each security policy are described in the following tables on th
+## Change your custom domain name's security policy
@@ -53,0 +55 @@ The ciphers for each security policy are described in the following tables on th
+If you change your security policy, it takes about 15 minutes for the update to complete. You can monitor the `lastUpdateStatus` of your custom domain name. As your custom domain name updates, the `lastUpdateStatus` is `PENDING` and when it completes, it will be `AVAILABLE`.
@@ -54,0 +57 @@ The ciphers for each security policy are described in the following tables on th
+When you use a security policy that starts with `SecurityPolicy_`, you must also turn on endpoint access mode. For more information, see [Endpoint access mode](./apigateway-security-policies.html#apigateway-security-policies-endpoint-access-mode).
@@ -56 +59 @@ The ciphers for each security policy are described in the following tables on th
-## How to specify a security policy for custom domains
+AWS Management Console
@@ -58 +60,0 @@ The ciphers for each security policy are described in the following tables on th
-When you create a custom domain name, you specify the security policy for it. To learn how to create a custom domain, see [Set up an edge-optimized custom domain name in API Gateway](./how-to-edge-optimized-custom-domain-name.html) or [Set up a Regional custom domain name in API Gateway](./apigateway-regional-api-custom-domain-create.html).
@@ -60 +62 @@ When you create a custom domain name, you specify the security policy for it. To
-To change the security policy of your custom domain name, update the custom domain settings. You can update your custom domain name settings using the AWS Management Console, the AWS CLI, or an AWS SDK. 
+###### To change the security policy of a custom domain name
@@ -62 +64 @@ To change the security policy of your custom domain name, update the custom doma
-When you use the API Gateway REST API or AWS CLI, specify the new TLS version, `TLS_1_0` or `TLS_1_2` in the `securityPolicy` parameter. For more information, see [domainname:update](https://docs.aws.amazon.com/apigateway/latest/api/API_UpdateDomainName.html) in the _Amazon API Gateway REST API Reference_ or [update-domain-name](https://docs.aws.amazon.com/cli/latest/reference/apigateway/update-domain-name.html) in the _AWS CLI Reference_.
+  1. Sign in to the API Gateway console at [https://console.aws.amazon.com/apigateway](https://console.aws.amazon.com/apigateway).
@@ -64 +66 @@ When you use the API Gateway REST API or AWS CLI, specify the new TLS version, `
-The update operation may take few minutes to complete.
+  2. Choose a custom domain name that sends traffic to REST APIs.
@@ -66 +68 @@ The update operation may take few minutes to complete.
-## Supported security policies, TLS protocol versions, and ciphers for edge-optimized custom domains
+Make sure there is only one endpoint type associated with your custom domain name.
@@ -68 +70 @@ The update operation may take few minutes to complete.
-The following table describes the security policies that can be specified for edge-optimized custom domain names.
+  3. Choose **Custom domain name settings** , and then choose **Edit**.
@@ -70,6 +72 @@ The following table describes the security policies that can be specified for ed
-**TLS protocols** | **TLS_1_0 security policy** | **TLS_1_2 security policy**  
----|---|---  
-TLSv1.3 |  Yes |  Yes  
-TLSv1.2 |  Yes |  Yes  
-TLSv1.1 |  Yes |  No  
-TLSv1 |  Yes |  No  
+  4. For **Security policy** , select a new policy.
@@ -77 +74 @@ TLSv1 |  Yes |  No
-The following table describes the TLS ciphers that are available for each security policy.
+  5. For **Endpoint access mode** , choose **Strict**.
@@ -79,25 +76 @@ The following table describes the TLS ciphers that are available for each securi
-**TLS ciphers** | **TLS_1_0 security policy** | **TLS_1_2 security policy**  
----|---|---  
-TLS_AES_128_GCM_SHA256 |  Yes |  Yes  
-TLS_AES_256_GCM_SHA384 |  Yes |  Yes  
-TLS_CHACHA20_POLY1305_SHA256 |  Yes |  Yes  
-ECDHE-ECDSA-AES128-GCM-SHA256 |  Yes |  Yes  
-ECDHE-ECDSA-AES128-SHA256 |  Yes |  Yes  
-ECDHE-ECDSA-AES128-SHA |  Yes |  No  
-ECDHE-ECDSA-AES256-GCM-SHA384 |  Yes |  Yes  
-ECDHE-ECDSA-CHACHA20-POLY1305 |  Yes |  Yes  
-ECDHE-ECDSA-AES256-SHA384 |  Yes |  Yes  
-ECDHE-ECDSA-AES256-SHA |  Yes |  No  
-ECDHE-RSA-AES128-GCM-SHA256 |  Yes |  Yes  
-ECDHE-RSA-AES128-SHA256 |  Yes |  Yes  
-ECDHE-RSA-AES128-SHA |  Yes |  No  
-ECDHE-RSA-AES256-GCM-SHA384 |  Yes |  Yes  
-ECDHE-RSA-CHACHA20-POLY1305 |  Yes |  Yes  
-ECDHE-RSA-AES256-SHA384 |  Yes |  Yes  
-ECDHE-RSA-AES256-SHA |  Yes |  No  
-AES128-GCM-SHA256 |  Yes |  No  
-AES256-GCM-SHA384 |  Yes |  Yes  
-AES128-SHA256 |  Yes |  Yes  
-AES256-SHA |  Yes |  No  
-AES128-SHA |  Yes |  No  
-DES-CBC3-SHA |  Yes |  No  
+  6. Choose **Save changes**.
@@ -105 +77,0 @@ DES-CBC3-SHA |  Yes |  No
-## Supported security policies, TLS protocol versions, and ciphers for Regional custom domains
@@ -107 +78,0 @@ DES-CBC3-SHA |  Yes |  No
-The following table describes the security policies for Regional custom domain names.
@@ -109,6 +79,0 @@ The following table describes the security policies for Regional custom domain n
-**TLS protocols** | **TLS_1_0 security policy** | **TLS_1_2 security policy**  
----|---|---  
-TLSv1.3 |  Yes |  Yes  
-TLSv1.2 |  Yes |  Yes  
-TLSv1.1 |  Yes |  No  
-TLSv1 |  Yes |  No  
@@ -116 +81 @@ TLSv1 |  Yes |  No
-The following table describes the TLS ciphers that are available for each security policy.
+AWS CLI
@@ -118,70 +83,32 @@ The following table describes the TLS ciphers that are available for each securi
-**TLS ciphers** | **TLS_1_0 security policy** | **TLS_1_2 security policy**  
----|---|---  
-TLS_AES_128_GCM_SHA256 |  Yes |  Yes  
-TLS_AES_256_GCM_SHA384 |  Yes |  Yes  
-TLS_CHACHA20_POLY1305_SHA256 |  Yes |  Yes  
-ECDHE-ECDSA-AES128-GCM-SHA256 |  Yes |  Yes  
-ECDHE-RSA-AES128-GCM-SHA256 |  Yes |  Yes  
-ECDHE-ECDSA-AES128-SHA256 |  Yes |  Yes  
-ECDHE-RSA-AES128-SHA256 |  Yes |  Yes  
-ECDHE-ECDSA-AES128-SHA |  Yes |  No  
-ECDHE-RSA-AES128-SHA |  Yes |  No  
-ECDHE-ECDSA-AES256-GCM-SHA384 |  Yes |  Yes  
-ECDHE-RSA-AES256-GCM-SHA384 |  Yes |  Yes  
-ECDHE-ECDSA-AES256-SHA384 |  Yes |  Yes  
-ECDHE-RSA-AES256-SHA384 |  Yes |  Yes  
-ECDHE-RSA-AES256-SHA |  Yes |  No  
-ECDHE-ECDSA-AES256-SHA |  Yes |  No  
-AES128-GCM-SHA256 |  Yes |  Yes  
-AES128-SHA256 |  Yes |  Yes  
-AES128-SHA |  Yes |  No  
-AES256-GCM-SHA384 |  Yes |  Yes  
-AES256-SHA256 |  Yes |  Yes  
-AES256-SHA |  Yes |  No  
-  
-## Supported TLS protocol versions and ciphers for private APIs
-
-The following table describes the supported TLS protocols for private APIs. Specifying a security policy for private APIs is not supported.
-
-**TLS protocols** | **TLS_1_2 security policy**  
----|---  
-TLSv1.2 |  Yes  
-  
-The following table describes the TLS ciphers that are available for the `TLS_1_2` security policy for private APIs.
-
-**TLS ciphers** | **TLS_1_2 security policy**  
----|---  
-ECDHE-ECDSA-AES128-GCM-SHA256 |  Yes  
-ECDHE-RSA-AES128-GCM-SHA256 |  Yes  
-ECDHE-ECDSA-AES128-SHA256 |  Yes  
-ECDHE-RSA-AES128-SHA256 |  Yes  
-ECDHE-ECDSA-AES256-GCM-SHA384 |  Yes  
-ECDHE-RSA-AES256-GCM-SHA384 |  Yes  
-ECDHE-ECDSA-AES256-SHA384 |  Yes  
-ECDHE-RSA-AES256-SHA384 |  Yes  
-AES128-GCM-SHA256 |  Yes  
-AES128-SHA256 |  Yes  
-AES256-GCM-SHA384 |  Yes  
-AES256-SHA256 |  Yes