# insider-data-theft / 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" org_id = var.org_id security_project = var.security_project alert_emails = var.alert_emails expected_principals = var.expected_principals sensitive_projects = var.sensitive_projects bulk_read_threshold = var.bulk_read_threshold retention_days = var.retention_days read_retention_days = var.read_retention_days owner = var.owner environment = var.environment extra_labels = var.extra_labels }