Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/aws/poc/dsf_deployment/cm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module "ciphertrust_manager" {
allowed_web_console_and_api_cidrs = var.web_console_cidr
allowed_ssh_cidrs = concat(local.workstation_cidr, var.allowed_ssh_cidrs)
allowed_cluster_nodes_cidrs = [data.aws_subnet.ciphertrust_manager.cidr_block]
allowed_cte_agents_cidrs = [data.aws_subnet.cte_ddc_agent.cidr_block]
allowed_ddc_agents_cidrs = [data.aws_subnet.cte_ddc_agent.cidr_block]
allowed_all_cidrs = local.workstation_cidr
tags = local.tags
Expand Down
7 changes: 7 additions & 0 deletions modules/aws/ciphertrust-manager/sg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ locals {
tcp = [5432]
cidrs = concat(var.allowed_cluster_nodes_cidrs, var.allowed_all_cidrs)
},
{
name = ["cte", "agents"]
internet_access = false
udp = []
tcp = [443]
cidrs = concat(var.allowed_cte_agents_cidrs, var.allowed_all_cidrs)
},
{
name = ["ddc", "agents"]
internet_access = false
Expand Down
10 changes: 10 additions & 0 deletions modules/aws/ciphertrust-manager/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ variable "allowed_cluster_nodes_cidrs" {
default = []
}

variable "allowed_cte_agents_cidrs" {
type = list(string)
description = "List of ingress CIDR patterns allowing CTE agents to access the CipherTrust Manager instance"
validation {
condition = alltrue([for item in var.allowed_cte_agents_cidrs : can(cidrnetmask(item))])
error_message = "Each item of this list must be in a valid CIDR block format. For example: [\"10.106.108.0/25\"]"
}
default = []
}

variable "allowed_ddc_agents_cidrs" {
type = list(string)
description = "List of ingress CIDR patterns allowing DDC agents to access the CipherTrust Manager instance"
Expand Down
Loading