Skip to content

Commit 8836023

Browse files
authored
Move port 80 on controlplane to its own security group (#100)
* Remove port 80 from control_plane_ports * Create new security group to facilitate certbot responding to http-01 challenge * Rename sg to make it clearer it relates to controlplane
1 parent 35d91d2 commit 8836023

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

security_groups.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,17 @@ resources:
173173
port_range_min: <%port%>
174174
port_range_max: <%port%>
175175

176+
controlplane_certbot_secgroup:
177+
type: OS::Neutron::SecurityGroup
178+
properties:
179+
name: controlplane_certbot_sg
180+
rules:
181+
- direction: ingress
182+
protocol: tcp
183+
remote_ip_prefix: 0.0.0.0/0
184+
port_range_min: 80
185+
port_range_max: 80
186+
176187
proxy_controlplane_secgroup:
177188
type: OS::Neutron::SecurityGroup
178189
properties:
@@ -529,7 +540,6 @@ outputs:
529540
vrrp_nodes_security_group:
530541
description: VRRP access between tenant and net2 nodes
531542
value: { get_resource: vrrp_nodes_secgroup }
532-
533543
bastion_external_security_group:
534544
description: Bastion external security group
535545
value: { get_resource: bastion_external_secgroup }
@@ -587,3 +597,6 @@ outputs:
587597
proxy_security_group:
588598
description: Net2 LB VRRP security group
589599
value: { get_resource: proxy_controlplane_secgroup }
600+
controlplane_certbot_security_group:
601+
description: Security group allowing http-01 challenge
602+
value: { get_resource: controlplane_certbot_secgroup }

top-level-template.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ resources:
172172
properties:
173173
template: { get_file: security_groups.yaml }
174174
parameters:
175-
control_plane_ports: "80,443,8443"
175+
control_plane_ports: "443,8443"
176176
data_plane_ports: "80,443"
177177
control_plane_sources: { get_param: control_plane_allowed_sources }
178178
data_plane_sources: { get_param: data_plane_allowed_sources }
@@ -224,6 +224,7 @@ resources:
224224
- { get_attr: [ security_groups, outputs, dns_forwarder_security_group ] }
225225
- { get_attr: [ security_groups, outputs, vrrp_controlplane_security_group ] }
226226
- { get_attr: [ security_groups, outputs, proxy_security_group ] }
227+
- { get_attr: [ security_groups, outputs, controlplane_certbot_security_group ] }
227228

228229
master_nodes_deployment:
229230
type: OS::Heat::Stack

0 commit comments

Comments
 (0)