# Generated by tools/hardened.py from ../t1. Edit t1 or the script; this file is regenerated. variable "okta_org_name" { description = "The Okta org's subdomain, such as acme for acme.okta.com. It also names the event source in AWS." type = string validation { condition = can(regex("^[a-z0-9-]+$", var.okta_org_name)) error_message = "Give the subdomain only, such as acme, with no dots or scheme." } } variable "okta_base_url" { description = "The domain after the subdomain: okta.com, oktapreview.com, okta-emea.com, or okta-gov.com." type = string default = "okta.com" } variable "aws_region" { description = "Region that receives the events. Okta streams to 17 regions, listed in the validation below." type = string validation { condition = contains([ "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "eu-central-1", "eu-north-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "us-east-1", "us-east-2", "us-west-1", "us-west-2", ], var.aws_region) error_message = "Okta's EventBridge log stream does not deliver to that region." } } variable "stream_name" { description = "Name of the event source in EventBridge. It cannot change after creation; a new name replaces the stream and the bus." type = string default = "okta_system_log" # The Okta provider refuses hyphens here, though Okta's own API allows them. validation { condition = can(regex("^[A-Za-z0-9_.]{1,75}$", var.stream_name)) error_message = "Use up to 75 letters, digits, dots, or underscores, with no spaces or hyphens." } } variable "alert_emails" { description = "Addresses subscribed to the alert topic. 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 alerts have nowhere to go." } } variable "expected_actors" { description = "Okta actors that change roles, policies, and log streams as part of their job, such as the Terraform pipeline. Give each as the System Log's alternateId: a login, or an API service app's client ID. Their changes do not alert, and the log group still records them. Every entry is a blind spot." type = list(string) default = [] validation { condition = length(var.expected_actors) <= 10 error_message = "List at most 10. Each one widens what goes unseen." } } variable "log_retention_days" { description = "How long every Okta event is kept in CloudWatch Logs." type = number default = 400 validation { condition = contains([90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, 3653], var.log_retention_days) error_message = "Use a retention CloudWatch Logs accepts, 90 days or more." } } variable "silence_minutes" { description = "Minutes with no Okta events before the silence alarm fires. Okta records every sign-in, so a busy org can use less; a small one may need more." type = number default = 60 validation { condition = contains([15, 30, 60, 120, 180, 360], var.silence_minutes) error_message = "Use 15, 30, 60, 120, 180, or 360." } } 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 = {} }