Compute SSL policies must enforce a minimum TLS version of TLS_1_2 to prevent use of older, vulnerable protocol versions and weak cipher suites. The min_tls_version property on google.cloud.gcp_compute_ssl_policy (or gcp_compute_ssl_policy) resources must be defined and set to TLS_1_2. Resources that omit min_tls_version or set it to any other value are flagged.
- name:Create SSL policy with TLS 1.2 minimumgoogle.cloud.gcp_compute_ssl_policy:name:my-ssl-policyprofile:MODERNmin_tls_version:TLS_1_2
Compliant Code Examples
- name:create a SSL policygoogle.cloud.gcp_compute_ssl_policy:name:test_objectprofile:CUSTOMmin_tls_version:TLS_1_2custom_features:- TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384project:test_projectauth_kind:serviceaccountservice_account_file:/tmp/auth.pemstate:present
Non-Compliant Code Examples
- name:create a SSL policygoogle.cloud.gcp_compute_ssl_policy:name:test_objectprofile:CUSTOMcustom_features:- TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384project:test_projectauth_kind:serviceaccountservice_account_file:"/tmp/auth.pem"state:present- name:create a SSL policy2google.cloud.gcp_compute_ssl_policy:name:test_object2profile:CUSTOMmin_tls_version:TLS_1_1custom_features:- TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384project:test_projectauth_kind:serviceaccountservice_account_file:"/tmp/auth.pem"state:present
1
2
rulesets:- Ansible / GCP # Rules to enforce / GCP.
맞춤형 데모 요청
Datadog 시작하기
Ask AI
AI-generated responses may be inaccurate. Verify important info.