# workload-identity / gcp / t2 "Hardened" # Generated by tools/hardened.py from ../t1. Edit t1 or the script; this file is regenerated. # # Standard, unchanged, used as a module, so there is one copy of the logic. # What Hardened adds sits beside it: # policy/ rules checked against every plan; a plan that breaks one fails # guard.yml plan and policy on every pull request, and a daily drift check # .checkov.yml the security scan set to fail, each skipped check with its reason; # run it against ../t1, where the resources are: # checkov -d ../t1 --config-file .checkov.yml # # Keep ../t1 next to this folder. Put your settings in terraform.tfvars here. # # Check a plan against the rules yourself: # terraform plan -out plan.out && terraform show -json plan.out > plan.json # opa eval --fail-defined --format pretty -d policy -i plan.json 'data.iac.deny[msg]' # Nothing printed means every rule passed. module "standard" { source = "../t1" project_id = var.project_id repository = var.repository allowed_subjects = var.allowed_subjects roles = var.roles gke_namespace = var.gke_namespace gke_service_account = var.gke_service_account owner = var.owner environment = var.environment extra_labels = var.extra_labels }