New: LLM Rankings are live!

See how the top LLMs rank on real infrastructure tasks
Engineering
iac-bench 2026-11 Scoring Criteria

iac-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.

Chris Hill36 min
Share

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.

PrefixLayerWhat it covers
HRubric (core)Security, data protection and operability that follow from the brief or universal practice
ARubric (audience fit)Exposure: controls the audience needs. Restraint: settings it should not be handed. Budget: interface size.
BRubric (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)
EExpertiseService-specific practices an expert adds without being asked; weight 1 each
Section nameJudgeOne of 14 doctrine sections, graded 0, 1 or 2

Kind describes what an item treats as correct:

KindPasses when
HardcodedEvery 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 defaultThe 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.
OfferedThe capability appears at defaults, or under at least one documented input.
GradedCredit for the best of several working mechanisms.
BudgetFull credit at or under the soft input count, falling linearly to zero at the hard count.
DirectA 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.

IDWeightKindWhat passesFull credit (attempts that planned)
H1 (mandatory)18hardcodedPrivacy 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)14hardcodedEncryption 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
H66offeredLifecycle cost management volunteered: transition and/or expiration rules appear at defaults or under some documented input.56/72
H74offeredNoncurrent-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
H85offeredVersioning offered: enabled at defaults or under some input.72/72
H94offeredServer access logging offered: the mechanism (direct toggle or inferred from a generalized setting) is a design choice and not scored.40/72
A12DirectExposure: 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
A22DirectRestraint: 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
A31DirectRestraint: no input controls object ownership or ACLs.66/72
A42DirectRestraint: 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
A58budgetInterface 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
H122gradedConsumers 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
H154DirectExplicit 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
H134DirectAccess 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
H143Directforce_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_constraints5Directrequired_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_descriptions2DirectEvery variable and output carries a description.72/72
B3_plans_required_only5DirectThe 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_access10DirectThe 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 itemWhat it detectsPresent
E1 ownership controlsBucketOwnerEnforced ownership controls (ACLs disabled).72/72
E2 multipart cleanupAborts incomplete multipart uploads (storage garbage collection).68/72
E4 tls enforcementBucket policy denies non-TLS (aws:SecureTransport) access.68/72
E5 regional domain outputOutputs bucket_regional_domain_name for downstream wiring.71/72
E6 intelligent tieringUses or offers Intelligent-Tiering storage class awareness.24/72
E7 name uniquenessBucket 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 policiesShips 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.

IDWeightKindWhat passesFull credit (attempts that planned)
H1 (mandatory)14hardcodedNo 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)10hardcodedEncrypted 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
H36on by defaultDeletion 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
H46on by defaultAutomated 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
H54on by defaultPoint-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
H64offeredHigh availability is offered: a regional (failover) instance appears at defaults or under some documented input.70/71
H74DirectNo 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
H82DirectConsumers 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
H94gradedExplicit 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
H104DirectNo 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
H114gradedRemoving 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
A12DirectExposure: machine tier (sizing) is a DBA decision.71/71
A22DirectExposure: the PostgreSQL major version is a DBA decision.70/71
A32DirectExposure: engine flags (database_flags) can be set per instance.67/71
A42DirectExposure: the maintenance window (day and/or hour) is controllable.64/71
A52DirectExposure: the backup schedule or retention (start time, retained backups, or transaction-log retention) is controllable.66/71
A61DirectExposure: storage sizing (disk size or autoresize limit) is controllable.70/71
A72DirectExposure: 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
A88budgetInterface 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
A92DirectRestraint: 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_constraints5Directrequired_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_descriptions2DirectEvery variable and output carries a description.69/71
B3_plans_required_only5DirectThe 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_access10DirectThe 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 itemWhat it detectsPresent
E1 backups survive deletionAutomated 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 keyA 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 loginIAM 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 databasesThe DBAs can declare the instance's databases through an input. Managing databases is a core DBA responsibility.67/71
E5 manages usersThe 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 grantedThe 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 identitiesWorkload 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 trailConnections 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 insightsQuery 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.

IDWeightKindWhat passesFull credit (attempts that planned)
H1 (mandatory)10hardcodedHTTPS 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)8hardcodedBasic-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
H36DirectTransport 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
H44hardcodedA managed identity is attached unconditionally, so the app can reach other Azure services without stored credentials.69/72
H54offeredHealth 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
H64offeredObservability is offered: diagnostic settings or Application Insights appear at defaults or under some documented input.72/72
H73offeredRedundancy 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
H94offeredRollouts 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
H82DirectTagging support is table stakes: consumers can add their own tags to the web app through an optional input.69/72
A12DirectExposure: the plan size (SKU) is an SRE capacity decision.72/72
A22DirectExposure: instance count or autoscale bounds are controllable.72/72
A32DirectExposure: the health-check path is set per service.72/72
A42DirectExposure: which container image runs is set per service.71/72
A52DirectExposure: application settings (environment) can be supplied.72/72
A62DirectRestraint: 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
A78budgetInterface 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_constraints5Directrequired_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_descriptions2DirectEvery variable and output carries a description.66/72
B3_plans_required_only5DirectThe 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_access10DirectThe 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 itemWhat it detectsPresent
E1 autoscale rulesCapacity follows load: an autoscale setting scales the plan between bounds instead of a fixed instance count.66/72
E2 container portThe 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 alertsMetric 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 identityImages 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 referencesSecrets 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.

