Skip to main content
Version: Latest

Properties

This section describes the supported properties of Service Discovery.

tls_min_version and tls_cipher_suites​

The Service Discovery Servers and Discovery Agents accept a minimum TLS version for their HTTP API and RPC (tls_min_version) and the supported cipher suites as a comma-separated list (tls_cipher_suites).

warning

As referenced in this Go blog post, for TLS 1.3, the specified tls_cipher_suites will not be used, and the best algorithm possible is chosen based on the Virtual Machine (VM) characteristics.

These values are provided to the Service Discovery Servers and Discovery Agents through Ops files, one per deployment. The values must be defined in the IaaS file under the following properties:

iaas:
(...)
consul:
(...)
tls_min_version: <tls-version>
tls_cipher_suites: <cipher-suite>
(...)

The Ops files are in ops/tls_configurations/ of anynines-deployment, in one directory per deployment, for example ops/tls_configurations/consul-dns/add_consul_tls_properties.yml for the deployment of Service Discovery.

Example:

bosh -d postgresql-service deploy \
--ops-file ops/tls_configurations/data-services/add_consul_tls_properties.yml \
--ops-file ops/tls_configurations/a9s-postgresql/add_service_instances_consul_tls_properties.yml \
--vars-file config/iaas-config.yml
(...)

For the a9s-<data-service>, the Template Uploader Errand must be executed after the Ops file has been deployed, and the Deployment Updater Errand must then be run to apply the changes to the Service Instances:

bosh -d <data-service>-service run-errand templates-uploader
bosh -d <data-service>-service run-errand deployment_updater

If the Ops files are not applied, the default values apply, as listed in the option reference.

add_consul_to_bosh_dns_resolvers​

When consul.add_consul_to_bosh_dns_resolvers is true, the Discovery Agent ships a handler file for the BOSH DNS job on the same VM, which then forwards the discovery domain to the Discovery Agent. Without BOSH DNS, the file has no effect.

The property is set to true for every consul job in the manifests and Ops files of anynines-deployment, and for the Service Instances through the add_consul_to_bosh_dns_resolvers template variable of the Template Uploader Errand. For more information, see How Discovery Agents Hook into BOSH DNS.

Must Not Be Set to False

consul.add_consul_to_bosh_dns_resolvers must not be set to false, neither for the consul jobs nor for the Service Instances through the Template Uploader Errand: BOSH DNS, where it runs, forwards the discovery domain to the Discovery Agent only through this handler. Future releases of the a9s Data Services Framework may require BOSH DNS on every VM, to stay compatible with newer stemcells. This property would then be removed, and its behavior would be the default.