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
7 changes: 0 additions & 7 deletions jobs/cloud_controller_clock/spec
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,6 @@ properties:
description: "The internal URL used by UAA"
default: "uaa.service.cf.internal"

metron_endpoint.host:
description: "The host used to emit messages to the Metron agent"
default: "127.0.0.1"
metron_endpoint.port:
description: "The port used to emit messages to the Metron agent"
default: 3457

cc.db_encryption_key:
default: ""
description: "key for encrypting sensitive values in the CC database"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ logging:

log_audit_events: <%= p("cc.log_audit_events") %>

loggregator:
router: <%= p("metron_endpoint.host") %>:<%= p("metron_endpoint.port") %>

<% db = p("ccdb.databases").find { |db| db["tag"] == "cc" } %>
<% db_role = p("ccdb.roles").find { |role| role["tag"] == "admin" } %>
<%
Expand Down
20 changes: 14 additions & 6 deletions jobs/cloud_controller_ng/spec
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ templates:
credhub_ca.crt.erb: config/certs/credhub_ca.crt
prom_scraper_config.yml.erb: config/prom_scraper_config.yml
cloud_controller_local_worker_override.yml.erb: config/cloud_controller_local_worker_override.yml

loggregator_tls.crt.erb: config/certs/loggregator_tls.crt
loggregator_tls.key.erb: config/certs/loggregator_tls.key
loggregator_tls_ca.crt.erb: config/certs/loggregator_tls_ca.crt
packages:
- storage-cli
- capi_utils
Expand Down Expand Up @@ -819,7 +821,7 @@ properties:
default: "127.0.0.1"
metron_endpoint.port:
description: "The port used to emit messages to the Metron agent"
default: 3457
default: 3458

doppler.use_ssl:
description: "Whether to use ssl for the doppler_logging_endpoint listed at /v2/info"
Expand Down Expand Up @@ -1304,10 +1306,16 @@ properties:
cc.logcache_tls.subject_name:
description: "The host name the client will accept on the server certificate when communicating with Log Cache via mTLS"
default: "log_cache"

cc.loggregator.internal_url:
description: "Internal URL used to communicate with traffic_controller"
default: "http://loggregator-trafficcontroller.service.cf.internal:8081"

cc.loggregator_tls.ca_cert:
description: "PEM-encoded CA certificate for mTLS communication with Loggregator"
cc.loggregator_tls.certificate:
description: "PEM-encoded client certificate for mTLS communication with Loggregator"
cc.loggregator_tls.private_key:
description: "PEM-encoded private key for mTLS communication with Loggregator"
cc.loggregator_tls.subject_name:
description: "The host name the client will accept on the server certificate when communicating with Loggregator via mTLS"
default: "metron"

credhub_api.hostname:
description: "Hostname used to resolve the address of CredHub"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,11 @@ logcache_tls:
subject_name: <%= p("cc.logcache_tls.subject_name") %>

loggregator:
router: <%= p("metron_endpoint.host") %>:<%= p("metron_endpoint.port") %>
internal_url: <%= p("cc.loggregator.internal_url") %>
endpoint: <%= p("metron_endpoint.host") %>:<%= p("metron_endpoint.port") %>
subject_name: <%= p("cc.loggregator_tls.subject_name") %>
key_file: /var/vcap/jobs/cloud_controller_ng/config/certs/loggregator_tls.key
cert_file: /var/vcap/jobs/cloud_controller_ng/config/certs/loggregator_tls.crt
ca_file: /var/vcap/jobs/cloud_controller_ng/config/certs/loggregator_tls_ca.crt

log_stream:
url: https://log-stream.<%= p("system_domain") %>
Expand Down
1 change: 1 addition & 0 deletions jobs/cloud_controller_ng/templates/loggregator_tls.crt.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%= p('cc.loggregator_tls.certificate', '') %>
1 change: 1 addition & 0 deletions jobs/cloud_controller_ng/templates/loggregator_tls.key.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%= p('cc.loggregator_tls.private_key', '') %>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%= p('cc.loggregator_tls.ca_cert', '') %>
17 changes: 13 additions & 4 deletions jobs/cloud_controller_worker/spec
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ templates:
mutual_tls_ca.crt.erb: config/certs/mutual_tls_ca.crt
mutual_tls.crt.erb: config/certs/mutual_tls.crt
mutual_tls.key.erb: config/certs/mutual_tls.key
loggregator_tls_ca.crt.erb: config/certs/loggregator_tls_ca.crt
loggregator_tls.crt.erb: config/certs/loggregator_tls.crt
loggregator_tls.key.erb: config/certs/loggregator_tls.key
uaa_ca.crt.erb: config/certs/uaa_ca.crt
db_ca.crt.erb: config/certs/db_ca.crt
prom_scraper_config.yml.erb: config/prom_scraper_config.yml
Expand Down Expand Up @@ -423,7 +426,7 @@ properties:
default: "127.0.0.1"
metron_endpoint.port:
description: "The port used to emit messages to the Metron agent"
default: 3457
default: 3458

cc.broker_client_timeout_seconds:
default: 60
Expand Down Expand Up @@ -611,9 +614,15 @@ properties:
description: "Maximum PID limit for containerized work running user-provided code"
default: 1024

cc.loggregator.internal_url:
description: "Internal URL used to communicate with traffic_controller"
default: "http://loggregator-trafficcontroller.service.cf.internal:8081"
cc.loggregator_tls.ca_cert:
description: "PEM-encoded CA certificate for mTLS communication with Loggregator"
cc.loggregator_tls.certificate:
description: "PEM-encoded client certificate for mTLS communication with Loggregator"
cc.loggregator_tls.private_key:
description: "PEM-encoded private key for mTLS communication with Loggregator"
cc.loggregator_tls.subject_name:
description: "The host name the client will accept on the server certificate when communicating with Loggregator via mTLS"
default: "metron"

cc.perform_blob_cleanup:
description: "Whether or not to perform the blob cleanup job"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ logging:
log_audit_events: <%= p("cc.log_audit_events") %>

loggregator:
router: <%= p("metron_endpoint.host") %>:<%= p("metron_endpoint.port") %>
endpoint: <%= p("metron_endpoint.host") %>:<%= p("metron_endpoint.port") %>
subject_name: <%= p("cc.loggregator_tls.subject_name") %>
key_file: /var/vcap/jobs/cloud_controller_worker/config/certs/loggregator_tls.key
cert_file: /var/vcap/jobs/cloud_controller_worker/config/certs/loggregator_tls.crt
ca_file: /var/vcap/jobs/cloud_controller_worker/config/certs/loggregator_tls_ca.crt

<% db = p("ccdb.databases").find { |db| db["tag"] == "cc" } %>
<% db_role = p("ccdb.roles").find { |role| role["tag"] == "admin" } %>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%= p('cc.loggregator_tls.certificate', '') %>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%= p('cc.loggregator_tls.private_key', '') %>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%= p('cc.loggregator_tls.ca_cert', '') %>