This rule addresses configuring SSL certificates for backend authentication in API Gateway REST API stages.
Rule | API Gateway REST API stages should be configured to use SSL certificates for backend authentication |
Framework | AWS Foundational Security Best Practices |
Severity | ✔ Medium |
Rule Description:
API Gateway REST API stages should be configured to use SSL certificates for backend authentication for AWS Foundational Security Best Practices.
This rule ensures that the backend services used by API Gateway REST APIs are authenticated using SSL certificates, enhancing the overall security posture of the application.
Rule Explanation:
SSL certificates enable secure communication between the API Gateway and backend services by encrypting the data transmitted over the network. By enforcing SSL certificates for backend authentication, the risk of unauthorized access and interception of data is significantly reduced.
Troubleshooting Steps:
Verify SSL certificate configuration:
Validate SSL certificate expiration:
Verify backend service connectivity:
Necessary Codes:
No specific codes are required for this rule. However, you may need to manage the SSL certificates and configure the backend services accordingly.
Remediation Steps:
To configure SSL certificates for backend authentication in API Gateway REST API stages, follow these steps:
Login to the AWS Management Console.
Open the API Gateway service.
Select the desired API from the APIs list.
In the left-hand panel, click on "Stages."
Select the specific stage for which you want to enable SSL certificates for backend authentication.
Click on the "Settings" tab.
Scroll down to the "API Gateway domain name" section.
Click on the "Edit" button.
Enable the "Enable CloudFront" option.
Under "Security Certificate," select the appropriate SSL certificate from the dropdown list.
Confirm the changes and click on the "Save Changes" button.
Test the connectivity to the backend services to ensure that the SSL certificate authentication is successful.
Additional Considerations:
By following these steps, the API Gateway REST API stages will be configured to use SSL certificates for backend authentication, adding an additional layer of security to your application.