IDWeightKindWhat passesFull credit (attempts that planned)
H1 (mandatory)10hardcodedStorage 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)10hardcodedNo 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)8hardcodedEncrypted 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)8hardcodedNo 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
H514DirectAn 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
H66DirectThe 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
H74DirectAt least three instances at defaults across the two regions, so a region holds a writer and a reader in different availability zones.68/72
H86DirectEvery 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
H96gradedThe 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
H104DirectIAM 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
H116on by defaultDeletion 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
H124gradedDestroying 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
H134DirectEvery cluster keeps at least seven days of automated backups at defaults. The provider's default is one day.55/72
H144DirectEvery 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
H154DirectThe 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
H176DirectThe 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
H162DirectConsumers can add their own tags through an optional input, via the provider's default_tags or the clusters' tags.66/72
A12DirectExposure: the instance class (sizing) is set per service.69/72
A22DirectExposure: 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
A32DirectExposure: 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
A42DirectRestraint: 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
A58budgetInterface 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
A62DirectExposure: the engine version is set per database, so a service can choose its PostgreSQL version and upgrade it through the module.72/72
A72DirectExposure: the number of instances is set per database, so a service sizes its readers to its load.57/72
A82DirectExposure: automated backup retention is set per database, since the retention a service's data requires varies by service.53/72
B1_provider_constraints5Directrequired_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_descriptions2DirectEvery variable and output carries a description.57/72
B3_plans_required_only5DirectThe 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_access10DirectThe 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 failureWhat failsAttempts
F1 secrets manager on global memberA 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 keyThe 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 itemWhat it detectsPresent
E1 pgauditpgaudit 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 loggingConnections and disconnections are logged (log_connections and log_disconnections), so every session is recorded.43/72
E3 performance insightsPerformance Insights or Database Insights is on, giving per-query load and wait analysis without the team running its own tooling.69/72
E4 enhanced monitoringEnhanced monitoring is on (a monitoring interval above zero), giving OS-level metrics at second-level granularity.52/72
E5 snapshot tagsSnapshots carry the cluster's tags (copy_tags_to_snapshot), so cost and ownership tags survive into backups.68/72
E6 global writer endpointAn output exposes the global writer endpoint, which follows the primary through a failover, so services need no endpoint change.56/72
E8 engine version lookupThe 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 globalMember 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.

IDWeightKindWhat passesFull credit (attempts that planned)
H1 (mandatory)12DirectThe 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)10hardcodedNodes 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
H38DirectThe 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)12DirectWorkload 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)10DirectNodes 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
H64DirectNode 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
H73DirectA 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
H84DirectNodes boot verified: every node pool enables secure boot, and no cluster turns shielded nodes off.70/72
H93DirectKubernetes 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
H106DirectKubernetes 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
H114on by defaultDeletion 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
H122hardcodedNo 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
H134DirectNode capacity scales with demand: every node pool autoscales at defaults. Several teams' workloads come and go on a shared cluster.72/72
H146DirectThe 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
H156DirectPods 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
H164DirectEvery 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
A12DirectExposure: 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
A22DirectExposure: 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
A32DirectExposure: node machine types are chosen per cluster: an input feeds the node pools' machine_type.72/72
A41DirectConsumers can add their own labels, reaching the cluster through its resource_labels or the provider's default_labels.54/72
A58budgetInterface 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
A62DirectRestraint: 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
A72DirectExposure: node pool autoscaling limits are set per cluster: inputs feed both the minimum and the maximum node count.68/72
B1_provider_constraints5Directrequired_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_descriptions2DirectEvery variable and output carries a description.65/72
B3_plans_required_only5DirectThe 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_access10DirectThe 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 failureWhat failsAttempts
F1 no default pool below 1 36The 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 itemWhat it detectsPresent
E1 release channelThe 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 rbacGoogle 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 scanningGKE security posture scans workloads for vulnerabilities (security_posture_config vulnerability_mode set explicitly).37/72
E4 cost allocationGKE cost allocation is on, so a cluster shared by several teams bills back by namespace and label.33/72
E5 surge upgradesNode 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 logsControl-plane API server logs go to Cloud Logging (logging_config enable_components includes APISERVER).13/72
E7 managed prometheusGoogle Cloud Managed Service for Prometheus is enabled, giving product teams metrics without running their own Prometheus.59/72
E8 dns endpointThe 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 roleThe 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 inputThe 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.

IDWeightKindWhat passesFull credit (attempts that planned)
H1 (mandatory)14hardcodedNo 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)14hardcodedAccess 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
H36DirectApplications 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
H46DirectDeleted 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
H54offeredBlob versioning offered: enabled at defaults or under some input, so an overwritten file can be restored.64/72
H64hardcodedTransport stays encrypted: no input can lower the minimum TLS version below 1.2 or allow plain HTTP, and every plan keeps both.65/72
H74offeredBlob 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
H84offeredRedundancy 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
H94offeredLifecycle cost management offered: a management policy tiers or expires blobs, at defaults or under some input. Generated reports and exports pile up.44/72
H102hardcodedData cannot be replicated out to another tenant: cross-tenant replication is never on, and no input can turn it on.63/72
A12DirectExposure: 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
A22DirectRestraint: no encryption key demanded. Microsoft-managed keys or an optional customer-managed key both pass; a required key input fails.72/72
A31DirectRestraint: no input for the account's kind or performance tier. Those are Azure Storage internals this audience should not be asked about.64/72
A48budgetInterface 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
A51DirectConsumers can add their own tags through an optional input that reaches the account.65/72
A62DirectExposure: the application's containers are an input, so each app gets the containers it stores its files in.63/72
B1_provider_constraints5Directrequired_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_descriptions2DirectEvery variable and output carries a description.72/72
B3_plans_required_only5DirectThe 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_access10DirectThe 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 itemWhat it detectsPresent
E1 infrastructure encryptionInfrastructure encryption is on (a second layer of encryption at rest). It can only be set when the account is created.44/72
E2 oauth defaultThe 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 documentedWith 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 uniquenessThe 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 restorePoint-in-time restore or the change feed is on, so a container can be rolled back after bulk corruption.16/72
E6 delete lockA CanNotDelete management lock protects the account, at defaults or under some input.15/72
E7 location from resource groupThe 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 offLocal 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.

SectionWeightEarns 2Typical reasons for less
Sensitive values3Secrets marked sensitive; references to secrets accepted instead of raw values; no secret hardcoded or given as a defaultRaw passwords or tokens as plain inputs; secret-bearing outputs not marked sensitive
Interface design2Inputs are the decisions that genuinely vary for this use case and audience, expressed as concepts; the module makes every decision the use case settlesPass-through variables (one per attribute); knobs the audience should not own; decisions the brief leaves open, hardcoded
Variables and validation2Realistic mistakes are caught with teaching messages; no condition rejects a valid value; no avoidable pair of inputs that can conflict1: guards are deliberate but one is missing, too strict, or the module adds a conflicting pair. 0: essentially no validation.
Scope2The resources a competent operator considers part of the job (access posture, encryption, cost and data hygiene), in proportionMissing hygiene or access pieces; architecture the brief never implied
Internal logic1Locals derive values from concept inputs and make the module easier to readDuplicated blocks; clever expression chains; dead locals
Inline vs separate resources1Separate resources where the provider supports both formsInline blocks without justification; both styles for the same attributes
Outputs1The IDs, endpoints and names a consumer needsMissing essentials; every attribute dumped
Iteration (for_each vs count)1for_each for multiplicity; count only as an on/off switchcount used for lists of things
Data sources vs inputs1A dependency's identity is taken as an input; facts about it are looked upAsking for facts that can disagree with the dependency (an ID and its CIDR)
File layout1Variables, outputs and resources each in their place; split by concern as the module growsOne file holding everything; a large main.tf mixing concerns
Lifecycle meta-arguments1prevent_destroy only where no native protection exists; ignore_changes only for values changed outside IaCLifecycle used instead of a native protection attribute; unconditional ignore_changes
Documentation12: 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 patterns1No deprecated resource forms; no unexplained null_resource/local-execLegacy forms; shell escape hatches
Anti-patterns1None presentAn 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 sectionRubric criteria
Insecure configurationsG001 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 defaultsG001 H14; G002 H3–H5, H11; G004 H11, H12; G005 H11; G006 H4
Unstated assumptionsG001 A4; G002 A9; G004 A4; G005 A6 (G003 and G006 have no item)
TaggingG001 H12; G002 H8; G003 H8; G004 H16; G005 A4; G006 A5
VersionsB1 (all fixtures); G004 H17; G005 H14
Provider declarationsB1; G001 H15; G002 H9; G004 H15; G005 A1

Stay in the loop