A technical reference to Infrastructure as Code with Terraform, grounded in the roadmap.sh curriculum and official cloud provider guidance. Covers HCL, provider internals, state locking and encryption, modular repository design, CI/CD with OIDC, native testing, policy-as-code, cost estimation, and progressive production projects.
1. Infrastructure as Code Fundamentals & Execution Model
Infrastructure as Code (IaC) replaces manual console clicks and ad-hoc shell scripts with versioned, machine-readable definitions. When infrastructure is expressed as code, every network rule, IAM policy, and compute cluster passes through peer review, static analysis, and automated testing before touching a live cloud account.
The central design split in IaC is declarative versus imperative execution. Imperative tools (such as raw AWS CLI scripts or procedural Ansible playbooks) require you to specify the exact sequence of API calls and handle idempotency, retries, and rollback yourself. Declarative tools like Terraform describe the desired end state; the engine inspects the current state, builds a Directed Acyclic Graph (DAG) of dependencies, and computes the minimal diff required to reconcile reality with configuration.
IaC also separates infrastructure provisioning from configuration management and image baking. Terraform excels at lifecycle orchestration of cloud control-plane resources (VPCs, Kubernetes clusters, managed databases, IAM roles). Inside immutable infrastructure workflows, Packer bakes OS and runtime dependencies into golden AMIs or container images, while Ansible handles post-boot host configuration only where mutable fleet management is unavoidable.
Terraform's core binary (terraform) is a graph-walking state engine written in Go. It does not contain cloud-specific API logic; instead, it spawns provider plugins as separate local processes and communicates over gRPC. This plugin boundary lets Terraform manage AWS, GCP, Azure, Kubernetes, Cloudflare, and internal HTTP APIs through a unified lifecycle.
| Tool | Paradigm | State Model | Primary Scope | When to Prefer |
|---|---|---|---|---|
| Terraform | Declarative (HCL) | Explicit state file (.tfstate) | Multi-cloud & SaaS control planes | Cross-cloud teams needing mature registry modules and strict plan/apply diffs |
| OpenTofu | Declarative (HCL, MPL-2.0) | Explicit state + native client-side encryption | Drop-in OSS Terraform alternative | Teams requiring open-source licensing, native state encryption, or early variable evaluation |
| AWS CloudFormation | Declarative (YAML/JSON) | AWS-managed stack state | AWS-native resources only | Single-cloud AWS shops wanting zero external state storage setup |
| Pulumi | Imperative-syntax / Declarative engine | Explicit state (Pulumi Cloud or self-hosted) | Multi-cloud using TS, Python, Go, C# | Application teams sharing runtime types/logic directly with infra code |
| Ansible | Procedural / Idempotent tasks | Stateless (queries target hosts) | OS configuration, packages, fleet orchestration | Configuring existing VMs, bare-metal servers, and network appliances |
Architectural comparison of IaC and configuration tools
2. Installation, CLI Architecture, and Environment Setup
Terraform ships as a single static binary, but production teams rarely rely on a single global version across every repository. Legacy modules pinned to Terraform 1.5 often coexist with newer stacks using 1.10+ features like S3 native locking and ephemeral values. Installing via package managers works for initial setup, while version managers such as tenv (supporting both Terraform and OpenTofu) or tfenv prevent version drift between developer laptops and CI runners.
Running terraform init downloads declared provider binaries into .terraform/providers/. To avoid redundant multi-hundred-megabyte downloads across repositories and CI jobs, configure a shared plugin cache directory via TF_PLUGIN_CACHE_DIR or the CLI configuration file (~/.terraformrc on Linux/macOS, %APPDATA%\terraform.rc on Windows).
Authentication should never rely on static, long-lived IAM access keys or downloaded service account JSON files on disk. On developer workstations, prefer short-lived session credentials (aws sso login, gcloud auth application-default login, or az login). In CI/CD pipelines, use OpenID Connect (OIDC) workload identity federation so runners exchange a signed job token for temporary cloud credentials.
# macOS (Homebrew)
brew tap hashicorp/tap && brew install hashicorp/tap/terraform
# Ubuntu / Debian (APT)
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install -y terraform
# Windows (PowerShell with Chocolatey or Scoop)
choco install terraform -y
# or: scoop install terraform
# Verify binary and enable local plugin cache
terraform -version
export TF_PLUGIN_CACHE_DIR="$HOME/.terraform.d/plugin-cache"3. HCL and Configuration Language Mechanics
HashiCorp Configuration Language (HCL) is structured around blocks (resource, data, variable, locals, output, terraform, provider, module), arguments (key = value), and expressions. Unlike pure JSON, HCL supports comments, type constraints, built-in pure functions, and dependency references that Terraform's graph builder parses statically before making any API call.
Distinguish carefully between variable, locals, and output. Input variable blocks form the public contract of a module and should always define explicit type constraints (object({...}), map(string), list(string)) and validation rules so malformed inputs fail during plan rather than mid-apply. locals compute internal derived values (naming prefixes, merged tag maps, CIDR splits) without exposing them as caller inputs.
Modern HCL includes three defensive validation layers: validation blocks inside variables (checked before the graph runs), precondition and postcondition blocks inside lifecycle (checked against real data sources or resource attributes), and standalone check blocks (Terraform 1.5+) that emit continuous health warnings without blocking apply. For iterative structures, prefer for expressions and dynamic blocks over copy-pasted resource definitions, but avoid deeply nested dynamic blocks that obscure the resulting infrastructure.
variable "vpc_config" {
type = object({
cidr_block = string
enable_nat_gateway = optional(bool, true)
ingress_ports = list(number)
})
validation {
condition = can(cidrhost(var.vpc_config.cidr_block, 0))
error_message = "cidr_block must be a valid IPv4 CIDR notation."
}
}
locals {
common_tags = {
ManagedBy = "terraform"
Component = "edge-network"
}
}
resource "aws_security_group" "app" {
name_prefix = "app-sg-"
vpc_id = aws_vpc.main.id
dynamic "ingress" {
for_each = toset(var.vpc_config.ingress_ports)
content {
from_port = ingress.value
to_port = ingress.value
protocol = "tcp"
cidr_blocks = [var.vpc_config.cidr_block]
}
}
tags = local.common_tags
}4. Providers, Dependency Lock Files, and Meta-Arguments
Every terraform configuration should pin provider versions using required_providers with pessimistic constraints (~> 5.0) and commit .terraform.lock.hcl to version control. The lock file records the exact provider version and cryptographic SHA256 hashes (h1: and zh:) of the downloaded binaries. Because terraform init only records hashes for the host OS/architecture where it runs, teams mixing macOS/Windows laptops and Linux CI runners should pre-populate multi-platform hashes with terraform providers lock -platform=linux_amd64 -platform=darwin_arm64 -platform=windows_amd64.
Terraform infers implicit dependencies whenever one resource references an attribute of another (subnet_id = aws_subnet.private.id). Use depends_on only for hidden dependencies that Terraform cannot observe in expressions—such as an application deployment requiring an IAM role policy attachment to propagate before starting.
When creating multiple instances of a resource, prefer for_each over count for anything beyond simple boolean toggles (count = var.enabled ? 1 : 0). count indexes instances by integer position; removing an element from the middle of a list shifts every subsequent index and forces Terraform to destroy and recreate unaffected resources. for_each keys instances by stable map keys or set strings.
Use lifecycle rules deliberately: create_before_destroy = true prevents downtime during immutable replacements (note that resources with fixed names cannot coexist, so pair it with name_prefix), prevent_destroy = true blocks accidental deletion of stateful databases or KMS keys, and replace_triggered_by forces replacement when an upstream dependency changes. For onboarding existing infrastructure without manual CLI state surgery, use declarative import blocks (Terraform 1.5+), and use moved blocks (Terraform 1.1+) when refactoring resource addresses or module paths.
terraform {
required_version = ">= 1.10.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.80"
}
}
}
provider "aws" {
region = "ap-southeast-1"
}
provider "aws" {
alias = "dr"
region = "ap-southeast-3"
}
import {
to = aws_s3_bucket.logs
id = "prod-central-audit-logs"
}
resource "aws_s3_bucket" "logs" {
bucket = "prod-central-audit-logs"
lifecycle {
prevent_destroy = true
}
}5. Terraform State Management, Locking, and Recovery
Terraform state (terraform.tfstate) is the persistent JSON mapping between HCL resource addresses (for example, module.network.aws_vpc.main) and real cloud object IDs (vpc-0a1b2c3d). State exists for three operational reasons: binding configuration to remote IDs, tracking metadata and dependencies for resources that must be destroyed in reverse order, and caching attributes to accelerate plans on large infrastructures.
Never keep state on a local laptop for shared or production systems. Local state cannot be locked across engineers, creates immediate split-brain divergence, and risks leaking plaintext secrets into Git if committed by mistake. Store state in a remote backend with versioning, encryption at rest, and atomic state locking. In Terraform 1.10+, the s3 backend supports native S3 conditional-write locking via use_lockfile = true, removing the legacy requirement to provision a separate DynamoDB lock table. GCS (gcs) and Azure Blob Storage (azurerm with use_azuread_auth = true) support locking natively.
Critical security warning: Marking an input variable or output as sensitive = true only redacts the value from terminal and CI log output. Terraform still writes the plaintext value into `terraform.tfstate`. Treat state files with the same access controls as production database credentials. In Terraform 1.10/1.11+, use ephemeral blocks and write-only resource arguments to pass short-lived tokens or passwords without persisting them to state. Alternatively, OpenTofu 1.7+ supports native client-side state and plan encryption using KMS or PBKDF2 passphrases before the file ever leaves the runner.
When state and reality diverge due to out-of-band console edits (state drift), inspect the delta safely with terraform plan -refresh-only before deciding whether to revert the manual change or accept it into state (terraform apply -refresh-only). If a CI runner crashes mid-apply and leaves a stale lock, verify that no pipeline process is actually running before executing terraform force-unlock <LOCK_ID>. To drop a resource from Terraform management without deleting the live cloud object, use terraform state rm <address> or a declarative removed block (Terraform 1.7+) with lifecycle { destroy = false }.
terraform {
backend "s3" {
bucket = "org-prod-tfstate"
key = "network/ap-southeast-1/terraform.tfstate"
region = "ap-southeast-1"
encrypt = true
use_lockfile = true
}
}
# Detach a legacy resource from state without destroying the live instance (Terraform 1.7+)
removed {
from = aws_instance.legacy_bastion
lifecycle {
destroy = false
}
}6. Modules, Environment Isolation, and Repository Architecture
A root module is the working directory where terraform init and apply execute; child modules are reusable packages invoked via module blocks. Well-designed modules encapsulate cohesive infrastructure capabilities (such as a VPC with subnets and flow logs, or an EKS cluster with OIDC and node groups) rather than wrapping a single resource with pass-through variables.
Choose environment isolation deliberately. Terraform Workspaces (terraform workspace new staging) share one backend configuration and one codebase across multiple state files. While convenient for ephemeral feature-branch previews, workspaces become risky for dev/staging/prod separation because all environments share identical provider blocks, IAM assumptions, and module versions—a single syntax error or unguarded change can impact production.
Production platforms favor directory-per-environment root modules or Terragrunt Stacks (terragrunt.stack.hcl). Directory isolation gives each environment its own backend key, explicit provider role assumption, and independent module version pinning (?ref=v2.4.0), so staging can test a module upgrade before production adopts it. Terragrunt builds on this pattern by keeping backend and provider generation DRY while orchestrating DAG dependencies across isolated state units.
infra-live/
├── modules/ # Versioned or local reusable building blocks
│ ├── network-vpc/
│ │ ├── main.tf
│ │ ├── variables.tf
│ │ ├── outputs.tf
│ │ ├── tests/vpc.tftest.hcl
│ │ └── README.md
│ └── eks-cluster/
└── environments/ # Isolated root modules (separate state + IAM roles)
├── dev/
│ ├── network/ (backend.tf, main.tf, terraform.tfvars)
│ └── compute/ (backend.tf, main.tf, terraform.tfvars)
├── staging/
│ ├── network/
│ └── compute/
└── prod/
├── network/
└── compute/7. Core CLI Workflows and Safe Operational Practices
The standard execution lifecycle follows four deterministic stages: terraform fmt -check -recursive (canonical formatting), terraform validate (syntax and internal type consistency without remote API calls), terraform plan -out=tfplan (computing the execution graph against live state and saving a binary plan), and terraform apply tfplan (executing the exact approved plan).
Always pass a saved binary plan file (tfplan) to apply in automated pipelines. Running terraform apply without a saved plan re-evaluates the infrastructure at apply time, meaning changes merged or drifted between review and execution could be applied uninspected.
Avoid -target=resource in routine workflows. Targeted applies bypass parts of the dependency graph and leave state partially reconciled; reserve -target strictly for emergency incident recovery or breaking circular dependencies. Similarly, replace the legacy terraform taint command with terraform apply -replace="aws_instance.worker" so the forced replacement is previewed inside a plan before execution.
8. Team Collaboration, Cross-Stack Data, and HCP Terraform
When infrastructure is split into small, blast-radius-bounded states (for example, network and compute), downstream stacks need values such as vpc_id or private_subnet_ids. While terraform_remote_state can read outputs directly from another state bucket, it couples IAM permissions: the compute pipeline must be granted read access to the entire network state file, including any sensitive attributes stored inside it. A cleaner pattern writes non-sensitive integration endpoints to AWS SSM Parameter Store, GCP Secret Manager / Config, or Consul, decoupling state permissions from consumer stacks.
Teams often confuse what the free Terraform CLI provides versus HCP Terraform (formerly Terraform Cloud) and Terraform Enterprise (self-hosted). The CLI handles graph evaluation, state locking against object storage, and local execution. HCP Terraform and Enterprise add managed remote execution runners, PR-triggered speculative plans, role-based access control (RBAC), audit trails, private module registries, continuous drift detection, Run Tasks (webhook integrations for Snyk/Infracost), and Sentinel policy enforcement—most of which are paid or tier-gated features beyond the free tier.
9. CI/CD Pipelines and Production Safeguards
A production IaC pipeline enforces PR-to-Plan, Merge-to-Apply separation. Pull requests run formatting, validation, static security scanning, cost diffing, and terraform plan using a read-only OIDC role, posting the plan summary back to the PR for human review. Merging to main triggers terraform apply using a write-scoped OIDC role gated by a manual environment approval rule.
The same pattern translates cleanly across CI platforms: GitHub Actions uses id-token: write with aws-actions/configure-aws-credentials; GitLab CI/CD uses id_tokens with aud claims and protected environments (when: manual); Jenkins uses OIDC workload identity or cloud agent IAM instance profiles with input approval stages. Never print raw tfplan JSON containing secrets to public CI logs, and always set concurrency groups per environment so two merges never race.
name: Terraform Production Pipeline
on:
pull_request:
paths: ["environments/prod/**"]
push:
branches: ["main"]
paths: ["environments/prod/**"]
permissions:
id-token: write
contents: read
pull-requests: write
concurrency:
group: terraform-prod
cancel-in-progress: false
jobs:
plan-and-scan:
runs-on: ubuntu-latest
working-directory: environments/prod/network
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.10.5"
- uses: aquasecurity/trivy-action@master
with:
scan-type: "config"
scan-ref: "."
exit-code: "1"
severity: "CRITICAL,HIGH"
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::123456789012:role/tf-prod-plan-readonly
aws-region: ap-southeast-1
- run: terraform fmt -check -recursive
- run: terraform init
- run: terraform validate
- run: terraform plan -no-color -out=tfplan
apply:
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
needs: plan-and-scan
runs-on: ubuntu-latest
environment: production
working-directory: environments/prod/network
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.10.5"
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::123456789012:role/tf-prod-apply-admin
aws-region: ap-southeast-1
- run: terraform init
- run: terraform apply -auto-approve10. Testing Pyramid and Static Code Quality
No single tool validates everything in Terraform. A production quality gate layers fast static checks before slow cloud-API integration tests. TFLint catches provider-specific mistakes (invalid AWS instance types, deprecated syntax, missing required tags) that terraform validate ignores because validate only checks generic schema types.
Static security scanners—Trivy (trivy config .), Checkov, and Terrascan—evaluate HCL and compiled JSON plans (terraform show -json tfplan) against CIS benchmarks and misconfiguration rules (unencrypted S3 buckets, 0.0.0.0/0 SSH ingress, public RDS instances). Scanning the compiled JSON plan catches issues introduced by dynamic expressions and module defaults that raw HCL scanning can miss.
For behavioral verification, Terraform Native Tests (.tftest.hcl, introduced in Terraform 1.6 and expanded with mock_provider in 1.7) allow both fast unit tests (command = plan with mock_provider and override_resource, incurring zero cloud cost) and real ephemeral integration tests (command = apply against a sandbox account, followed by automatic teardown).
| Validation Layer | What It Proves | What It Cannot Prove |
|---|---|---|
terraform fmt / validate | Canonical formatting, HCL syntax, internal variable/output types | Cloud quota limits, valid AMI IDs, IAM permissions, security posture |
tflint | Provider-aware attribute validity, deprecated args, naming rules | Cross-account runtime conflicts or live network reachability |
trivy config / checkov | Static compliance against CIS/cloud security benchmarks | Business logic correctness or runtime IAM privilege escalation chains |
terraform test (mock_provider) | Module conditionals, tag logic, resource counts without cloud spend | Real cloud API rejections, provider bugs, or actual resource provisioning |
terraform test (command = apply) | End-to-end provisioning, cloud API acceptance, destroy cleanliness | Long-term production load behavior or multi-month state upgrades |
mock_provider "aws" {
override_resource {
target = aws_vpc.main
values = {
id = "vpc-mock12345"
}
}
}
run "verify_prod_vpc_tags" {
command = plan
variables {
environment = "prod"
cidr_block = "10.20.0.0/16"
}
assert {
condition = aws_vpc.main.tags["Environment"] == "prod"
error_message = "Production VPC must carry Environment=prod tag."
}
}11. Security, Supply Chain, and Policy-as-Code
Terraform pipelines hold extraordinary privilege: an attacker who compromises a CI apply role or a state bucket often gains administrative control over the entire cloud account. Defense-in-depth starts with split IAM roles (read-only for PR plans, scoped write for main applies), OIDC short-lived tokens, and network-hardened state storage (private endpoints, bucket versioning, KMS CMK encryption, public access blocked).
Supply-chain risk enters through third-party providers and public registry modules. Pin module sources to immutable Git commit SHAs or exact semantic tags (?ref=v5.1.2), review module diffs before upgrading, and verify provider checksums via .terraform.lock.hcl. Never reference unpinned main branches in production modules.
For organizational governance, Policy-as-Code enforces guardrails against the compiled tfplan.json before apply. Open Policy Agent (OPA) via conftest or trivy custom Rego policies runs open-source and vendor-neutrally in any CI pipeline. HashiCorp Sentinel provides tightly integrated policy checks inside paid HCP Terraform and Terraform Enterprise tiers.
package terraform.security
deny[msg] {
resource := input.resource_changes[_]
resource.type == "aws_s3_bucket_server_side_encryption_configuration"
rule := resource.change.after.rule[_]
not rule.apply_server_side_encryption_by_default[_].sse_algorithm
msg := sprintf("S3 encryption missing on %s", [resource.address])
}12. Advanced Internals: DAG Parallelism, Blast Radius, and Drift
Terraform walks its resource DAG concurrently using a default worker pool of 10 (-parallelism=10). Increasing parallelism speeds up large plans, but setting it too high triggers cloud API rate limits (429 TooManyRequests) or overwhelms small self-hosted APIs. The real scalability lever is state boundaries: keeping each root state under roughly 100–250 resources so plans complete in seconds and a bad apply cannot lock or corrupt unrelated workloads.
Split state along rate-of-change and ownership boundaries: foundational networking and IAM in a slow-moving base layer, shared databases and clusters in a platform layer, and application-specific queues or DNS records in service-owned layers.
At scale, drift detection should run on a scheduled non-mutating cron job (terraform plan -detailed-exitcode). Exit code 0 means no drift, 1 indicates an error, and 2 signals out-of-band drift that triggers an alert to the owning platform team rather than blindly auto-applying.
13. Cost Estimation, Reliability, and Disaster Recovery
Infrastructure changes carry direct financial consequences. Infracost parses HCL or tfplan.json in CI (infracost-ci diff) and posts the exact monthly cost delta onto pull requests before merge. For usage-based services (Lambda invocations, NAT Gateway data processing, S3 storage), pair it with infracost-usage.yml so teams catch accidental NAT Gateway or oversized RDS changes during code review.
For Disaster Recovery (DR), distinguish between state recovery and infrastructure recovery. Enabling object versioning and cross-region replication on your remote state bucket protects against accidental state deletion (low RPO for state metadata). Infrastructure recovery relies on keeping modules parameterized by region, avoiding hardcoded region-specific AMI IDs (look them up dynamically via data "aws_ami"), and regularly testing cold-start provisioning in a secondary region to verify your actual RTO.
14. Progressive Production Projects & Verification Checklist
To internalize these mechanics without incurring unnecessary cloud bills, work through a progressive 10-stage build sequence. Start with local/free-tier resources (local_file, docker_container, or AWS Free Tier VPC/S3), then layer remote state, modularity, CI/CD, security gates, and FinOps:
1. Bootstrap & CLI Hygiene: Install Terraform via tenv, configure TF_PLUGIN_CACHE_DIR, and lock multi-platform hashes with terraform providers lock.
2. VPC & Subnets: Build a multi-AZ VPC using for_each over subnet CIDR maps and cidrsubnet().
3. Remote State & Locking: Provision a versioned S3/GCS/Azure state bucket with use_lockfile = true (or native GCS/Blob locks).
4. Reusable Module: Extract the VPC into modules/network-vpc with typed object(...) variables and validation blocks.
5. Environment Isolation: Separate dev and prod directories with distinct backend keys and pinned module tags.
6. Declarative Import: Create a bucket manually, then adopt it cleanly using an import block.
7. Native Unit Tests: Write tests/vpc.tftest.hcl using mock_provider and run terraform test.
8. OIDC GitHub Actions: Wire PR plan (read-only OIDC) and gated apply on main.
9. Security & Policy Gate: Add tflint, trivy config, and an OPA Rego check against tfplan.json.
10. FinOps & DR: Add infracost-ci to PRs and enable cross-region replication on the state bucket. Always run terraform destroy on sandbox labs immediately after verification.
Verification Criteria:
.terraform.lock.hclis committed with hashes for both developer and CI platforms.- Remote state backend has versioning, encryption at rest, and atomic locking enabled.
- Zero static cloud access keys exist in
.tf,.tfvars, or CI environment variables (OIDC/Managed Identity only). - No secrets are persisted in plaintext state (mitigated via
ephemeralblocks or OpenTofu state encryption). - All PRs run
fmt,validate,tflint,trivy config, andinfracostbefore human approval.
15. References & Further Reading
1. roadmap.sh Terraform Roadmap — Primary curriculum structure and dependency map: roadmap.sh/terraform
2. HashiCorp Terraform Documentation — Official CLI, Language (HCL), State Locking, S3 use_lockfile, Ephemeral Values, and Native Testing (terraform test): developer.hashicorp.com/terraform/docs
3. AWS Prescriptive Guidance — Best practices for AWS Terraform Provider & IAM OIDC run-phase separation: docs.aws.amazon.com/prescriptive-guidance
4. Google Cloud Terraform Best Practices — Module organization, GCS remote state, and Workload Identity Federation: cloud.google.com/docs/terraform/best-practices-for-terraform
5. Microsoft Azure Terraform Documentation — azurerm backend with Microsoft Entra ID & Managed Identity: learn.microsoft.com/en-us/azure/developer/terraform
6. OpenTofu Documentation — Client-side state encryption and early variable evaluation: opentofu.org/docs
7. Terragrunt Documentation — Units, Stacks (terragrunt.stack.hcl), and DRY multi-environment orchestration: terragrunt.gruntwork.io/docs
8. Aqua Security Trivy & Infracost — IaC misconfiguration scanning and PR cost estimation: trivy.dev | infracost.io/docs
Related Articles
/dragos-canary-tokens-ai-inference-supply-chain
Dragos Canary Tokens Expose Compromised AI Inference Providers: What AI Router Customers Should Do Now
A five-month Dragos investigation led by HD Moore seeded two million prompts with canary tokens across AI routers and marketplaces, uncovering three silently breached inference providers, reseller logging, and bypassed Zero Data Retention (ZDR) guarantees.
/cve-2026-123890-vmware-vcenter-auth-bypass-zero-day
CVE-2026-123890 (CVSS 9.8): VMware vCenter Zero-Day Auth Bypass Exploited by ARMORY CASTLE
Technical breakdown of CVE-2026-123890 (VMSA-2026-0009), a critical CVSS 9.8 authentication bypass in VMware Directory Service (vmdir) actively exploited as a zero-day since September 2026 and added to the CISA KEV catalog.