-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable TLS for TCP Routing by default, disable unproxied container po…
…rts, and provide ops-files to disable (#1195) * Disable unproxied container ports and enable TLS for TCP Routing by default, and provide ops-files to disable. Enables TLS encryption for TCP Routes on the hop between tcp-router + app containeris. This behaves the same as the TLS encryption between gorouter and app containers, and relies on the same settings regarding route integrity. This allows us to finally disable the unproxied container ports, and prevent network connections to app ports from hosts other than router or tcp-router. If operators wish to disable TLS for TCP routes, they must first re-enable the unproxied ports by deploying with these ops files (as appropriate): - operations/disable-tls-tcp-routing-stage-1-unproxied-ports.yml - operations/disable-tls-tcp-routing-isolation-segment-stage-1-unproxied-ports.yml - operations/experimental/disable-tls-tcp-routing-windows-stage-1-unproxied-ports.yml Once the unproxied ports are re-enabled, a second deploy can be performed to disable TLS for TCP Routes via these ops files (as appropriate): - operations/disable-tls-tcp-routing-stage-2-tcp-router-and-route-emitter.yml - operations/disable-tls-tcp-routing-isolation-segment-stage-2-route-emitter.yml - operations/experimental/disable-tls-tcp-routing-windows-stage-2-route-emitter.yml Failing to disable this in a two-deploy fashion will result in downtime for TCP Routes. * update readmes for new tls for tcp route disabling ops files * Add unit tests for new opsfiles
- Loading branch information
1 parent
da1da4d
commit 107da0a
Showing
14 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
operations/disable-tls-tcp-routing-isolation-segment-stage-1-unproxied-ports.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
- type: replace | ||
path: /instance_groups/name=isolated-diego-cell/jobs/name=rep/properties/containers/proxy/enable_unproxied_port_mappings? | ||
value: true |
4 changes: 4 additions & 0 deletions
4
operations/disable-tls-tcp-routing-isolation-segment-stage-2-route-emitter.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
- type: replace | ||
path: /instance_groups/name=isolated-diego-cell/jobs/name=route_emitter/properties/tcp/enable_tls? | ||
value: false |
4 changes: 4 additions & 0 deletions
4
operations/disable-tls-tcp-routing-stage-1-unproxied-ports.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
- type: replace | ||
path: /instance_groups/name=diego-cell/jobs/name=rep/properties/containers/proxy/enable_unproxied_port_mappings? | ||
value: true |
8 changes: 8 additions & 0 deletions
8
operations/disable-tls-tcp-routing-stage-2-tcp-router-and-route-emitter.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
- type: replace | ||
path: /instance_groups/name=tcp-router/jobs/name=tcp_router/properties/tcp_router/backend_tls?/enabled | ||
value: false | ||
|
||
- type: replace | ||
path: /instance_groups/name=diego-cell/jobs/name=route_emitter/properties/tcp/enable_tls? | ||
value: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
operations/experimental/disable-tls-tcp-routing-windows-stage-1-unproxied-ports.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
- type: replace | ||
path: /instance_groups/name=windows2019-cell/jobs/name=rep_windows/properties/containers/proxy/enable_unproxied_port_mappings? | ||
value: true |
4 changes: 4 additions & 0 deletions
4
operations/experimental/disable-tls-tcp-routing-windows-stage-2-route-emitter.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
- type: replace | ||
path: /instance_groups/name=windows2019-cell/jobs/name=route_emitter_windows/properties/tcp/enable_tls? | ||
value: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters