# Generated by tools/hardened.py from ../t1. Edit t1 or the script; this file is regenerated. variable "subscription_id" { description = "Subscription for the vault and its monitoring." type = string } variable "name" { description = "Base name for the vault and resource group. Vault names are global, so a random suffix is added." type = string default = "secrets" } variable "location" { description = "Region for everything here." type = string default = "eastus" } variable "allowed_ip_ranges" { description = "Public address ranges that may reach the vault, such as the office and the build agents. Everything else is refused, except Azure services acting for you." type = list(string) default = [] } variable "readers" { description = "Identities that may read secrets, by a name of your choosing, as Entra object IDs. They get Key Vault Secrets User and nothing else." type = map(string) default = {} } variable "officers" { description = "Identities that may create and change secrets, as Entra object IDs. The person running apply is not added automatically." type = map(string) default = {} } variable "encryption_key" { description = "Also create an encryption key that rotates itself every 90 days, for services that use a customer-managed key." type = bool default = true } variable "alert_emails" { description = "Addresses told about refused access and changes." type = list(string) validation { condition = length(distinct([for e in var.alert_emails : lower(e)])) == length(var.alert_emails) error_message = "Name each address once." } } variable "log_retention_days" { description = "How long every read and change is kept." type = number default = 730 } 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 tags merged over the contract." type = map(string) default = {} }