Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set max tls to TLSv1.3 #908

Merged
merged 1 commit into from
Oct 9, 2024
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
44 changes: 21 additions & 23 deletions bosh/opsfiles/router-logstash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
- type: remove
path: /instance_groups/name=router-logstash/jobs/name=gorouter/properties/routing_api


# From cf-manifests/bosh/opsfiles/secureproxy.yml
- type: replace
path: /instance_groups/name=router-logstash/jobs/-
Expand Down Expand Up @@ -46,11 +45,11 @@
}
tic:
host_whitelist:
- hostname: api.((system_domain))
exclude:
- ^/v2/info
- hostname: dashboard.((system_domain))
exclude: []
- hostname: api.((system_domain))
exclude:
- ^/v2/info
- hostname: dashboard.((system_domain))
exclude: []
secret: ((tic-secret))
whitelist: ((tic-whitelist))
proxy_whitelist: ((tic-proxy-whitelist))
Expand Down Expand Up @@ -83,7 +82,6 @@
path: /instance_groups/name=router-logstash/jobs/name=gorouter/properties/request_timeout_in_seconds?
value: 3600


# Needed for BOSH DNS, concatenate the new router group to the existing one (not overwrite)
- type: replace
path: /addons/name=bosh-dns-aliases/jobs/name=bosh-dns-aliases/properties/aliases/domain=gorouter.service.cf.internal/targets/instance_group=router:after
Expand All @@ -92,38 +90,38 @@
domain: bosh
instance_group: router-logstash
network: ((network_name))
query: '*'


query: "*"

# Set vm_extension, need to wipe the existing default array value of cf-router-network-properties with cf-router-logstash-network-properties
- type: remove
path: /instance_groups/name=router-logstash/vm_extensions?
- type: replace
path: /instance_groups/name=router-logstash/vm_extensions?
value:
- cf-router-logstash-network-properties

- cf-router-logstash-network-properties

# Used to avoid bosh link error: "Failed to resolve link 'router' with type 'http-router'..."
- type: replace
path: /instance_groups/name=router-logstash/jobs/name=gorouter/provides?
value:
gorouter: nil


- type: replace
path: /instance_groups/name=router-logstash/jobs/name=gorouter/properties/router/http_rewrite?
value:
responses:
add_headers_if_not_present:
- name: "Strict-Transport-Security"
value: "max-age=31536000"
- name: "X-Content-Type-Options"
value: "nosniff"
- name: "X-XSS-Protection"
value: "1; mode=block"
- name: "Content-Type"
value: "text/plain; charset=utf-8"
- name: "X-Frame-Options"
value: "DENY"
- name: "Strict-Transport-Security"
value: "max-age=31536000"
- name: "X-Content-Type-Options"
value: "nosniff"
- name: "X-XSS-Protection"
value: "1; mode=block"
- name: "Content-Type"
value: "text/plain; charset=utf-8"
- name: "X-Frame-Options"
value: "DENY"

- type: replace
path: /instance_groups/name=router-logstash/jobs/name=gorouter/properties/max_tls_version?
value: TLSv1.3
43 changes: 21 additions & 22 deletions bosh/opsfiles/router-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
- type: remove
path: /instance_groups/name=router-main/jobs/name=gorouter/properties/routing_api


# From cf-manifests/bosh/opsfiles/secureproxy.yml
- type: replace
path: /instance_groups/name=router-main/jobs/-
Expand Down Expand Up @@ -46,11 +45,11 @@
}
tic:
host_whitelist:
- hostname: api.((system_domain))
exclude:
- ^/v2/info
- hostname: dashboard.((system_domain))
exclude: []
- hostname: api.((system_domain))
exclude:
- ^/v2/info
- hostname: dashboard.((system_domain))
exclude: []
secret: ((tic-secret))
whitelist: ((tic-whitelist))
proxy_whitelist: ((tic-proxy-whitelist))
Expand Down Expand Up @@ -83,7 +82,6 @@
path: /instance_groups/name=router-main/jobs/name=gorouter/properties/request_timeout_in_seconds?
value: 3600


# Needed for BOSH DNS, concatenate the new router group to the existing one (not overwrite)
- type: replace
path: /addons/name=bosh-dns-aliases/jobs/name=bosh-dns-aliases/properties/aliases/domain=gorouter.service.cf.internal/targets/instance_group=router:after
Expand All @@ -92,18 +90,15 @@
domain: bosh
instance_group: router-main
network: ((network_name))
query: '*'


query: "*"

# Set vm_extension, need to wipe the existing default array value of cf-router-network-properties with cf-router-main-network-properties
- type: remove
path: /instance_groups/name=router-main/vm_extensions?
- type: replace
path: /instance_groups/name=router-main/vm_extensions?
value:
- cf-router-main-network-properties

- cf-router-main-network-properties

# Used to avoid bosh link error: "Failed to resolve link 'router' with type 'http-router'..."
- type: replace
Expand All @@ -116,13 +111,17 @@
value:
responses:
add_headers_if_not_present:
- name: "Strict-Transport-Security"
value: "max-age=31536000"
- name: "X-Content-Type-Options"
value: "nosniff"
- name: "X-XSS-Protection"
value: "1; mode=block"
- name: "Content-Type"
value: "text/plain; charset=utf-8"
- name: "X-Frame-Options"
value: "DENY"
- name: "Strict-Transport-Security"
value: "max-age=31536000"
- name: "X-Content-Type-Options"
value: "nosniff"
- name: "X-XSS-Protection"
value: "1; mode=block"
- name: "Content-Type"
value: "text/plain; charset=utf-8"
- name: "X-Frame-Options"
value: "DENY"

- type: replace
path: /instance_groups/name=router-main/jobs/name=gorouter/properties/max_tls_version?
value: TLSv1.3
4 changes: 4 additions & 0 deletions bosh/opsfiles/routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
- type: replace
path: /instance_groups/name=router/jobs/name=gorouter/properties/request_timeout_in_seconds?
value: 3600

- type: replace
path: /instance_groups/name=router/jobs/name=gorouter/properties/max_tls_version?
value: TLSv1.3