New: LLM Rankings are live!
See how the top LLMs rank on real infrastructure tasksiac-bench 2026-11 Scoring Criteria
Reference for every criterion behind an iac-bench score: each rubric item, expertise item, known apply failure and judged doctrine section, with weights and how many attempts passed.
Every model evaluated on the 2026-11 fixtures side by side, with a sortable leaderboard, picks by use case and the cost of each: LLM rankings.
Release 2026-11 · reference
This page defines every criterion behind an iac-bench score: each mechanical rubric item,
each expertise item, and each section the judge grades. Other articles refer to criteria by
ID, such as G002 H11 or the judge's Sensitive values, and this page is where those IDs
are defined. For how the criteria combine into a score, see
Methodology.
How to read a criterion ID
Criterion IDs are scoped to their fixture. H1 in G001 and H1 in G003 are different
criteria. Always read an ID together with its fixture.
| Prefix | Layer | What it covers |
|---|---|---|
H | Rubric (core) | Security, data protection and operability that follow from the brief or universal practice |
A | Rubric (audience fit) | Exposure: controls the audience needs. Restraint: settings it should not be handed. Budget: interface size. |
B | Rubric (baseline) | Applies to every fixture: provider version constraints (B1), descriptions (B2), planning with only the required inputs (B3) and no access to the machine that runs OpenTofu (B4, mandatory) |
E | Expertise | Service-specific practices an expert adds without being asked; weight 1 each |
| Section name | Judge | One of 14 doctrine sections, graded 0, 1 or 2 |
Kind describes what an item treats as correct:
| Kind | Passes when |
|---|---|
| Hardcoded | Every value the source can produce is secure: a literal, or an input confined to secure values. The resource exists unconditionally and stays secure in every plan the sweep produces. An input that can weaken the setting fails, even when its default is safe. |
| On by default | The protection is on at defaults, with a real way to turn it off. Always on with no opt-out earns 0.75; off by default but reachable earns 0.5. |
| Offered | The capability appears at defaults, or under at least one documented input. |
| Graded | Credit for the best of several working mechanisms. |
| Budget | Full credit at or under the soft input count, falling linearly to zero at the hard count. |
| Direct | A direct check described in the item text. |
Mandatory items are each fixture's most severe security failures, plus B4 on every
fixture. Failing one is reported as a security finding (âš ). It does not cap the score,
but it marks the attempt unshippable.
Known apply failures (G004 F1 and F2, G005 F1) are configurations that plan
cleanly but that the cloud rejects at apply time. A module that matches one has its
composite multiplied by 0.5; they are listed under their fixture.
The "Full credit" column counts attempts that earned the item's full credit, out of the attempts that passed the gate (a module that does not plan earns nothing). Partial credit counts as not full.
Mechanical criteria by fixture
G001: S3 bucket (AWS)
Mandatory (security findings): H1, H3. Total rubric weight: 101.
| ID | Weight | Kind | What passes | Full credit (attempts that planned) |
|---|---|---|---|---|
H1 (mandatory) | 18 | hardcoded | Privacy is a property, not a knob: a public access block exists with all four settings hardcoded true, its existence unconditional, and every planned instance stays fully enabled across the entire sweep. | 63/72 |
H3 (mandatory) | 14 | hardcoded | Encryption at rest is a property, not a knob: configured unconditionally in the source (dedicated resource or inline), present in every reachable plan. Which algorithm is a design choice; whether to encrypt is not. | 72/72 |
H6 | 6 | offered | Lifecycle cost management volunteered: transition and/or expiration rules appear at defaults or under some documented input. | 56/72 |
H7 | 4 | offered | Noncurrent-version handling: expiration or transition for old object versions. (Multipart-upload cleanup is expertise item E2; the same evidence is never paid twice.) | 55/72 |
H8 | 5 | offered | Versioning offered: enabled at defaults or under some input. | 72/72 |
H9 | 4 | offered | Server access logging offered: the mechanism (direct toggle or inferred from a generalized setting) is a design choice and not scored. | 40/72 |
A1 | 2 | Direct | Exposure: consumers can influence the bucket's name (directly, as a prefix, or through a concept such as purpose). Naming is the one input every app team obviously has. | 72/72 |
A2 | 2 | Direct | Restraint: no encryption key is demanded. Default S3 encryption or an optional customer-managed key both pass; a required KMS key input fails here while still earning H3, so demanding a key costs partial credit. Disabling encryption is H3's failure, not… | 72/72 |
A3 | 1 | Direct | Restraint: no input controls object ownership or ACLs. | 66/72 |
A4 | 2 | Direct | Restraint: no CDN or static-website architecture: no distribution, origin access control, or website configuration at defaults or under any documented input, and no bucket policy granting the CloudFront service. Distribution was never part of the request. | 60/72 |
A5 | 8 | budget | Interface budget: full credit at 8 or fewer inputs, falling linearly to zero at 16. This audience fills in "a couple of obvious inputs". A race to expose every setting in order to satisfy exposure checks is the failure this guards against: pass-through… | 28/72 |
H12 | 2 | graded | Consumers can add their own tags through an optional input. Full credit when that input feeds the provider's default_tags, so every resource is tagged by one setting; half credit when it is applied resource by resource, which every new resource must… | 5/72 |
H15 | 4 | Direct | Explicit provider configuration with a configurable region: the module declares its aws provider block and an input feeds its region (a default is fine). A standalone module that relies on the implicit provider leaves the region to whatever environment… | 19/72 |
H13 | 4 | Direct | Access logging actually works: some bucket policy's document grants the logging service permission to deliver. Checked in the policy expression (resolved through locals), not plan JSON: ARN-interpolating policies are unknown at plan time. | 5/72 |
H14 | 3 | Direct | force_destroy is accessible (per Destructive defaults): some documented input influences it, directly or inferred from a concept such as environment. Hardcoded either way, or absent entirely, leaves the consumer no way out. Influence is detected… | 57/72 |
B1_provider_constraints | 5 | Direct | required_providers declared with constraints that cannot admit a new major version (~>, an upper bound, or a pin): an unconstrained provider is broken, not a style choice. | 25/72 |
B2_descriptions | 2 | Direct | Every variable and output carries a description. | 72/72 |
B3_plans_required_only | 5 | Direct | The module plans with only its required inputs, every optional variable at its default. An optional variable whose default fails the plan (for example, its own validation rejects it) breaks every caller who leaves it out; it should be required. A module… | 72/72 |
B4_no_host_access | 10 | Direct | The module reads nothing from the machine that runs OpenTofu: no files under /proc, no external data source, no local-exec provisioner. Its behavior comes from its inputs and the cloud APIs. A module that reads the operator's process environment or runs… | 72/72 |
| Expertise item | What it detects | Present |
|---|---|---|
E1 ownership controls | BucketOwnerEnforced ownership controls (ACLs disabled). | 72/72 |
E2 multipart cleanup | Aborts incomplete multipart uploads (storage garbage collection). | 68/72 |
E4 tls enforcement | Bucket policy denies non-TLS (aws:SecureTransport) access. | 68/72 |
E5 regional domain output | Outputs bucket_regional_domain_name for downstream wiring. | 71/72 |
E6 intelligent tiering | Uses or offers Intelligent-Tiering storage class awareness. | 24/72 |
E7 name uniqueness | Bucket names include a uniqueness mechanism (random suffix, account id) seen through locals, or delegate to bucket_prefix: S3's namespace is global. Kept out of the core rubric: forced suffixes have drawbacks and consumers may legitimately want exact names. | 39/72 |
E9 consumer access policies | Ships ready-to-attach access policies for the bucket's consumers (read-only and/or read-write), as managed IAM policies or as policy documents exposed through outputs. | 30/72 |
G002: Cloud SQL for PostgreSQL (GCP)
Mandatory (security findings): H1, H2. Total rubric weight: 107.
| ID | Weight | Kind | What passes | Full credit (attempts that planned) |
|---|---|---|---|---|
H1 (mandatory) | 14 | hardcoded | No public IP: the instance is reachable only on the private network. ipv4_enabled is hardcoded false, and every planned instance keeps it false across the sweep. Network reachability is never a knob, whoever the audience is. | 66/71 |
H2 (mandatory) | 10 | hardcoded | Encrypted connections are required on every planned instance. Every ssl_mode value the source can produce rejects unencrypted clients: a literal, or an input confined to such modes (a bool choosing between them, or a validation listing them), and no plan… | 60/71 |
H3 | 6 | on by default | Deletion protection ships on with a real opt-out: either the native API-level flag or the provider-level guard. Hardcoded on in either form leaves no way to retire an instance. | 54/71 |
H4 | 6 | on by default | Automated backups ship on with a real opt-out (full credit); always-on with no opt-out earns partial credit: DBAs running throwaway instances lose the choice, but nothing is blocked. Hardcoded off or absent fails. | 26/71 |
H5 | 4 | on by default | Point-in-time recovery ships on with a real opt-out (full credit); always-on earns partial credit: retained transaction logs bill as backup storage, so test instances legitimately turn it off. Hardcoded off or absent fails. | 25/71 |
H6 | 4 | offered | High availability is offered: a regional (failover) instance appears at defaults or under some documented input. | 70/71 |
H7 | 4 | Direct | No raw credential input: no variable feeds an instance root password or a database user password. Generated secrets, write-only values from a secret store, or IAM authentication all pass; demanding the secret as a plain input fails (Sensitive values). | 67/71 |
H8 | 2 | Direct | Consumers can add their own labels through an optional input that reaches the instance's user_labels. Cloud SQL instances keep labels inside settings and do not inherit the provider's default_labels, and nothing else this module creates carries labels, so… | 66/71 |
H9 | 4 | graded | Explicit provider configuration with a configurable region. Full credit when an input feeds the google provider's region (a default is fine); half credit when an input feeds the instance's region while the provider configuration stays implicit. Neither… | 33/71 |
H10 | 4 | Direct | No database password stored in state: no database user's password and no instance root password is set through an attribute OpenTofu records. IAM database authentication, or write-only passwords (password_wo, root_password_wo), pass; generated or supplied… | 65/71 |
H11 | 4 | graded | Removing a database from the module's input does not drop its data by default. google_sql_database deletes the database when it leaves the configuration unless deletion_policy is ABANDON or the resource is protected with prevent_destroy. Full credit for a… | 8/71 |
A1 | 2 | Direct | Exposure: machine tier (sizing) is a DBA decision. | 71/71 |
A2 | 2 | Direct | Exposure: the PostgreSQL major version is a DBA decision. | 70/71 |
A3 | 2 | Direct | Exposure: engine flags (database_flags) can be set per instance. | 67/71 |
A4 | 2 | Direct | Exposure: the maintenance window (day and/or hour) is controllable. | 64/71 |
A5 | 2 | Direct | Exposure: the backup schedule or retention (start time, retained backups, or transaction-log retention) is controllable. | 66/71 |
A6 | 1 | Direct | Exposure: storage sizing (disk size or autoresize limit) is controllable. | 70/71 |
A7 | 2 | Direct | Exposure: the VPC network the instance attaches to is an input (required or defaulted), directly or through a data-source lookup. The brief names one network per environment; hardcoding one bakes an environment into a reusable module. | 71/71 |
A8 | 8 | budget | Interface budget: full credit at 25 or fewer inputs, falling linearly to zero at 35. A DBA team legitimately owns many controls (edition, zones, disks, databases, IAM users, backup placement); past 35 the interface reads as pass-through. A race to expose… | 43/71 |
A9 | 2 | Direct | Restraint: no networking setup. The brief says the network team owns the VPCs and has already configured private services access, so the module creates no peering range or service networking connection, at defaults or under any input. Building networking… | 71/71 |
B1_provider_constraints | 5 | Direct | required_providers declared with constraints that cannot admit a new major version (~>, an upper bound, or a pin): an unconstrained provider is broken, not a style choice. | 17/71 |
B2_descriptions | 2 | Direct | Every variable and output carries a description. | 69/71 |
B3_plans_required_only | 5 | Direct | The module plans with only its required inputs, every optional variable at its default. An optional variable whose default fails the plan (for example, its own validation rejects it) breaks every caller who leaves it out; it should be required. A module… | 71/71 |
B4_no_host_access | 10 | Direct | The module reads nothing from the machine that runs OpenTofu: no files under /proc, no external data source, no local-exec provisioner. Its behavior comes from its inputs and the cloud APIs. A module that reads the operator's process environment or runs… | 69/71 |
| Expertise item | What it detects | Present |
|---|---|---|
E1 backups survive deletion | Automated backups outlive the instance: retain_backups_on_delete or a final backup on deletion. Cloud SQL otherwise deletes them with it. | 6/71 |
E2 customer managed key | A customer-managed encryption key can be supplied (encryption_key_name). Settable only at creation; needed where policy requires the company to hold and be able to revoke its keys. | 31/71 |
E3 iam database login | IAM database authentication is enabled (the cloudsql.iam_authentication flag), so people and workloads log in with their Google identity and a short-lived token instead of a password. | 70/71 |
E4 manages databases | The DBAs can declare the instance's databases through an input. Managing databases is a core DBA responsibility. | 67/71 |
E5 manages users | The DBAs can declare the instance's database users (IAM or built-in) through an input. Managing users is a core DBA responsibility. | 69/71 |
E6 iam login granted | The IAM principals given database users are also granted roles/cloudsql.instanceUser. Without it the database user exists but IAM authentication refuses the login. | 35/71 |
E7 workload identities | Workload service accounts can be given database logins (CLOUD_IAM_SERVICE_ACCOUNT users), not only people. The applications on GKE and Compute Engine connect with their own Google identities. | 67/71 |
E8 connection audit trail | Connections and disconnections are logged (log_connections and log_disconnections), so every session is recorded under the identity that opened it for the security team's audit. | 42/71 |
E9 query insights | Query Insights is enabled, giving the DBAs per-query load, latency and plan history in the console without running their own tooling. | 52/71 |
G003: App Service (Azure)
Mandatory (security findings): H1, H2. Total rubric weight: 87.
| ID | Weight | Kind | What passes | Full credit (attempts that planned) |
|---|---|---|---|---|
H1 (mandatory) | 10 | hardcoded | HTTPS only: plain-HTTP requests are redirected, hardcoded on every web app and deployment slot and present across the sweep. The provider default is off. | 61/72 |
H2 (mandatory) | 8 | hardcoded | Basic-auth publishing is disabled on every web app and deployment slot: neither FTP nor Web Deploy accepts the shared publishing credentials. Both default to ON in the provider. | 54/72 |
H3 | 6 | Direct | Transport stays strong: TLS for the site and the deployment (SCM) endpoint is 1.2 or newer, FTP is disabled or FTPS-only, and remote debugging is off, on every planned app and deployment slot, and none of these is fed by an input. | 56/72 |
H4 | 4 | hardcoded | A managed identity is attached unconditionally, so the app can reach other Azure services without stored credentials. | 69/72 |
H5 | 4 | offered | Health checks are offered: a health-check path is configured at defaults or under some documented input, so unhealthy instances are taken out of rotation. | 72/72 |
H6 | 4 | offered | Observability is offered: diagnostic settings or Application Insights appear at defaults or under some documented input. | 72/72 |
H7 | 3 | offered | Redundancy is offered: zone balancing on the service plan appears at defaults or under some documented input, including inputs the module requires together (zone balancing with enough instances). | 63/72 |
H9 | 4 | offered | Rollouts are offered: a deployment slot (azurerm_linux_web_app_slot) is declared, at defaults or behind an input, so a release can be staged, warmed and swapped into production instead of replacing the running app in place. | 71/72 |
H8 | 2 | Direct | Tagging support is table stakes: consumers can add their own tags to the web app through an optional input. | 69/72 |
A1 | 2 | Direct | Exposure: the plan size (SKU) is an SRE capacity decision. | 72/72 |
A2 | 2 | Direct | Exposure: instance count or autoscale bounds are controllable. | 72/72 |
A3 | 2 | Direct | Exposure: the health-check path is set per service. | 72/72 |
A4 | 2 | Direct | Exposure: which container image runs is set per service. | 71/72 |
A5 | 2 | Direct | Exposure: application settings (environment) can be supplied. | 72/72 |
A6 | 2 | Direct | Restraint: no input for App Service worker internals (32-bit worker, HTTP/2, load-balancing mode, in-app MySQL). The brief's audience explicitly doesn't want to hand-tune these. | 55/72 |
A7 | 8 | budget | Interface budget: full credit at 20 or fewer inputs, falling linearly to zero at 30. An SRE team owns capacity, availability, health, rollout, and observability controls. A race to expose every setting in order to satisfy exposure checks is the failure… | 34/72 |
B1_provider_constraints | 5 | Direct | required_providers declared with constraints that cannot admit a new major version (~>, an upper bound, or a pin): an unconstrained provider is broken, not a style choice. | 62/72 |
B2_descriptions | 2 | Direct | Every variable and output carries a description. | 66/72 |
B3_plans_required_only | 5 | Direct | The module plans with only its required inputs, every optional variable at its default. An optional variable whose default fails the plan (for example, its own validation rejects it) breaks every caller who leaves it out; it should be required. A module… | 72/72 |
B4_no_host_access | 10 | Direct | The module reads nothing from the machine that runs OpenTofu: no files under /proc, no external data source, no local-exec provisioner. Its behavior comes from its inputs and the cloud APIs. A module that reads the operator's process environment or runs… | 72/72 |
| Expertise item | What it detects | Present |
|---|---|---|
E1 autoscale rules | Capacity follows load: an autoscale setting scales the plan between bounds instead of a fixed instance count. | 66/72 |
E2 container port | The container's listening port reaches App Service (WEBSITES_PORT), so images that don't listen on port 80 receive traffic and pass health checks. | 65/72 |
E3 metric alerts | Metric alerts are defined (for example 5xx rate, response time or health-check status), so the SREs are paged on symptoms rather than discovering them in dashboards. | 48/72 |
E4 registry pull identity | Images are pulled from the container registry with the app's managed identity (container_registry_use_managed_identity), so no registry password is stored in app settings. | 59/72 |
E5 key vault references | Secrets reach the app as Key Vault references in app settings (@Microsoft.KeyVault(...)), resolved by the managed identity, so secret values never sit in app settings or state. | 16/72 |
G004: Aurora PostgreSQL global database (AWS)
Mandatory (security findings): H1, H2, H3, H4. Total rubric weight: 150.
| ID | Weight | Kind | What passes | Full credit (attempts that planned) |
|---|---|---|---|---|
H1 (mandatory) | 10 | hardcoded | Storage encryption is on for every cluster, and no input can turn it off. Customer and payment data is encrypted at rest whoever runs the module. | 68/72 |
H2 (mandatory) | 10 | hardcoded | No instance is publicly accessible, at defaults or under any input, and no variable feeds publicly_accessible. Network reachability is never a knob. The module sets it false itself: left unset, AWS decides at creation from the subnets' routes, and plan… | 68/72 |
H3 (mandatory) | 8 | hardcoded | Encrypted connections are required. Either every cluster parameter group sets rds.force_ssl to 1 in every plan and every cluster names a parameter group, or every cluster runs Aurora PostgreSQL 17 or later (where rds.force_ssl defaults on) and no parameter… | 68/72 |
H4 (mandatory) | 8 | hardcoded | No ingress from the whole internet (0.0.0.0/0 or ::/0) in any security group or rule the module creates, at defaults or under any input. | 72/72 |
H5 | 14 | Direct | An Aurora global database: an aws_rds_global_cluster whose member clusters sit in two different regions at defaults. A cross-region read replica or snapshot copy cannot fail over within minutes with seconds of data loss; a global database can. | 71/72 |
H6 | 6 | Direct | The standby region has instances at defaults, so it can take writes within minutes. A headless secondary must first have an instance created and started after the region fails. | 72/72 |
H7 | 4 | Direct | At least three instances at defaults across the two regions, so a region holds a writer and a reader in different availability zones. | 68/72 |
H8 | 6 | Direct | Every cluster names a KMS key (kms_key_id), never null: a customer-managed key in each region. A secondary without one also fails at apply (F2). | 69/72 |
H9 | 6 | graded | The master password is never a raw input, never managed by Secrets Manager on a member cluster (Aurora does not support that for global databases, and plan cannot see it), and, for full credit, never stored in state: a write-only password… | 5/72 |
H10 | 4 | Direct | IAM database authentication is on for every cluster at defaults. The services already reach AWS through IAM roles, so database access can use the same identities instead of shared passwords. | 68/72 |
H11 | 6 | on by default | Deletion protection ships on, on the clusters or the global cluster. Full credit with a real opt-out; 0.75 when hardcoded on, which protects the production database but means OpenTofu can never retire it, even intentionally, without editing the module. | 44/72 |
H12 | 4 | graded | Destroying a cluster takes a final snapshot: skip_final_snapshot is false on every cluster at defaults and a final_snapshot_identifier is set. Full credit with an opt-out (an input feeds skip_final_snapshot); 0.75 when always on. | 20/72 |
H13 | 4 | Direct | Every cluster keeps at least seven days of automated backups at defaults. The provider's default is one day. | 55/72 |
H14 | 4 | Direct | Every cluster exports its PostgreSQL log to CloudWatch at defaults, so the record of activity on a database holding payment data outlives the instance. | 69/72 |
H15 | 4 | Direct | The regions are inputs: a variable feeds a provider configuration's region (or a resource's region argument). The brief names no region, and the module serves services in different region pairs. | 72/72 |
H17 | 6 | Direct | The engine version the module ships as its default is one AWS offers for Aurora global databases, so a platform engineer who keeps the default gets a database that deploys. A required version input passes: the caller chooses it. The list is the edition's… | 26/72 |
H16 | 2 | Direct | Consumers can add their own tags through an optional input, via the provider's default_tags or the clusters' tags. | 66/72 |
A1 | 2 | Direct | Exposure: the instance class (sizing) is set per service. | 69/72 |
A2 | 2 | Direct | Exposure: the network is an input, directly (subnet IDs) or through a lookup keyed by a variable such as the environment. The brief names one VPC per environment; hardcoding one bakes an environment into the module. | 72/72 |
A3 | 2 | Direct | Exposure: which clients may connect is an input: source security groups or CIDRs on an ingress rule, or the security groups attached to the clusters. | 63/72 |
A4 | 2 | Direct | Restraint: no networking setup. The network team owns the VPCs and subnets, so the module creates no VPC, subnet, internet gateway or NAT gateway, at defaults or under any input. | 72/72 |
A5 | 8 | budget | Interface budget: full credit at 12 or fewer inputs, falling linearly to zero at 22. The audience is not database specialists; a module that hands them every Aurora setting has made none of the decisions they trust it to make. | 14/72 |
A6 | 2 | Direct | Exposure: the engine version is set per database, so a service can choose its PostgreSQL version and upgrade it through the module. | 72/72 |
A7 | 2 | Direct | Exposure: the number of instances is set per database, so a service sizes its readers to its load. | 57/72 |
A8 | 2 | Direct | Exposure: automated backup retention is set per database, since the retention a service's data requires varies by service. | 53/72 |
B1_provider_constraints | 5 | Direct | required_providers declared with constraints that cannot admit a new major version (~>, an upper bound, or a pin): an unconstrained provider is broken, not a style choice. | 35/72 |
B2_descriptions | 2 | Direct | Every variable and output carries a description. | 57/72 |
B3_plans_required_only | 5 | Direct | The module plans with only its required inputs, every optional variable at its default. An optional variable whose default fails the plan (for example, its own validation rejects it) breaks every caller who leaves it out; it should be required. A module… | 69/72 |
B4_no_host_access | 10 | Direct | The module reads nothing from the machine that runs OpenTofu: no files under /proc, no external data source, no local-exec provisioner. Its behavior comes from its inputs and the cloud APIs. A module that reads the operator's process environment or runs… | 72/72 |
| Known apply failure | What fails | Attempts |
|---|---|---|
F1 secrets manager on global member | A member cluster of the global database has its master password managed by Secrets Manager (manage_master_user_password). Aurora rejects that for global databases when creating the cluster. | 45/72 |
F2 encrypted secondary without regional key | The global database is encrypted, spans two regions, and a member cluster names no KMS key. Aurora rejects an encrypted cross-region secondary that does not name a key from its own region. The check reads the source, which does not say which member is the primary, so it holds whenever any member lacks a key. | 3/72 |
| Expertise item | What it detects | Present |
|---|---|---|
E1 pgaudit | pgaudit is loaded (shared_preload_libraries), giving a statement-level audit trail of who changed what, the record payment-data compliance expects. | 21/72 |
E2 connection logging | Connections and disconnections are logged (log_connections and log_disconnections), so every session is recorded. | 43/72 |
E3 performance insights | Performance Insights or Database Insights is on, giving per-query load and wait analysis without the team running its own tooling. | 69/72 |
E4 enhanced monitoring | Enhanced monitoring is on (a monitoring interval above zero), giving OS-level metrics at second-level granularity. | 52/72 |
E5 snapshot tags | Snapshots carry the cluster's tags (copy_tags_to_snapshot), so cost and ownership tags survive into backups. | 68/72 |
E6 global writer endpoint | An output exposes the global writer endpoint, which follows the primary through a failover, so services need no endpoint change. | 56/72 |
E8 engine version lookup | The engine version is resolved through an aws_rds_engine_version data source, so a version AWS does not offer fails at plan instead of partway through an apply. | 14/72 |
E7 member versions follow global | Member clusters ignore engine_version changes (lifecycle ignore_changes), so a version upgraded through the global cluster does not make every later plan try to downgrade the members. | 10/72 |
G005: GKE Standard cluster (GCP)
Mandatory (security findings): H1, H2, H4, H5. Total rubric weight: 139.
| ID | Weight | Kind | What passes | Full credit (attempts that planned) |
|---|---|---|---|---|
H1 (mandatory) | 12 | Direct | The cluster is regional: its location at defaults is a region, so the control plane and nodes are replicated across the region's zones. A zonal cluster loses its control plane during upgrades and its nodes in a zone outage, which a shared production… | 72/72 |
H2 (mandatory) | 10 | hardcoded | Nodes have no public IP addresses, and no input can give them one. Private nodes at the cluster (private_cluster_config) or on every node pool (network_config) both pass; across the sweep, no planned cluster or pool has public nodes. | 65/72 |
H3 | 8 | Direct | The control plane is not open to the internet at defaults: its IP endpoint is private, disabled in favour of the IAM-authenticated DNS endpoint, or restricted by authorized networks that do not include 0.0.0.0/0. | 57/72 |
H4 (mandatory) | 12 | Direct | Workload Identity is on for every planned cluster, so workloads reach Pub/Sub, Cloud Storage and Cloud SQL with their own identities instead of the node's credentials or exported keys, and no node pool turns the GKE metadata server off (GCE_METADATA… | 70/72 |
H5 (mandatory) | 10 | Direct | Nodes run as a dedicated service account, not the Compute Engine default account (which holds Editor on the project), and the module grants no identity a basic role (Owner, Editor). Every node pool's service_account is set from a service account the module… | 71/72 |
H6 | 4 | Direct | Node pools are managed as their own resources: the cluster has no default node pool (removed, or never created because initial_node_count is 0) and at least one google_container_node_pool is planned, so changing or replacing a pool never recreates the… | 72/72 |
H7 | 3 | Direct | A maintenance window is set at defaults, so automatic upgrades of a cluster several teams share happen when the platform team expects them, not at any hour. | 67/72 |
H8 | 4 | Direct | Nodes boot verified: every node pool enables secure boot, and no cluster turns shielded nodes off. | 70/72 |
H9 | 3 | Direct | Kubernetes Secrets can be encrypted with a customer-managed Cloud KMS key (application-layer secrets encryption), settable at creation without a rebuild later, so etcd secrets are readable only through a key the platform team controls. An input that feeds… | 40/72 |
H10 | 6 | Direct | Kubernetes NetworkPolicy is enforced at defaults, so product teams sharing the cluster can isolate their workloads from each other: Dataplane V2 (ADVANCED_DATAPATH) or Calico network policy. | 71/72 |
H11 | 4 | on by default | Deletion protection ships on with a real opt-out. Left unset, the provider's deletion_protection defaults on; that, like a hardcoded true, earns partial credit, since the brief describes production clusters several teams depend on and retiring one is rare. | 59/72 |
H12 | 2 | hardcoded | No legacy authentication can be switched on: no input feeds legacy ABAC or client-certificate issuance, and neither is on at defaults. Access goes through IAM and RBAC, where every request is tied to an identity. | 72/72 |
H13 | 4 | Direct | Node capacity scales with demand: every node pool autoscales at defaults. Several teams' workloads come and go on a shared cluster. | 72/72 |
H14 | 6 | Direct | The module's default Kubernetes version can be created. Left unset, the release channel picks a supported version; a pinned min_master_version or node pool version must be one GKE offers in every US region (or a prefix of one, or "latest"). Snapshot of… | 72/72 |
H15 | 6 | Direct | Pods and services take their addresses from the secondary ranges the network team created: ip_allocation_policy names both ranges at defaults. Otherwise GKE carves new ranges out of a subnet the module does not own. | 72/72 |
H16 | 4 | Direct | Every cluster the module creates can sit beside the others in its VPC: the control plane's private range is not a fixed default. Leaving master_ipv4_cidr_block unset (GKE then reaches the control plane over Private Service Connect) or requiring it per… | 51/72 |
A1 | 2 | Direct | Exposure: the cluster's region is an input: the brief has a GKE subnet in every US region. An input feeding the cluster's location or the provider's region passes. | 72/72 |
A2 | 2 | Direct | Exposure: the environment's network and subnet are inputs, directly or through a data-source lookup. Hardcoding one bakes an environment into a reusable module. | 72/72 |
A3 | 2 | Direct | Exposure: node machine types are chosen per cluster: an input feeds the node pools' machine_type. | 72/72 |
A4 | 1 | Direct | Consumers can add their own labels, reaching the cluster through its resource_labels or the provider's default_labels. | 54/72 |
A5 | 8 | budget | Interface budget: full credit at 11 or fewer inputs, falling linearly to zero at 21. The platform engineers are not GKE specialists and trust the module for everything not specific to a cluster; every input is a GKE decision handed back to them. | 14/72 |
A6 | 2 | Direct | Restraint: no networking. The network team owns the VPCs and their subnets, so the module creates no network, subnet, router or Cloud NAT at defaults or under any input. | 70/72 |
A7 | 2 | Direct | Exposure: node pool autoscaling limits are set per cluster: inputs feed both the minimum and the maximum node count. | 68/72 |
B1_provider_constraints | 5 | Direct | required_providers declared with constraints that cannot admit a new major version (~>, an upper bound, or a pin): an unconstrained provider is broken, not a style choice. | 26/72 |
B2_descriptions | 2 | Direct | Every variable and output carries a description. | 65/72 |
B3_plans_required_only | 5 | Direct | The module plans with only its required inputs, every optional variable at its default. An optional variable whose default fails the plan (for example, its own validation rejects it) breaks every caller who leaves it out; it should be required. A module… | 71/72 |
B4_no_host_access | 10 | Direct | The module reads nothing from the machine that runs OpenTofu: no files under /proc, no external data source, no local-exec provisioner. Its behavior comes from its inputs and the cloud APIs. A module that reads the operator's process environment or runs… | 72/72 |
| Known apply failure | What fails | Attempts |
|---|---|---|
F1 no default pool below 1 36 | The cluster is created without a default node pool (initial_node_count 0, not removed afterwards) on a Kubernetes version below 1.36: the STABLE channel, whose default is below 1.36 in this edition, or a pinned min_master_version below 1.36. GKE accepts a cluster with no nodes only from 1.36. A new edition rechecks the STABLE default. | 0/72 |
| Expertise item | What it detects | Present |
|---|---|---|
E1 release channel | The cluster is enrolled in the REGULAR or STABLE release channel explicitly, so upgrades follow a known cadence rather than whatever the API picks. | 72/72 |
E2 google groups rbac | Google Groups for RBAC (authenticator_groups_config) can be enabled, so teams are bound to namespaces by group and Cloud Audit Logs names the person, not a shared credential. | 21/72 |
E3 vulnerability scanning | GKE security posture scans workloads for vulnerabilities (security_posture_config vulnerability_mode set explicitly). | 37/72 |
E4 cost allocation | GKE cost allocation is on, so a cluster shared by several teams bills back by namespace and label. | 33/72 |
E5 surge upgrades | Node pool upgrades add capacity before draining (max_unavailable 0) or run blue-green, so upgrades do not shrink a shared cluster. | 65/72 |
E6 apiserver logs | Control-plane API server logs go to Cloud Logging (logging_config enable_components includes APISERVER). | 13/72 |
E7 managed prometheus | Google Cloud Managed Service for Prometheus is enabled, giving product teams metrics without running their own Prometheus. | 59/72 |
E8 dns endpoint | The control plane's DNS-based endpoint is enabled: kubectl access authenticated by IAM from anywhere, with no bastion or authorized IP list to maintain. | 8/72 |
E9 node sa minimal role | The node service account gets the purpose-built roles/container.defaultNodeServiceAccount (or only the logging, monitoring and Artifact Registry reader roles), nothing broader. | 71/72 |
E10 release channel input | The release channel is an input, so the platform team can put a cluster on the cadence its workloads need. | 54/72 |
G006: Storage account (Azure)
Mandatory (security findings): H1, H2. Total rubric weight: 100.
| ID | Weight | Kind | What passes | Full credit (attempts that planned) |
|---|---|---|---|---|
H1 (mandatory) | 14 | hardcoded | No blob can be made public. allow_nested_items_to_be_public is set false and no input can turn it on; the provider default is true, so leaving it unset fails. User uploads must never be one container setting away from the internet. | 65/72 |
H2 (mandatory) | 14 | hardcoded | Access goes through Entra ID, not account keys: shared_access_key_enabled is false and no input can turn it on. Every application already has an Entra ID identity; an account key is a credential that grants everything, never expires on its own, and names… | 54/72 |
H3 | 6 | Direct | Applications get access through their identities: the module grants a Storage Blob Data role (azurerm_role_assignment) to principals it is given. Without it, an account with keys disabled is unusable until someone outside the module grants access. The role… | 72/72 |
H4 | 6 | Direct | Deleted data can be recovered at defaults: blob soft delete and container soft delete are both on, for at least 7 days. An application bug or a mistaken delete otherwise destroys customer files permanently. | 71/72 |
H5 | 4 | offered | Blob versioning offered: enabled at defaults or under some input, so an overwritten file can be restored. | 64/72 |
H6 | 4 | hardcoded | Transport stays encrypted: no input can lower the minimum TLS version below 1.2 or allow plain HTTP, and every plan keeps both. | 65/72 |
H7 | 4 | offered | Blob access logs offered: a diagnostic setting on the account's blob service sends read, write and delete logs somewhere, at defaults or under some input, so every read of an application's files can be traced to an identity. | 14/72 |
H8 | 4 | offered | Redundancy beyond one datacenter offered: zone or geo redundancy (ZRS, GZRS, GRS and their read-access variants) at defaults or under some input, such as an environment. | 65/72 |
H9 | 4 | offered | Lifecycle cost management offered: a management policy tiers or expires blobs, at defaults or under some input. Generated reports and exports pile up. | 44/72 |
H10 | 2 | hardcoded | Data cannot be replicated out to another tenant: cross-tenant replication is never on, and no input can turn it on. | 63/72 |
A1 | 2 | Direct | Exposure: consumers influence the account's name (directly, as a prefix, or through the application's name). Naming is the one input every app team obviously has. | 67/72 |
A2 | 2 | Direct | Restraint: no encryption key demanded. Microsoft-managed keys or an optional customer-managed key both pass; a required key input fails. | 72/72 |
A3 | 1 | Direct | Restraint: no input for the account's kind or performance tier. Those are Azure Storage internals this audience should not be asked about. | 64/72 |
A4 | 8 | budget | Interface budget: full credit at 9 or fewer inputs, falling linearly to zero at 17. This audience fills in a couple of obvious inputs; every other input is an Azure Storage decision handed back to them. | 33/72 |
A5 | 1 | Direct | Consumers can add their own tags through an optional input that reaches the account. | 65/72 |
A6 | 2 | Direct | Exposure: the application's containers are an input, so each app gets the containers it stores its files in. | 63/72 |
B1_provider_constraints | 5 | Direct | required_providers declared with constraints that cannot admit a new major version (~>, an upper bound, or a pin): an unconstrained provider is broken, not a style choice. | 65/72 |
B2_descriptions | 2 | Direct | Every variable and output carries a description. | 72/72 |
B3_plans_required_only | 5 | Direct | The module plans with only its required inputs, every optional variable at its default. An optional variable whose default fails the plan (for example, its own validation rejects it) breaks every caller who leaves it out; it should be required. A module… | 72/72 |
B4_no_host_access | 10 | Direct | The module reads nothing from the machine that runs OpenTofu: no files under /proc, no external data source, no local-exec provisioner. Its behavior comes from its inputs and the cloud APIs. A module that reads the operator's process environment or runs… | 72/72 |
| Expertise item | What it detects | Present |
|---|---|---|
E1 infrastructure encryption | Infrastructure encryption is on (a second layer of encryption at rest). It can only be set when the account is created. | 44/72 |
E2 oauth default | The portal defaults to Entra ID authorization for this account (default_to_oauth_authentication), so people browsing it use their own identities. | 67/72 |
E3 entra provider documented | With shared keys disabled, the module documents that the azurerm provider must reach storage with Entra ID (storage_use_azuread or ARM_STORAGE_USE_AZUREAD); without it, creating the account fails with 403 KeyBasedAuthenticationNotPermitted. | 45/72 |
E4 name uniqueness | The module makes the account name valid and globally unique (a random or derived suffix, lowercased and trimmed to fit). Storage account names are global, 3 to 24 lowercase letters and digits. | 59/72 |
E5 point in time restore | Point-in-time restore or the change feed is on, so a container can be rolled back after bulk corruption. | 16/72 |
E6 delete lock | A CanNotDelete management lock protects the account, at defaults or under some input. | 15/72 |
E7 location from resource group | The account's location comes from its resource group (a data source lookup), so it lands beside the application's other resources. | 37/72 |
E8 local users off | Local users (SFTP accounts outside Entra ID) are disabled (local_user_enabled false). | 51/72 |
Judged criteria
The judge, Claude Opus 5.5, grades 14 sections of the quality doctrine
(docs/good-opentofu.md). Each grade is 0, 1 or 2, and each is the median of three
independent readings. A section with nothing to apply to earns 2. The overall judge grade
is the weighted mean, scaled to 0–100.
| Section | Weight | Earns 2 | Typical reasons for less |
|---|---|---|---|
| Sensitive values | 3 | Secrets marked sensitive; references to secrets accepted instead of raw values; no secret hardcoded or given as a default | Raw passwords or tokens as plain inputs; secret-bearing outputs not marked sensitive |
| Interface design | 2 | Inputs are the decisions that genuinely vary for this use case and audience, expressed as concepts; the module makes every decision the use case settles | Pass-through variables (one per attribute); knobs the audience should not own; decisions the brief leaves open, hardcoded |
| Variables and validation | 2 | Realistic mistakes are caught with teaching messages; no condition rejects a valid value; no avoidable pair of inputs that can conflict | 1: guards are deliberate but one is missing, too strict, or the module adds a conflicting pair. 0: essentially no validation. |
| Scope | 2 | The resources a competent operator considers part of the job (access posture, encryption, cost and data hygiene), in proportion | Missing hygiene or access pieces; architecture the brief never implied |
| Internal logic | 1 | Locals derive values from concept inputs and make the module easier to read | Duplicated blocks; clever expression chains; dead locals |
| Inline vs separate resources | 1 | Separate resources where the provider supports both forms | Inline blocks without justification; both styles for the same attributes |
| Outputs | 1 | The IDs, endpoints and names a consumer needs | Missing essentials; every attribute dumped |
Iteration (for_each vs count) | 1 | for_each for multiplicity; count only as an on/off switch | count used for lists of things |
| Data sources vs inputs | 1 | A dependency's identity is taken as an input; facts about it are looked up | Asking for facts that can disagree with the dependency (an ID and its CIDR) |
| File layout | 1 | Variables, outputs and resources each in their place; split by concern as the module grows | One file holding everything; a large main.tf mixing concerns |
| Lifecycle meta-arguments | 1 | prevent_destroy only where no native protection exists; ignore_changes only for values changed outside IaC | Lifecycle used instead of a native protection attribute; unconditional ignore_changes |
| Documentation | 1 | 2: accurate, and sized to the module. 1: accurate but too thin or so heavy it becomes noise. | 0: missing, or any statement wrong or out of date |
| Deprecated and escape-hatch patterns | 1 | No deprecated resource forms; no unexplained null_resource/local-exec | Legacy forms; shell escape hatches |
| Anti-patterns | 1 | None present | An input that lets a consumer silently violate the module's own security posture; an error hidden by deleting a resource; calling a remote module |
Doctrine sections scored by the rubric, not the judge
The judge reads these sections for context but does not grade them, so a defect never costs a module twice:
| Doctrine section | Rubric criteria |
|---|---|
| Insecure configurations | G001 H1, H3; G002 H1, H2, H7, H10; G003 H1–H4; G004 H1–H4, H9, H10; G005 H2–H5, H8, H12; G006 H1, H2, H6, H10 |
| Destructive defaults | G001 H14; G002 H3–H5, H11; G004 H11, H12; G005 H11; G006 H4 |
| Unstated assumptions | G001 A4; G002 A9; G004 A4; G005 A6 (G003 and G006 have no item) |
| Tagging | G001 H12; G002 H8; G003 H8; G004 H16; G005 A4; G006 A5 |
| Versions | B1 (all fixtures); G004 H17; G005 H14 |
| Provider declarations | B1; G001 H15; G002 H9; G004 H15; G005 A1 |


