1. Home
  2. Security Hardening
  3. CIS Google Cloud Platform V1.1.0 L2
  4. Ensure that App Engine applications enforce HTTPS connections

Ensure that App Engine applications enforce HTTPS connections

Details

In order to maintain the highest level of security all connections to an application should be secure by default.

Rationale:

Insecure HTTP connections maybe subject to eavesdropping which can expose sensitive data.

Impact:

All connections to appengine will automatically be redirected to the HTTPS endpoint ensuring that all connections are secured by TLS.

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

Add a line to the app.yaml file controlling the application which enforces secure connections. For example

handlers:
– url: /.*
**secure: always**
redirect_http_response_code: 301
script: auto

[https://cloud.google.com/appengine/docs/standard/python3/config/appref]

Default Value:

By default both HTTP and HTTP are supported

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: System and Communications Protection.This control applies to the following type of system GCP.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles