# 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 } variable "region" { description = "Home region identifier, such as us-ashburn-1." type = string } variable "alert_emails" { description = "Addresses that receive the alarms. Prefer an on-call address over a person." 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 policies, buckets, and 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 and their bulk reads 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 "sensitive_buckets" { description = "Buckets whose reads are recorded request by request, so bulk downloads can be seen, each with its compartment. Leave empty to skip." type = list(object({ compartment_ocid = string bucket_name = string })) default = [] } variable "bulk_read_threshold" { description = "Objects one principal may read in five minutes, across the sensitive buckets, before the alarm fires. Set it from a week of normal use; the default is a starting point." type = number default = 500 validation { condition = var.bulk_read_threshold >= 1 error_message = "The threshold must be at least 1." } } variable "read_retention_days" { description = "How long the object read records are kept: 30 to 180 days, in steps of 30. They are the largest volume here. The audit log itself is kept 365 days by Oracle and cannot be changed." type = number default = 90 validation { condition = contains([30, 60, 90, 120, 150, 180], var.read_retention_days) error_message = "Oracle allows 30, 60, 90, 120, 150, or 180 days." } } 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 = {} }