界: Environment
本节包括的所有内容均与源代码无关,但对所创建产品的安全性仍然至关重要。因为本节涉及的问题与源代码没有直接关系,所以我们将它与其他章节分开。
GCP Terraform Misconfiguration: GKE Cluster Node Auto-Repair Disabled
Abstract
Terraform 配置禁用了 GKE 节点池的节点自动修复。
Explanation
每个云服务安全功能都旨在防止或减少已知威胁。当这些功能被故意禁用或由于疏忽被禁用时,则不提供任何保护。
默认情况下,如果 GKE 节点在给定时间段内重复报告不正常的状态,GKE 会启动该节点的修复过程。禁用节点自动修复可防止及时自动替换可能运行关键任务工作负载的不正常节点。
示例 1:以下 Terraform 配置通过在
默认情况下,如果 GKE 节点在给定时间段内重复报告不正常的状态,GKE 会启动该节点的修复过程。禁用节点自动修复可防止及时自动替换可能运行关键任务工作负载的不正常节点。
示例 1:以下 Terraform 配置通过在
management
块中将 auto_repair
设置为 false
,禁用了节点池的节点自动修复。
resource "google_container_node_pool" "node-pool-demo" {
...
management {
auto_repair = false
...
}
...
}
References
[1] HashiCorp google_container_node_pool
[2] Google Cloud Auto-repairing nodes
[3] Standards Mapping - CIS Google Kubernetes Engine Benchmark Recommendation 5.5.2
[4] Standards Mapping - FIPS200 CM
[5] Standards Mapping - NIST Special Publication 800-53 Revision 4 SI-2 Flaw Remediation (P1)
[6] Standards Mapping - NIST Special Publication 800-53 Revision 5 SI-2 Flaw Remediation
[7] Standards Mapping - OWASP API 2023 API8 Security Misconfiguration
[8] Standards Mapping - OWASP Top 10 2017 A9 Using Components with Known Vulnerabilities
[9] Standards Mapping - OWASP Top 10 2021 A06 Vulnerable and Outdated Components
[10] Standards Mapping - Payment Card Industry Data Security Standard Version 3.2.1 Requirement 6.2
[11] Standards Mapping - Payment Card Industry Data Security Standard Version 4.0 Requirement 6.3.3
[12] Standards Mapping - Payment Card Industry Data Security Standard Version 4.0.1 Requirement 6.3.3
[13] Standards Mapping - Payment Card Industry Software Security Framework 1.0 Control Objective 10.2 - Threat and Vulnerability Management
[14] Standards Mapping - Payment Card Industry Software Security Framework 1.1 Control Objective 10.2 - Threat and Vulnerability Management
[15] Standards Mapping - Payment Card Industry Software Security Framework 1.2 Control Objective 10.2 - Threat and Vulnerability Management, Control Objective C.1.6 - Web Software Components & Services
desc.structural.hcl.gcp_terraform_misconfiguration_gke_cluster_node_auto_repair_disabled