# Generated by tools/hardened.py from ../t1. Edit t1 or the script; this file is regenerated. variable "tenancy_ocid" { description = "The tenancy. The connectors read its audit log, every compartment included, and the alarms live in its root." type = string validation { condition = startswith(var.tenancy_ocid, "ocid1.tenancy.") error_message = "Give the tenancy's OCID, which starts with ocid1.tenancy. A compartment's audit log would miss the rest of the tenancy." } } variable "region" { description = "The tenancy's home region, such as us-ashburn-1. IAM resources can only be made there, and the connectors read that region's audit log." type = string } variable "alert_emails" { description = "Addresses that receive the alarms. Prefer an on-call address over a person. Each must confirm its subscription before mail arrives." type = list(string) validation { condition = length(var.alert_emails) > 0 error_message = "Name at least one address, or the alarms have nowhere to go." } } variable "expected_principals" { description = "Principal names that change endpoints, API keys, models, or logging as part of their job, such as the deployment pipeline's user, exactly as the audit log shows them in data.identity.principalName. Their changes do not alarm. Every entry is a blind spot, so keep it short." type = list(string) default = [] validation { condition = alltrue([for p in var.expected_principals : length(regexall("[\"|*]", p)) == 0 && p != ""]) error_message = "A principal name cannot be empty or contain a double quote, a pipe, or an asterisk. Monitoring reads a pipe and an asterisk as patterns." } } variable "owner" { description = "Tag contract: accountable team." type = string default = "security-engineering" } variable "environment" { description = "Tag contract: environment." type = string default = "prod" } variable "extra_tags" { description = "Additional freeform tags merged over the contract." type = map(string) default = {} }