Repository navigation
Labels
BugSomething isn't workingFramework - FedRAMP HighFedRAMP High compliance regime and controlsFramework - IL5DoD Impact Level 5 (IL5) compliance regime and controlsLevel of Effort - LowQuick, well-defined tasks with no unknowns; takes a few hours up to one day to completePriority - HighCritical issues blocking development or users; urgent bugs or core features for releaseScope - BlueprintRelated to solution blueprints in the blueprints directoryScope - ModuleRelated to reusable Terraform modules in the modules directorySecuritySomething is insecure or can be secured
Description
Bug Description
The blueprints/il5/gke-hardened/main.tf file declares several CIS hardening settings that never reach the cluster:
enable_features.enable_shielded_nodes = trueis a typo forshielded_nodes, so shielded nodes stay at the module default,false;node_config.metadata.block-project-ssh-keys,node_config.machine_typeandnode_config.confidential_nodesare not attributes of thenode_configtype inmodules/gke-cluster-standard-se, so Terraform silently discards them.
Environment and Deployment Context
- Stellar Engine Version/Commit:
mainat commit2b112119e - Deployment Type:
- US Region Restricted (e.g., Access Policy constraint)
- FedRAMP Moderate
- FedRAMP High
- DoD IL4
- DoD IL5
- Stand-alone / Custom
- FAST Stage (if applicable):
- Stage 0 (Bootstrap)
- Stage 1 (Resource Management)
- Stage 2 (Network Creation)
- Stage 3 (Security and Audit)
- Affected Component:
blueprints/il5/gke-hardened,modules/gke-cluster-standard-se - Terraform Version: any; static analysis of the configuration
- GCP Provider Version: any
Steps to Reproduce
- Read
blueprints/il5/gke-hardened/main.tf, lines 150 to 175. - Compare the attributes with the
enable_featuresandnode_configtypes inmodules/gke-cluster-standard-se/variables.tf. - Run
terraform planand inspectenable_shielded_nodesand the node configuration of the cluster.
Expected Behavior
The hardened cluster runs shielded and confidential nodes and blocks project-wide SSH keys, as the CIS Compliance Benchmark 4.3 and 4.11 comments in the file state.
Actual Behavior
The plan sets enable_shielded_nodes = false and applies none of the node settings.
Relevant Logs and Errors
No error appears, because Terraform discards object attributes that a variable type does not declare.
Additional Context
- Set
enable_features.shielded_nodes = true, which GKE applies as an in-place update. - Move confidential nodes, the machine type and the metadata to the node pool that
module "cluster_nodepool"creates throughmodules/gke-nodepool. - The migration in feat(modules)!: sync Cloud Foundation Fabric modules to v60.0.0 and add sync tooling #311 removes the discarded attributes, so that the configuration no longer suggests they apply, and leaves this fix here.
- Relevant controls include NIST 800-53r5 SC-39 and CM-6.
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingFramework - FedRAMP HighFedRAMP High compliance regime and controlsFramework - IL5DoD Impact Level 5 (IL5) compliance regime and controlsLevel of Effort - LowQuick, well-defined tasks with no unknowns; takes a few hours up to one day to completePriority - HighCritical issues blocking development or users; urgent bugs or core features for releaseScope - BlueprintRelated to solution blueprints in the blueprints directoryScope - ModuleRelated to reusable Terraform modules in the modules directorySecuritySomething is insecure or can be secured
Activity
fix(blueprints): apply il5/gke-hardened CIS node settings
fix(blueprints): apply fedramp-high/gitlab GKE control plane and node…
fix(blueprints): apply fedramp-high/gitlab GKE control plane and node…